{"record":{"id":"9ebff10e8e7b6b5b","repo":"kubernetes/kops","slug":"failed-to-list-listeners-v","errorCode":null,"errorMessage":"failed to list listeners: %v","messagePattern":"failed to list listeners: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/openstack/loadbalancer.go","lineNumber":526,"sourceCode":"\t\t}\n\t\treturn poolList, err\n\t}\n\treturn poolList, nil\n}\n\nfunc (c *openstackCloud) ListListeners(opts listeners.ListOpts) (listenerList []listeners.Listener, err error) {\n\treturn listListeners(c, opts)\n}\n\nfunc listListeners(c OpenstackCloud, opts listeners.ListOpts) (listenerList []listeners.Listener, err error) {\n\tif c.LoadBalancerClient() == nil {\n\t\treturn listenerList, fmt.Errorf(\"loadbalancer support not available in this deployment\")\n\t}\n\n\tdone, err := vfs.RetryWithBackoff(readBackoff, func() (bool, error) {\n\t\tlistenerPage, err := listeners.List(c.LoadBalancerClient(), opts).AllPages(context.TODO())\n\t\tif err != nil {\n\t\t\treturn false, fmt.Errorf(\"failed to list listeners: %v\", err)\n\t\t}\n\t\tlistenerList, err = listeners.ExtractListeners(listenerPage)\n\t\tif err != nil {\n\t\t\treturn false, fmt.Errorf(\"failed to extract listeners: %v\", err)\n\t\t}\n\t\treturn true, nil\n\t})\n\tif !done {\n\t\tif err == nil {\n\t\t\terr = wait.ErrWaitTimeout\n\t\t}\n\t\treturn listenerList, err\n\t}\n\treturn listenerList, nil\n}\n\nfunc (c *openstackCloud) CreateListener(opts listeners.CreateOpts) (listener *listeners.Listener, err error) {\n\treturn createListener(c, opts)","sourceCodeStart":508,"sourceCodeEnd":544,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/openstack/loadbalancer.go#L508-L544","documentation":"Listing Octavia listeners failed at the API level while fetching all pages. Persistence beyond the built-in retry backoff points to endpoint, credential, or service issues.","triggerScenarios":"listeners.List(c.LoadBalancerClient(), opts).AllPages(context.TODO()) returns an error: invalid token, project lacks lbaas access, listener filter matches nothing but API errors (e.g. bad ListOpts fields), or Octavia endpoint unreachable.","commonSituations":"ListOpts containing fields unsupported by the deployed Octavia version (400); expired auth mid-reconcile; Octavia returning 503 during rolling upgrade; MTU/network issues to the API endpoint.","solutions":[],"exampleFix":"null","handlingStrategy":"retry","validationCode":"listeners, err := cloud.ListListeners(listeners.ListOpts{})\n_ = err // pre-flight smoke check at controller start","typeGuard":null,"tryCatchPattern":"ll, err := cloud.ListListeners(opts)\nif err != nil {\n\tif strings.Contains(err.Error(), \"400\") {\n\t\t// ListOpts field unsupported by this Octavia version; retry with reduced opts\n\t}\n\treturn fmt.Errorf(\"listing listeners: %w\", err)\n}","preventionTips":["Only pass ListOpts fields your Octavia version supports","Re-authenticate on 401 before failing the reconcile loop","Smoke-test listener listing at controller startup"],"tags":["openstack","octavia","api-error","loadbalancer"],"backgroundTag":"openstack-api-request-failed","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"}