{"record":{"id":"c915be75605c354f","repo":"kubernetes/kops","slug":"cannot-get-instancegroups-for-q-v","errorCode":null,"errorMessage":"cannot get InstanceGroups for %q: %v","messagePattern":"cannot get InstanceGroups for %q: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/kops/validate_cluster.go","lineNumber":148,"sourceCode":"func RunValidateCluster(ctx context.Context, f *util.Factory, out io.Writer, options *ValidateClusterOptions) (*validation.ValidationCluster, error) {\n\tclientSet, err := f.KopsClient()\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tcluster, err := GetCluster(ctx, f, options.ClusterName)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tcloud, err := cloudup.BuildCloud(cluster)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tlist, err := clientSet.InstanceGroupsFor(cluster).List(ctx, metav1.ListOptions{})\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"cannot get InstanceGroups for %q: %v\", cluster.ObjectMeta.Name, err)\n\t}\n\n\tif options.output == OutputTable {\n\t\tfmt.Fprintf(out, \"Validating cluster %v\\n\\n\", cluster.ObjectMeta.Name)\n\t}\n\n\tvar instanceGroups []kopsapi.InstanceGroup\n\tfor _, ig := range list.Items {\n\t\tinstanceGroups = append(instanceGroups, ig)\n\t\tklog.V(2).Infof(\"instance group: %#v\\n\\n\", ig.Spec)\n\t}\n\n\tif len(instanceGroups) == 0 {\n\t\treturn nil, fmt.Errorf(\"no InstanceGroup objects found\")\n\t}\n\n\trestConfig, err := f.RESTConfig(ctx, cluster, options.CreateKubecfgOptions)\n\tif err != nil {","sourceCodeStart":130,"sourceCodeEnd":166,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/cmd/kops/validate_cluster.go#L130-L166","documentation":"Wraps a failure of the InstanceGroups List API call in RunValidateCluster: the cluster was found, but its instance groups could not be listed from the state store. Validation needs the instance groups to enumerate expected nodes.","triggerScenarios":"Thrown at cmd/kops/validate_cluster.go:148 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check state store access and permissions","Verify the cluster name","Run kops get instancegroups to reproduce"],"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"}