{"record":{"id":"fc0803de28d2b4c1","repo":"kubernetes/kops","slug":"failed-to-list-dns-recordsets-s","errorCode":null,"errorMessage":"failed to list dns recordsets: %s","messagePattern":"failed to list dns recordsets: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/openstack/dns.go","lineNumber":91,"sourceCode":"}\n\n// DeleteDNSRecordset will delete single DNS recordset in zone\nfunc (c *openstackCloud) DeleteDNSRecordset(zoneID string, rrsetID string) error {\n\treturn deleteDNSRecordset(c, zoneID, rrsetID)\n}\n\n// ListDNSRecordsets will list DNS recordsets\nfunc (c *openstackCloud) ListDNSRecordsets(zoneID string, opt recordsets.ListOptsBuilder) ([]recordsets.RecordSet, error) {\n\treturn listDNSRecordsets(c, zoneID, opt)\n}\n\nfunc listDNSRecordsets(c OpenstackCloud, zoneID string, opt recordsets.ListOptsBuilder) ([]recordsets.RecordSet, error) {\n\tvar rrs []recordsets.RecordSet\n\n\tdone, err := vfs.RetryWithBackoff(readBackoff, func() (bool, error) {\n\t\tallPages, err := recordsets.ListByZone(c.DNSClient(), zoneID, opt).AllPages(context.TODO())\n\t\tif err != nil {\n\t\t\treturn false, fmt.Errorf(\"failed to list dns recordsets: %s\", err)\n\t\t}\n\t\tr, err := recordsets.ExtractRecordSets(allPages)\n\t\tif err != nil {\n\t\t\treturn false, fmt.Errorf(\"failed to extract dns recordsets pages: %s\", err)\n\t\t}\n\t\trrs = r\n\t\treturn true, nil\n\t})\n\tif err != nil {\n\t\treturn rrs, err\n\t} else if done {\n\t\treturn rrs, nil\n\t} else {\n\t\treturn rrs, wait.ErrWaitTimeout\n\t}\n}\n","sourceCodeStart":73,"sourceCodeEnd":108,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/openstack/dns.go#L73-L108","documentation":"listDNSRecordsets wraps the gophercloud AllPages error when listing recordsets in a Designate zone. It fires when the recordsets list API call fails (auth, missing zone, throttling) and is retried with backoff by the caller.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/openstack/dns.go:91 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the zone ID exists and is accessible","Check Designate credentials and quotas","Retry; the operation already runs inside RetryWithBackoff"],"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"}