{"record":{"id":"95c3f8c8b468f7d6","repo":"kubernetes/kops","slug":"failed-to-list-servers-v","errorCode":null,"errorMessage":"Failed to list servers: %v","messagePattern":"Failed to list servers: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/openstacktasks/servergroup.go","lineNumber":59,"sourceCode":"\nfunc (s *ServerGroup) CompareWithID() *string {\n\treturn s.ID\n}\n\nfunc (s *ServerGroup) Find(context *fi.CloudupContext) (*ServerGroup, error) {\n\tif s == nil || s.Name == nil {\n\t\treturn nil, nil\n\t}\n\tcloud := context.T.Cloud.(openstack.OpenstackCloud)\n\n\tserverGroups, err := cloud.ListServerGroups(servergroups.ListOpts{})\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"Failed to list server groups: %v\", err)\n\t}\n\n\tserverList, err := cloud.ListInstances(servers.ListOpts{})\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"Failed to list servers: %v\", err)\n\t}\n\n\tserverMap := make(map[string]servers.Server)\n\tfor _, server := range serverList {\n\t\tval, ok := server.Metadata[\"k8s\"]\n\t\tif !ok || val != fi.ValueOf(s.ClusterName) {\n\t\t\tcontinue\n\t\t}\n\t\tserverMap[server.ID] = server\n\t}\n\n\tvar actual *ServerGroup\n\tfor _, serverGroup := range serverGroups {\n\t\tif serverGroup.Name == *s.Name {\n\t\t\tif actual != nil {\n\t\t\t\treturn nil, fmt.Errorf(\"Found multiple server groups with name %s\", fi.ValueOf(s.Name))\n\t\t\t}\n\t\t\tigMap := make(map[string]*int32)","sourceCodeStart":41,"sourceCodeEnd":77,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/openstacktasks/servergroup.go#L41-L77","documentation":"Listing all Nova servers failed while building the cluster-to-server map for server-group discovery. The wrapped error identifies the compute API failure.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/openstacktasks/servergroup.go:59 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the wrapped Nova error","Verify compute endpoint and credentials","Retry after service restoration"],"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"}