{"record":{"id":"07d9e3b03934af7a","repo":"kubernetes/kops","slug":"error-reading-instancegroup-q-v-07d9e3","errorCode":null,"errorMessage":"error reading InstanceGroup %q: %v","messagePattern":"error reading InstanceGroup %q: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/kops/edit_instancegroup.go","lineNumber":142,"sourceCode":"\n\tcluster, err := GetCluster(ctx, f, options.ClusterName)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tclientset, err := f.KopsClient()\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tchannel, err := cloudup.ChannelForCluster(clientset.VFSContext(), cluster)\n\tif err != nil {\n\t\tklog.Warningf(\"%v\", err)\n\t}\n\n\toldGroup, err := clientset.InstanceGroupsFor(cluster).Get(ctx, groupName, metav1.GetOptions{})\n\tif err != nil {\n\t\treturn fmt.Errorf(\"error reading InstanceGroup %q: %v\", groupName, err)\n\t}\n\tif oldGroup == nil {\n\t\treturn fmt.Errorf(\"InstanceGroup %q not found\", groupName)\n\t}\n\n\tif len(options.Unsets)+len(options.Sets) > 0 {\n\t\tnewGroup := oldGroup.DeepCopy()\n\t\tif err := commands.UnsetInstancegroupFields(options.Unsets, newGroup); err != nil {\n\t\t\treturn err\n\t\t}\n\t\tif err := commands.SetInstancegroupFields(options.Sets, newGroup); err != nil {\n\t\t\treturn err\n\t\t}\n\n\t\tfailure, err := updateInstanceGroup(ctx, clientset, channel, cluster, newGroup)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}","sourceCodeStart":124,"sourceCodeEnd":160,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/cmd/kops/edit_instancegroup.go#L124-L160","documentation":"RunEditInstanceGroup fetched the named instance group from the state store and the API call itself errored (not a clean not-found): store unreachable, permissions, or server error. The cluster lookup and channel load already succeeded.","triggerScenarios":"Thrown at cmd/kops/edit_instancegroup.go:142 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the wrapped error for the state store failure reason","Verify state store access and credentials","Confirm the cluster's instance groups are readable (kops get ig)"],"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-12T12:17:11.808Z"}