{"record":{"id":"cc0b4c0ad779f889","repo":"kubernetes/kops","slug":"could-not-find-server-with-id-s-which-is-part-of","errorCode":null,"errorMessage":"Could not find Server with id %s which is part of ServerGroup %s members","messagePattern":"Could not find Server with id (.+?) which is part of ServerGroup (.+?) members","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/openstacktasks/servergroup.go","lineNumber":81,"sourceCode":"\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)\n\t\t\tfor _, serverID := range serverGroup.Members {\n\t\t\t\tserver, ok := serverMap[serverID]\n\t\t\t\tif !ok {\n\t\t\t\t\treturn nil, fmt.Errorf(\"Could not find Server with id %s which is part of ServerGroup %s members\", serverID, serverGroup.Name)\n\t\t\t\t}\n\t\t\t\tigName, ok := server.Metadata[openstack.TagKopsInstanceGroup]\n\t\t\t\tif !ok {\n\t\t\t\t\tklog.Warningf(\"Could not find instancegroup metadata tag for server %s\", serverID)\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\n\t\t\t\tval, ok := igMap[igName]\n\t\t\t\tif !ok {\n\t\t\t\t\tigMap[igName] = new(int32(1))\n\t\t\t\t} else {\n\t\t\t\t\tigMap[igName] = new(fi.ValueOf(val) + 1)\n\t\t\t\t}\n\t\t\t}\n\t\t\tactual = &ServerGroup{\n\t\t\t\tName:        new(serverGroup.Name),\n\t\t\t\tClusterName: s.ClusterName,\n\t\t\t\tIGMap:       igMap,","sourceCodeStart":63,"sourceCodeEnd":99,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/openstacktasks/servergroup.go#L63-L99","documentation":"A server group lists a member server ID that was not found among the cluster's servers (filtered by the k8s metadata tag). Either the server was deleted without updating the group, or it exists but lacks the cluster's k8s metadata tag.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/openstacktasks/servergroup.go:81 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check whether the member server still exists","Verify the server carries the cluster's k8s metadata tag","Clean up the server group membership if the server is gone"],"exampleFix":null,"handlingStrategy":"validation","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"}