Skip to content

Conversation

@hernan82arg
Copy link
Contributor

Fixes an issue where pods weren't able to attach PVCs

Issue:

Events:
  Type     Reason              Age              From                     Message
  ----     ------              ----             ----                     -------
  Normal   Scheduled           10s              default-scheduler        Successfully assigned default/ubuntu-pod to aks-autoscaled-21203410-vmss000000
  Warning  FailedAttachVolume  1s (x2 over 2s)  attachdetach-controller  AttachVolume.Attach failed for volume "pvc-86975b23-8b03-4928-9d4a-dff89e810f04" : rpc error: code = Internal desc = Attach volume /subscriptions/478b3f15-aa97-4dec-ae6f-9664734b4bec/resourceGroups/MC_windsor-aks-rg-wz0hgwb8_windsor-aks-cluster-wz0hgwb8_eastus/providers/Microsoft.Compute/disks/pvc-86975b23-8b03-4928-9d4a-dff89e810f04 to instance aks-autoscaled-21203410-vmss000000 failed with PUT http://localhost:7788/subscriptions/478b3f15-aa97-4dec-ae6f-9664734b4bec/resourceGroups/MC_windsor-aks-rg-wz0hgwb8_windsor-aks-cluster-wz0hgwb8_eastus/providers/Microsoft.Compute/virtualMachineScaleSets/aks-autoscaled-21203410-vmss/virtualMachines/0
--------------------------------------------------------------------------------
RESPONSE 403: 403 Forbidden
ERROR CODE: LinkedAuthorizationFailed
--------------------------------------------------------------------------------

Fixed:

Events:
  Type    Reason                  Age   From                     Message
  ----    ------                  ----  ----                     -------
  Normal  Scheduled               21s   default-scheduler        Successfully assigned default/ubuntu-pod to aks-autoscaled-17466519-vmss000000
  Normal  SuccessfulAttachVolume  8s    attachdetach-controller  AttachVolume.Attach succeeded for volume "pvc-1a2585d1-5ecc-40ea-be5e-dfff9ed42b73"
  Normal  Pulling                 6s    kubelet                  Pulling image "ubuntu:22.04"
  Normal  Pulled                  4s    kubelet                  Successfully pulled image "ubuntu:22.04" in 2.103s (2.103s including waiting). Image size: 29542023 bytes.
  Normal  Created                 4s    kubelet                  Created container: ubuntu
  Normal  Started                 4s    kubelet                  Started container ubuntu

@hernan82arg hernan82arg self-assigned this May 14, 2025
@hernan82arg hernan82arg added the bug Something isn't working label May 14, 2025
@hernan82arg hernan82arg requested a review from rmvangun May 15, 2025 07:59
@hernan82arg hernan82arg merged commit 7d26201 into main May 15, 2025
6 checks passed
@hernan82arg hernan82arg deleted the fix/azure-aks-pvc-attachment branch May 15, 2025 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants