{"record":{"id":"c0985c397fc41075","repo":"kubernetes/kops","slug":"failed-to-find-server-groups-w","errorCode":null,"errorMessage":"failed to find server groups: %w","messagePattern":"failed to find server groups: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/scaleway/cloud.go","lineNumber":351,"sourceCode":"\t}\n\n\tfor _, loadBalancer := range responseLoadBalancers.LBs {\n\t\tfor _, lbIP := range loadBalancer.IP {\n\t\t\tingresses = append(ingresses, fi.ApiIngressStatus{IP: lbIP.IPAddress})\n\t\t}\n\t}\n\n\treturn ingresses, nil\n}\n\nfunc (s *scwCloudImplementation) GetCloudGroups(cluster *kops.Cluster, instancegroups []*kops.InstanceGroup, warnUnmatched bool, nodes []v1.Node) (map[string]*cloudinstances.CloudInstanceGroup, error) {\n\tgroups := make(map[string]*cloudinstances.CloudInstanceGroup)\n\n\tnodeMap := cloudinstances.GetNodeMap(nodes, cluster)\n\n\tserverGroups, err := findServerGroups(s, cluster.Name)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to find server groups: %w\", err)\n\t}\n\n\tfor _, ig := range instancegroups {\n\t\tserverGroup, ok := serverGroups[ig.Name]\n\t\tif !ok {\n\t\t\tif warnUnmatched {\n\t\t\t\tklog.Warningf(\"Server group %q has no corresponding instance group\", ig.Name)\n\t\t\t}\n\t\t\tcontinue\n\t\t}\n\n\t\tgroups[ig.Name], err = buildCloudGroup(s, ig, serverGroup, nodeMap)\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"failed to build cloud group for instance group %q: %w\", ig.Name, err)\n\t\t}\n\t}\n\n\treturn groups, nil","sourceCodeStart":333,"sourceCodeEnd":369,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/scaleway/cloud.go#L333-L369","documentation":"Returned by GetCloudGroups when the helper findServerGroups fails to list Scaleway servers tagged for the cluster (its own ListServers call errored). This wraps the underlying SDK error, so the real cause (bad credentials, API outage, invalid zone) is in the chained error text.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/scaleway/cloud.go:351 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the wrapped error to identify the SDK failure (auth, quota, connectivity)","Verify SCW credentials, zone, and project ID are configured","Retry: transient Scaleway API failures are common"],"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"}