{"record":{"id":"b55caa4640be5af1","repo":"kubernetes/kops","slug":"waiting-for-load-balancer-deletion-completion-w","errorCode":null,"errorMessage":"waiting for load balancer deletion completion: %w","messagePattern":"waiting for load balancer deletion completion: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/azure/loadbalancer.go","lineNumber":94,"sourceCode":"\nfunc (c *loadBalancersClientImpl) Get(ctx context.Context, resourceGroupName string, loadBalancerName string) (*network.LoadBalancer, error) {\n\topts := &network.LoadBalancersClientGetOptions{\n\t\tExpand: to.Ptr(\"frontendIpConfigurations/publicIpAddress\"),\n\t}\n\tresp, err := c.c.Get(ctx, resourceGroupName, loadBalancerName, opts)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"getting load balancer: %w\", err)\n\t}\n\treturn &resp.LoadBalancer, nil\n}\n\nfunc (c *loadBalancersClientImpl) Delete(ctx context.Context, resourceGroupName, loadBalancerName string) error {\n\tfuture, err := c.c.BeginDelete(ctx, resourceGroupName, loadBalancerName, nil)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"deleting load balancer: %w\", err)\n\t}\n\tif _, err := future.PollUntilDone(ctx, nil); err != nil {\n\t\treturn fmt.Errorf(\"waiting for load balancer deletion completion: %w\", err)\n\t}\n\treturn nil\n}\n\nfunc newLoadBalancersClientImpl(subscriptionID string, cred *azidentity.DefaultAzureCredential) (*loadBalancersClientImpl, error) {\n\tc, err := network.NewLoadBalancersClient(subscriptionID, cred, nil)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"creating load balancers client: %w\", err)\n\t}\n\treturn &loadBalancersClientImpl{\n\t\tc: c,\n\t}, nil\n}\n","sourceCodeStart":76,"sourceCodeEnd":108,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/azure/loadbalancer.go#L76-L108","documentation":"PollUntilDone failed while waiting for the load balancer deletion LRO; the delete was accepted but the operation failed (often because dependent resources such as public IPs or NICs still reference the LB).","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/azure/loadbalancer.go:94 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Remove dependent resources (public IPs, NICs, backend pools) referencing the load balancer and retry","Inspect the wrapped error for the specific provisioning failure"],"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"}