{"record":{"id":"2d532283de1fff31","repo":"kubernetes/kops","slug":"waiting-for-disk-deletion-completion-w","errorCode":null,"errorMessage":"waiting for disk deletion completion: %w","messagePattern":"waiting for disk deletion completion: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/azure/disk.go","lineNumber":81,"sourceCode":"\t\tif err != nil {\n\t\t\tvar respErr *azcore.ResponseError\n\t\t\tif errors.As(err, &respErr) && respErr.ErrorCode == \"ResourceGroupNotFound\" {\n\t\t\t\treturn nil, nil\n\t\t\t}\n\t\t\treturn nil, fmt.Errorf(\"listing disks: %w\", err)\n\t\t}\n\t\tl = append(l, resp.Value...)\n\t}\n\treturn l, nil\n}\n\nfunc (c *disksClientImpl) Delete(ctx context.Context, resourceGroupName, diskName string) error {\n\tfuture, err := c.c.BeginDelete(ctx, resourceGroupName, diskName, nil)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"deleting disk: %w\", err)\n\t}\n\tif _, err := future.PollUntilDone(ctx, nil); err != nil {\n\t\treturn fmt.Errorf(\"waiting for disk deletion completion: %w\", err)\n\t}\n\treturn nil\n}\n\nfunc newDisksClientImpl(subscriptionID string, cred *azidentity.DefaultAzureCredential) (*disksClientImpl, error) {\n\tc, err := compute.NewDisksClient(subscriptionID, cred, nil)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"creating disks client: %w\", err)\n\t}\n\treturn &disksClientImpl{\n\t\tc: c,\n\t}, nil\n}\n","sourceCodeStart":63,"sourceCodeEnd":95,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/azure/disk.go#L63-L95","documentation":"PollUntilDone failed while waiting for the managed disk deletion LRO to complete; the delete request was accepted but the operation failed or polling broke.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/azure/disk.go:81 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the wrapped error for the ARM failure reason","Re-run the delete; disk deletion is idempotent","Check whether the disk is still attached to a VM (common cause of delete failures)"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4c8573c808a73d578c5eadc86d410646ea0b0d73","analyzedAt":"2026-09-05T04:13:19.212Z","contentChangedAt":"2026-09-05T04:13:19.212Z","schemaVersion":2},"datasetVersion":"2026-09-12T07:17:12.445Z"}