{"record":{"id":"0494387c3114e304","repo":"kubernetes/kops","slug":"failed-to-extract-dns-zone-pages-s","errorCode":null,"errorMessage":"failed to extract dns zone pages: %s","messagePattern":"failed to extract dns zone pages: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/openstack/dns.go","lineNumber":44,"sourceCode":"\t\"k8s.io/kops/util/pkg/vfs\"\n)\n\n// ListDNSZones will list available DNS zones\nfunc (c *openstackCloud) ListDNSZones(opt zones.ListOptsBuilder) ([]zones.Zone, error) {\n\treturn listDNSZones(c, opt)\n}\n\nfunc listDNSZones(c OpenstackCloud, opt zones.ListOptsBuilder) ([]zones.Zone, error) {\n\tvar zs []zones.Zone\n\n\tdone, err := vfs.RetryWithBackoff(readBackoff, func() (bool, error) {\n\t\tallPages, err := zones.List(c.DNSClient(), opt).AllPages(context.TODO())\n\t\tif err != nil {\n\t\t\treturn false, fmt.Errorf(\"failed to list dns zones: %s\", err)\n\t\t}\n\t\tr, err := zones.ExtractZones(allPages)\n\t\tif err != nil {\n\t\t\treturn false, fmt.Errorf(\"failed to extract dns zone pages: %s\", err)\n\t\t}\n\t\tzs = r\n\t\treturn true, nil\n\t})\n\tif err != nil {\n\t\treturn zs, err\n\t} else if done {\n\t\treturn zs, nil\n\t} else {\n\t\treturn zs, wait.ErrWaitTimeout\n\t}\n}\n\nfunc deleteDNSRecordset(c OpenstackCloud, zoneID string, rrsetID string) error {\n\tdone, err := vfs.RetryWithBackoff(writeBackoff, func() (bool, error) {\n\t\terr := recordsets.Delete(context.TODO(), c.DNSClient(), zoneID, rrsetID).ExtractErr()\n\t\tif err != nil {\n\t\t\treturn false, fmt.Errorf(\"failed to delete dns recordset: %s\", err)","sourceCodeStart":26,"sourceCodeEnd":62,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/openstack/dns.go#L26-L62","documentation":"listDNSZones wraps the gophercloud zones.ExtractZones error after a successful AllPages call, i.e. the Designate API returned pages that could not be parsed into zone objects. It fires on malformed/unexpected Designate responses and is retried with backoff by the caller.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/openstack/dns.go:44 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry; the operation already runs inside RetryWithBackoff","Check OpenStack Designate service version compatibility with gophercloud","Inspect the wrapped error for API response anomalies"],"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"}