kubernetes/kops · error
failed to build cloud group for instance group %q: %w
Error message
failed to build cloud group for instance group %q: %w
What it means
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.
Source
Thrown at upup/pkg/fi/cloudup/scaleway/cloud.go:365
nodeMap := cloudinstances.GetNodeMap(nodes, cluster)
serverGroups, err := findServerGroups(s, cluster.Name)
if err != nil {
return nil, fmt.Errorf("failed to find server groups: %w", err)
}
for _, ig := range instancegroups {
serverGroup, ok := serverGroups[ig.Name]
if !ok {
if warnUnmatched {
klog.Warningf("Server group %q has no corresponding instance group", ig.Name)
}
continue
}
groups[ig.Name], err = buildCloudGroup(s, ig, serverGroup, nodeMap)
if err != nil {
return nil, fmt.Errorf("failed to build cloud group for instance group %q: %w", ig.Name, err)
}
}
return groups, nil
}
func findServerGroups(s *scwCloudImplementation, clusterName string) (map[string][]*instance.Server, error) {
servers, err := s.GetClusterServers(clusterName, nil)
if err != nil {
return nil, err
}
serverGroups := make(map[string][]*instance.Server)
for _, server := range servers {
igName := InstanceGroupNameFromTags(server.Tags)
serverGroups[igName] = append(serverGroups[igName], server)
}
View on GitHub (pinned to 4c8573c808)
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
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at upup/pkg/fi/cloudup/scaleway/cloud.go:365 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of kubernetes/kops@4c8573c808 (2026-09-05).
Data as JSON: /api/errors/f73e9d0f6ef2d0bd.
Report an issue: GitHub.