{"record":{"id":"3f9538e7bb5f4b55","repo":"kubernetes/kops","slug":"error-listing-servers-v","errorCode":null,"errorMessage":"error listing servers: %v","messagePattern":"error listing servers: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/openstacktasks/instance.go","lineNumber":165,"sourceCode":"\n\tif len(taggedPorts) == 0 {\n\t\treturn allPorts\n\t}\n\n\treturn taggedPorts\n}\n\nfunc (e *Instance) Find(c *fi.CloudupContext) (*Instance, error) {\n\tif e == nil || e.Name == nil {\n\t\treturn nil, nil\n\t}\n\tcloud := c.T.Cloud.(openstack.OpenstackCloud)\n\n\tserverList, err := cloud.ListInstances(servers.ListOpts{\n\t\tName: fmt.Sprintf(\"^%s\", fi.ValueOf(e.GroupName)),\n\t})\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"error listing servers: %v\", err)\n\t}\n\n\tvar filteredList []servers.Server\n\tfor _, server := range serverList {\n\t\tval, ok := server.Metadata[\"k8s\"]\n\t\tif !ok || val != fi.ValueOf(e.ServerGroup.ClusterName) {\n\t\t\tcontinue\n\t\t}\n\t\tmetadataName := \"\"\n\t\tval, ok = server.Metadata[openstack.TagKopsName]\n\t\tif ok {\n\t\t\tmetadataName = val\n\t\t}\n\t\t// name or metadata tag should match to instance name\n\t\t// this is needed for backwards compatibility\n\t\tif server.Name == fi.ValueOf(e.Name) || metadataName == fi.ValueOf(e.Name) {\n\t\t\tfilteredList = append(filteredList, server)\n\t\t}","sourceCodeStart":147,"sourceCodeEnd":183,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/openstacktasks/instance.go#L147-L183","documentation":"Listing Nova servers by group-name regex failed at the API level. Instance discovery cannot proceed; the wrapped error usually indicates compute API, credential, or filter problems.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/openstacktasks/instance.go:165 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-12T12:17:11.808Z"}