{"record":{"id":"8433bd77d427e9b3","repo":"kubernetes/kops","slug":"error-deleting-pool-v","errorCode":null,"errorMessage":"error deleting pool: %v","messagePattern":"error deleting pool: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/openstack/loadbalancer.go","lineNumber":108,"sourceCode":"\t\t\terr = wait.ErrWaitTimeout\n\t\t}\n\t\treturn monitorList, err\n\t}\n\treturn monitorList, nil\n}\n\nfunc (c *openstackCloud) DeleteMonitor(monitorID string) error {\n\treturn deleteMonitor(c, monitorID)\n}\n\nfunc deleteMonitor(c OpenstackCloud, monitorID string) error {\n\tif c.LoadBalancerClient() == nil {\n\t\treturn fmt.Errorf(\"loadbalancer support not available in this deployment\")\n\t}\n\tdone, err := vfs.RetryWithBackoff(deleteBackoff, func() (bool, error) {\n\t\terr := monitors.Delete(context.TODO(), c.LoadBalancerClient(), monitorID).ExtractErr()\n\t\tif err != nil && !isNotFound(err) {\n\t\t\treturn false, fmt.Errorf(\"error deleting pool: %v\", err)\n\t\t}\n\t\tif isNotFound(err) {\n\t\t\treturn true, nil\n\t\t}\n\t\treturn false, nil\n\t})\n\tif err != nil {\n\t\treturn err\n\t} else if done {\n\t\treturn nil\n\t} else {\n\t\treturn wait.ErrWaitTimeout\n\t}\n}\n\nfunc (c *openstackCloud) DeletePool(poolID string) error {\n\treturn deletePool(c, poolID)\n}","sourceCodeStart":90,"sourceCodeEnd":126,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/openstack/loadbalancer.go#L90-L126","documentation":"Deleting an Octavia resource (this guard sits in the monitor/Pool deletion path) failed with a non-404 error after retry-with-backoff, e.g. the resource is in use or in a PENDING_* state that blocks deletion.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/openstack/loadbalancer.go:108 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the wrapped error for the blocking reason","Ensure no listeners/loads reference the pool before deleting","Retry after the resource leaves its pending state"],"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"}