{"record":{"id":"ed00d08f83372626","repo":"kubernetes/kops","slug":"failed-to-retrieve-loadbalancers-for-name-s-v","errorCode":null,"errorMessage":"Failed to retrieve loadbalancers for name %s: %v","messagePattern":"Failed to retrieve loadbalancers for name (.+?): (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/openstacktasks/lb.go","lineNumber":158,"sourceCode":"\t\tfind.PortID = actual.PortID\n\t\tfind.VipSubnet = actual.VipSubnet\n\t\tfind.Provider = actual.Provider\n\t\tfind.FlavorID = actual.FlavorID\n\t}\n\treturn actual, nil\n}\n\nfunc (s *LB) Find(context *fi.CloudupContext) (*LB, error) {\n\tif s.Name == nil {\n\t\treturn nil, nil\n\t}\n\n\tcloud := context.T.Cloud.(openstack.OpenstackCloud)\n\tlbPage, err := loadbalancers.List(cloud.LoadBalancerClient(), loadbalancers.ListOpts{\n\t\tName: fi.ValueOf(s.Name),\n\t}).AllPages(context.Context())\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"Failed to retrieve loadbalancers for name %s: %v\", fi.ValueOf(s.Name), err)\n\t}\n\tlbs, err := loadbalancers.ExtractLoadBalancers(lbPage)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"Failed to extract loadbalancers : %v\", err)\n\t}\n\tif len(lbs) == 0 {\n\t\treturn nil, nil\n\t}\n\tif len(lbs) > 1 {\n\t\treturn nil, fmt.Errorf(\"Multiple load balancers for name %s\", fi.ValueOf(s.Name))\n\t}\n\n\treturn NewLBTaskFromCloud(cloud, s.Lifecycle, &lbs[0], s)\n}\n\nfunc (s *LB) Run(context *fi.CloudupContext) error {\n\treturn fi.CloudupDefaultDeltaRunMethod(s, context)\n}","sourceCodeStart":140,"sourceCodeEnd":176,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/openstacktasks/lb.go#L140-L176","documentation":"Listing Octavia load balancers filtered by name failed at the API level while discovering the LB task's actual state. The wrapped error identifies the transport/API failure.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/openstacktasks/lb.go:158 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the wrapped Octavia error","Verify the load-balancer endpoint and credentials","Retry after service restoration"],"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-12T12:17:11.808Z"}