{"record":{"id":"bf3d79c58e7e904d","repo":"kubernetes/kops","slug":"error-creating-instancegroupmanager-v","errorCode":null,"errorMessage":"error creating InstanceGroupManager: %v","messagePattern":"error creating InstanceGroupManager: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/gcetasks/instancegroupmanager.go","lineNumber":130,"sourceCode":"\tif policy := e.UpdatePolicy; policy != nil {\n\t\ti.UpdatePolicy = &compute.InstanceGroupManagerUpdatePolicy{\n\t\t\tMinimalAction: policy.MinimalAction,\n\t\t\tType:          policy.Type,\n\t\t}\n\t}\n\n\tfor _, targetPool := range e.TargetPools {\n\t\ti.TargetPools = append(i.TargetPools, targetPool.URL(t.Cloud))\n\t}\n\n\tif a == nil {\n\t\tif i.TargetSize == 0 {\n\t\t\t// TargetSize 0 will normally be omitted by the marshaling code; we need to force it\n\t\t\ti.ForceSendFields = append(i.ForceSendFields, \"TargetSize\")\n\t\t}\n\t\top, err := t.Cloud.Compute().InstanceGroupManagers().Insert(t.Cloud.Project(), *e.Zone, i)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"error creating InstanceGroupManager: %v\", err)\n\t\t}\n\n\t\tif err := t.Cloud.WaitForOp(op); err != nil {\n\t\t\treturn fmt.Errorf(\"error creating InstanceGroupManager: %v\", err)\n\t\t}\n\t} else {\n\t\tif changes.TargetPools != nil {\n\t\t\top, err := t.Cloud.Compute().InstanceGroupManagers().SetTargetPools(t.Cloud.Project(), *e.Zone, i.Name, i.TargetPools)\n\t\t\tif err != nil {\n\t\t\t\treturn fmt.Errorf(\"error updating TargetPools for InstanceGroupManager: %v\", err)\n\t\t\t}\n\n\t\t\tif err := t.Cloud.WaitForOp(op); err != nil {\n\t\t\t\treturn fmt.Errorf(\"error updating TargetPools for InstanceGroupManager: %v\", err)\n\t\t\t}\n\n\t\t\tchanges.TargetPools = nil\n\t\t}","sourceCodeStart":112,"sourceCodeEnd":148,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/gcetasks/instancegroupmanager.go#L112-L148","documentation":"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.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/gcetasks/instancegroupmanager.go:130 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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"],"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-12T07:17:12.445Z"}