{"record":{"id":"1487fd8e5ee6a905","repo":"kubernetes/kops","slug":"error-getting-cloud-instance-group-q-v-1487fd","errorCode":null,"errorMessage":"error getting cloud instance group %q: %v","messagePattern":"error getting cloud instance group %q: (.+?)","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/do/cloud.go","lineNumber":429,"sourceCode":"\t}\n\n\tfor _, doGroup := range instanceGroups {\n\t\tname := doGroup.InstanceGroupName\n\n\t\tinstancegroup, err := matchInstanceGroup(name, cluster.ObjectMeta.Name, instancegroups)\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"error getting instance group for doGroup %q\", name)\n\t\t}\n\t\tif instancegroup == nil {\n\t\t\tif warnUnmatched {\n\t\t\t\tklog.Warningf(\"Found doGroup with no corresponding instance group %q\", name)\n\t\t\t}\n\t\t\tcontinue\n\t\t}\n\n\t\tgroups[instancegroup.ObjectMeta.Name], err = buildCloudInstanceGroup(c, instancegroup, doGroup, nodeMap)\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"error getting cloud instance group %q: %v\", instancegroup.ObjectMeta.Name, err)\n\t\t}\n\t}\n\n\tklog.V(8).Infof(\"Cloud Instance Group Info = %v\", groups)\n\treturn groups, nil\n}\n\n// findInstanceGroups finds instance groups matching the specified tags\nfunc findInstanceGroups(c *doCloudImplementation, clusterName string) ([]DOInstanceGroup, error) {\n\tvar result []DOInstanceGroup\n\tinstanceGroupMap := make(map[string][]string) // map of instance group name with droplet ids\n\n\tclusterTag := \"KubernetesCluster:\" + strings.ReplaceAll(clusterName, \".\", \"-\")\n\tdroplets, err := c.GetAllDropletsByTag(clusterTag)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"get all droplets for tag %s returned error. Error=%v\", clusterTag, err)\n\t}\n","sourceCodeStart":411,"sourceCodeEnd":447,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/do/cloud.go#L411-L447","documentation":"Wraps buildCloudInstanceGroup failure while constructing a cloudinstances.CloudInstanceGroup for a DO droplet group — i.e. enumerating the group's droplet members failed (droplet lookups by ID). Prevents rolling-update logic from acting on incomplete instance data.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/do/cloud.go:429 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the wrapped error for which droplet lookup failed","Verify droplets in the group still exist and are readable","Retry after DO API issues resolve"],"exampleFix":null,"handlingStrategy":"try-catch","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"}