kubernetes/kops · error
error creating InstanceGroupManager: %v
Error message
error creating InstanceGroupManager: %v
What it means
Wrapped error from InstanceGroupManager.RenderGCE when the synchronous InstanceGroupManagers.Insert call fails for a new IGM (a == nil). GCE rejected the create — common causes are an invalid instance template reference, missing target pools, or quota.
Source
Thrown at upup/pkg/fi/cloudup/gcetasks/instancegroupmanager.go:130
if policy := e.UpdatePolicy; policy != nil {
i.UpdatePolicy = &compute.InstanceGroupManagerUpdatePolicy{
MinimalAction: policy.MinimalAction,
Type: policy.Type,
}
}
for _, targetPool := range e.TargetPools {
i.TargetPools = append(i.TargetPools, targetPool.URL(t.Cloud))
}
if a == nil {
if i.TargetSize == 0 {
// TargetSize 0 will normally be omitted by the marshaling code; we need to force it
i.ForceSendFields = append(i.ForceSendFields, "TargetSize")
}
op, err := t.Cloud.Compute().InstanceGroupManagers().Insert(t.Cloud.Project(), *e.Zone, i)
if err != nil {
return fmt.Errorf("error creating InstanceGroupManager: %v", err)
}
if err := t.Cloud.WaitForOp(op); err != nil {
return fmt.Errorf("error creating InstanceGroupManager: %v", err)
}
} else {
if changes.TargetPools != nil {
op, err := t.Cloud.Compute().InstanceGroupManagers().SetTargetPools(t.Cloud.Project(), *e.Zone, i.Name, i.TargetPools)
if err != nil {
return fmt.Errorf("error updating TargetPools for InstanceGroupManager: %v", err)
}
if err := t.Cloud.WaitForOp(op); err != nil {
return fmt.Errorf("error updating TargetPools for InstanceGroupManager: %v", err)
}
changes.TargetPools = nil
}View on GitHub (pinned to 4c8573c808)
Solutions
- Inspect the wrapped error for the rejected field
- Verify the instance template and target pools referenced by the IGM exist
- Clear quota issues and re-run the apply
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at upup/pkg/fi/cloudup/gcetasks/instancegroupmanager.go:130 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/bf3d79c58e7e904d.
Report an issue: GitHub.