{"record":{"id":"28040de07c087f2b","repo":"kubernetes/kops","slug":"error-listing-instancegroupmanagers-v-28040d","errorCode":null,"errorMessage":"error listing InstanceGroupManagers: %v","messagePattern":"error listing InstanceGroupManagers: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/gcetasks/instancegroupmanager.go","lineNumber":59,"sourceCode":"\n\tTargetPools []*TargetPool\n}\n\nvar _ fi.CompareWithID = (*InstanceGroupManager)(nil)\n\nfunc (e *InstanceGroupManager) CompareWithID() *string {\n\treturn e.Name\n}\n\nfunc (e *InstanceGroupManager) Find(c *fi.CloudupContext) (*InstanceGroupManager, error) {\n\tcloud := c.T.Cloud.(gce.GCECloud)\n\n\tr, err := cloud.Compute().InstanceGroupManagers().Get(cloud.Project(), *e.Zone, *e.Name)\n\tif err != nil {\n\t\tif gce.IsNotFound(err) {\n\t\t\treturn nil, nil\n\t\t}\n\t\treturn nil, fmt.Errorf(\"error listing InstanceGroupManagers: %v\", err)\n\t}\n\n\tactual := &InstanceGroupManager{}\n\tactual.Name = &r.Name\n\tactual.Zone = new(lastComponent(r.Zone))\n\tactual.BaseInstanceName = &r.BaseInstanceName\n\tactual.TargetSize = e.TargetSize\n\tactual.InstanceTemplate = &InstanceTemplate{ID: new(lastComponent(r.InstanceTemplate))}\n\tactual.ListManagedInstancesResults = r.ListManagedInstancesResults\n\n\tif policy := r.UpdatePolicy; policy != nil {\n\t\tactual.UpdatePolicy = &UpdatePolicy{MinimalAction: policy.MinimalAction, Type: policy.Type}\n\t}\n\n\tfor _, targetPool := range r.TargetPools {\n\t\tactual.TargetPools = append(actual.TargetPools, &TargetPool{\n\t\t\tName: new(lastComponent(targetPool)),\n\t\t})","sourceCodeStart":41,"sourceCodeEnd":77,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/gcetasks/instancegroupmanager.go#L41-L77","documentation":"Wrapped error from InstanceGroupManager.Find when the InstanceGroupManagers.Get call fails with a non-404 error. Misleadingly worded as 'listing'; it actually indicates a failed single-resource Get during cloud discovery (permissions, wrong zone, API failure).","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/gcetasks/instancegroupmanager.go:59 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the wrapped error for the Google API failure reason","Confirm the IGM name and zone are correct in the spec","Ensure compute.instanceGroupManagers.get permission for the service account"],"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"}