{"record":{"id":"3d1a7561d50dc52d","repo":"kubernetes/kops","slug":"no-zones-found-for-instance-group-q","errorCode":null,"errorMessage":"no zones found for instance group %q","messagePattern":"no zones found for instance group %q","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/model/gcemodel/autoscalinggroup.go","lineNumber":275,"sourceCode":"\t\t\t})\n\t\t}\n\n\t\treturn t, nil\n\t}\n}\n\nfunc (b *AutoscalingGroupModelBuilder) splitToZones(ig *kops.InstanceGroup) (map[string]int, error) {\n\t// Indented to keep diff manageable\n\t// TODO: Remove spurious indent\n\t{\n\t\t// AutoscalingGroup\n\t\tzones, err := b.FindZonesForInstanceGroup(ig)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\n\t\tif len(zones) == 0 {\n\t\t\treturn nil, fmt.Errorf(\"no zones found for instance group %q\", ig.ObjectMeta.Name)\n\t\t}\n\n\t\t// TODO: Duplicated from aws - move to defaults?\n\t\tminSize := 1\n\t\tif ig.Spec.MinSize != nil {\n\t\t\tminSize = int(fi.ValueOf(ig.Spec.MinSize))\n\t\t} else if ig.Spec.Role.HasNode() {\n\t\t\tminSize = 2\n\t\t}\n\n\t\t// We have to assign instances to the various zones\n\t\t// TODO: Switch to regional managed instance group\n\t\t// But we can't yet use RegionInstanceGroups:\n\t\t// 1) no support in terraform\n\t\t// 2) we can't steer to specific zones AFAICT, only to all zones in the region\n\n\t\treturn SplitCountAcrossZones(minSize, zones), nil\n\t}","sourceCodeStart":257,"sourceCodeEnd":293,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/pkg/model/gcemodel/autoscalinggroup.go#L257-L293","documentation":"No zones could be resolved for the instance group when splitting its capacity across zones; the group's subnet/zone references yield an empty zone list.","triggerScenarios":"Thrown at pkg/model/gcemodel/autoscalinggroup.go:275 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the instance group's subnets/zone assignment in the cluster spec","Ensure the referenced subnets exist and define zones","Re-run kops update"],"exampleFix":null,"handlingStrategy":"validation","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"}