{"record":{"id":"82d881d06de84564","repo":"kubernetes/kops","slug":"listing-cluster-dns-records-w","errorCode":null,"errorMessage":"listing cluster DNS records: %w","messagePattern":"listing cluster DNS records: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/scaleway/cloud.go","lineNumber":430,"sourceCode":"\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"getting server IP: %w\", err)\n\t\t}\n\t\tcloudInstance.PrivateIP = ip\n\t}\n\n\treturn cloudInstanceGroup, nil\n}\n\nfunc (s *scwCloudImplementation) GetClusterDNSRecords(clusterName string) ([]*domain.Record, error) {\n\tnames := strings.SplitN(clusterName, \".\", 2)\n\tclusterNameShort := names[0]\n\tdomainName := names[1]\n\n\trecords, err := s.domainAPI.ListDNSZoneRecords(&domain.ListDNSZoneRecordsRequest{\n\t\tDNSZone: domainName,\n\t}, scw.WithAllPages())\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"listing cluster DNS records: %w\", err)\n\t}\n\n\tclusterDNSRecords := []*domain.Record(nil)\n\tfor _, record := range records.Records {\n\t\tif strings.HasSuffix(record.Name, clusterNameShort) {\n\t\t\tclusterDNSRecords = append(clusterDNSRecords, record)\n\t\t}\n\t}\n\treturn clusterDNSRecords, nil\n}\n\nfunc (s *scwCloudImplementation) GetClusterLoadBalancers(clusterName string) ([]*lb.LB, error) {\n\tloadBalancerName := \"api.\" + clusterName\n\tlbs, err := s.lbAPI.ListLBs(&lb.ZonedAPIListLBsRequest{\n\t\tZone: s.zone,\n\t\tName: &loadBalancerName,\n\t}, scw.WithAllPages())\n\tif err != nil {","sourceCodeStart":412,"sourceCodeEnd":448,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/scaleway/cloud.go#L412-L448","documentation":"GetClusterDNSRecords failed on the Scaleway Domain API ListDNSZoneRecords call (with all pages) for the DNS zone derived from the cluster name's second label. Fires on invalid/missing DNS zone, permission issues, or API errors; the wrapped error carries the SDK response.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/scaleway/cloud.go:430 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the domain exists in your Scaleway account and the DNS zone matches the cluster name suffix","Check credentials have domain permissions","Retry on transient API failures"],"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"}