AttachVolume.Attach failed for volume “pvc-c4345555-9c17-11e9-a6c5-02eb2a6c0fef” : Attach volume “kubernetes-dynamic-pvc-c4345555-9c17-11e9-a6c5-02eb2a6c0fef” to instance “/subscriptions/d72c439e-09f8-45f7-a25e-436bec81b6b7/resourceGroups/MC_test_test_eastasia/providers/Microsoft.Compute/virtualMachines/aks-agentpool-32213041-0” failed with compute.VirtualMachinesClient#CreateOrUpdate: Failure sending request: StatusCode=0 — Original Error: autorest/azure: Service returned an error. Status= Code=”ConflictingUserInput” Message=”Disk ‘/subscriptions/d72c439e-09f8-45f7-a25e-436bec81b6b7/resourceGroups/MC_test_test_eastasia/providers/Microsoft.Compute/disks/kubernetes-dynamic-pvc-c4345555-9c17-11e9-a6c5-02eb2a6c0fef’ cannot be attached as the disk is already owned by VM ‘/subscriptions/d72c439e-09f8-45f7-a25e-436bec81b6b7/resourceGroups/MC_test_test_eastasia/providers/Microsoft.Compute/virtualMachines/aks-agentpool-32213041-1’.”

  运维

azure kubernetes bug

AttachVolume.Attach failed for volume "pvc-c4345555-9c17-11e9-a6c5-02eb2a6c0fef" : Attach volume "kubernetes-dynamic-pvc-c4345555-9c17-11e9-a6c5-02eb2a6c0fef" to instance "/subscriptions/d72c439e-09f8-45f7-a25e-436bec81b6b7/resourceGroups/MC_test_test_eastasia/providers/Microsoft.Compute/virtualMachines/aks-agentpool-32213041-0" failed with compute.VirtualMachinesClient#CreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: autorest/azure: Service returned an error. Status=<nil> Code="ConflictingUserInput" Message="Disk '/subscriptions/d72c439e-09f8-45f7-a25e-436bec81b6b7/resourceGroups/MC_test_test_eastasia/providers/Microsoft.Compute/disks/kubernetes-dynamic-pvc-c4345555-9c17-11e9-a6c5-02eb2a6c0fef' cannot be attached as the disk is already owned by VM '/subscriptions/d72c439e-09f8-45f7-a25e-436bec81b6b7/resourceGroups/MC_test_test_eastasia/providers/Microsoft.Compute/virtualMachines/aks-agentpool-32213041-1'."

aks-agentpool-32213041-1
这个节点负载异常,不释放pvc所申请的磁盘,造成pvc重新绑定失败
重启node虚拟机即可。

LEAVE A COMMENT

Captcha Code