kubernetes/kops · error
error listing InstanceGroupManagers: %v
Error message
error listing InstanceGroupManagers: %v
What it means
Fires in listInstanceGroupManagersAndInstances when listing GCP InstanceGroupManagers fails for a zone during cluster resource discovery — an API, credentials, or network failure enumerating MIGs, not their absence.
Source
Thrown at pkg/resources/gce/gce.go:216
var resourceTrackers []*resources.Resource
instanceTemplates := make(map[string]*compute.InstanceTemplate)
{
templates, err := d.findInstanceTemplates()
if err != nil {
return nil, err
}
for _, t := range templates {
instanceTemplates[t.SelfLink] = t
}
}
ctx := context.Background()
for _, zoneName := range d.zones {
is, err := c.Compute().InstanceGroupManagers().List(ctx, project, zoneName)
if err != nil {
return nil, fmt.Errorf("error listing InstanceGroupManagers: %v", err)
}
for i := range is {
mig := is[i] // avoid closure-in-loop go-tcha
instanceTemplate := instanceTemplates[mig.InstanceTemplate]
if instanceTemplate == nil {
klog.V(2).Infof("Ignoring MIG with unmanaged InstanceTemplate: %s", mig.InstanceTemplate)
continue
}
resourceTracker := &resources.Resource{
Name: mig.Name,
ID: zoneName + "/" + mig.Name,
Type: typeInstanceGroupManager,
Deleter: func(cloud fi.Cloud, r *resources.Resource) error { return gce.DeleteInstanceGroupManager(c, mig) },
Obj: mig,
}
resourceTracker.Blocks = append(resourceTracker.Blocks, typeInstanceTemplate+":"+instanceTemplate.Name)View on GitHub (pinned to 4c8573c808)
Solutions
- Check GCP credentials and compute.instanceGroupManagers.list permission
- Retry after transient API errors
- Verify the zones in the cluster spec are correct and enabled in the project
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at pkg/resources/gce/gce.go:216 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of kubernetes/kops@4c8573c808 (2026-09-05).
Data as JSON: /api/errors/f3b54a03e390bdd7.
Report an issue: GitHub.