kubernetes/kops · error
failed to list cluster servers named %q: %w
Error message
failed to list cluster servers named %q: %w
What it means
GetClusterServers failed on the Scaleway ListServers call that filters servers by cluster-name tag (and optionally instance-group tag). This propagates from findServerGroups and aborts any operation needing the cluster's machines. The wrapped error is the raw SDK failure; the request name identifies the instance group filter used.
Source
Thrown at upup/pkg/fi/cloudup/scaleway/cloud.go:467
return nil, fmt.Errorf("listing cluster load-balancers: %w", err)
}
return lbs.LBs, nil
}
func (s *scwCloudImplementation) GetClusterServers(clusterName string, instanceGroupName *string) ([]*instance.Server, error) {
tags := []string{TagClusterName + "=" + clusterName}
if instanceGroupName != nil {
tags = append(tags, fmt.Sprintf("%s=%s", TagInstanceGroup, *instanceGroupName))
}
request := &instance.ListServersRequest{
Zone: s.zone,
Name: instanceGroupName,
Tags: tags,
}
servers, err := s.instanceAPI.ListServers(request, scw.WithAllPages())
if err != nil {
if instanceGroupName != nil {
return nil, fmt.Errorf("failed to list cluster servers named %q: %w", *instanceGroupName, err)
}
return nil, fmt.Errorf("failed to list cluster servers: %w", err)
}
return servers.Servers, nil
}
func (s *scwCloudImplementation) GetClusterSSHKeys(clusterName string) ([]*iam.SSHKey, error) {
clusterSSHKeys := []*iam.SSHKey(nil)
allSSHKeys, err := s.iamAPI.ListSSHKeys(&iam.ListSSHKeysRequest{}, scw.WithAllPages())
for _, sshkey := range allSSHKeys.SSHKeys {
if strings.HasPrefix(sshkey.Name, fmt.Sprintf("kubernetes.%s-", clusterName)) {
clusterSSHKeys = append(clusterSSHKeys, sshkey)
}
}
if err != nil {
return nil, fmt.Errorf("failed to list cluster ssh keys: %w", err)
}
return clusterSSHKeys, nilView on GitHub (pinned to 4c8573c808)
Solutions
- Inspect the wrapped error for auth/quota/network causes
- Verify the cluster tag 'kops.k8s.io/cluster' format matches
- Retry the listing operation
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at upup/pkg/fi/cloudup/scaleway/cloud.go:467 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/13e64f373b7cfeed.
Report an issue: GitHub.