{"record":{"id":"f73e9d0f6ef2d0bd","repo":"kubernetes/kops","slug":"failed-to-build-cloud-group-for-instance-group-q","errorCode":null,"errorMessage":"failed to build cloud group for instance group %q: %w","messagePattern":"failed to build cloud group for instance group %q: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/scaleway/cloud.go","lineNumber":365,"sourceCode":"\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\n}\n\nfunc findServerGroups(s *scwCloudImplementation, clusterName string) (map[string][]*instance.Server, error) {\n\tservers, err := s.GetClusterServers(clusterName, nil)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tserverGroups := make(map[string][]*instance.Server)\n\tfor _, server := range servers {\n\t\tigName := InstanceGroupNameFromTags(server.Tags)\n\t\tserverGroups[igName] = append(serverGroups[igName], server)\n\t}\n","sourceCodeStart":347,"sourceCodeEnd":383,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/scaleway/cloud.go#L347-L383","documentation":"Returned by GetCloudGroups when buildCloudGroup fails while converting a Scaleway server group into a kops CloudInstanceGroup — typically a failure creating a cloud instance entry or resolving a server IP for one of the servers in the group. The instance group name identifies which group's conversion aborted; the whole operation returns nil so partial results are discarded.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/scaleway/cloud.go:365 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the wrapped error for the specific server that failed (ID or IP lookup)","Verify the servers in the named instance group are in a healthy state","Re-run the operation once the failing server is fixed or removed"],"exampleFix":null,"handlingStrategy":"try-catch","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"}