{"record":{"id":"d1833c9e91bf61bc","repo":"kubernetes/kops","slug":"error-building-cloud-tags-v-d1833c","errorCode":null,"errorMessage":"error building cloud tags: %v","messagePattern":"error building cloud tags: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/model/gcemodel/autoscalinggroup.go","lineNumber":248,"sourceCode":"\t\t\tt.CanIPForward = new(false)\n\n\t\t\tnodeCIDRMaskSize := int32(24)\n\t\t\tif b.Cluster.Spec.KubeControllerManager.NodeCIDRMaskSize != nil {\n\t\t\t\tnodeCIDRMaskSize = *b.Cluster.Spec.KubeControllerManager.NodeCIDRMaskSize\n\t\t\t}\n\t\t\tt.AliasIPRanges = map[string]string{\n\t\t\t\tb.NameForIPAliasRange(\"pods\"): fmt.Sprintf(\"/%d\", nodeCIDRMaskSize),\n\t\t\t}\n\t\t} else {\n\t\t\tt.CanIPForward = new(true)\n\t\t}\n\t\tt.Subnet = b.LinkToSubnet(subnet)\n\n\t\tt.ServiceAccounts = append(t.ServiceAccounts, b.LinkToServiceAccount(ig))\n\n\t\tlabels, err := b.CloudTagsForInstanceGroup(ig)\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"error building cloud tags: %v\", err)\n\t\t}\n\t\tt.Labels = labels\n\n\t\tt.GuestAccelerators = []gcetasks.AcceleratorConfig{}\n\t\tfor _, accelerator := range ig.Spec.GuestAccelerators {\n\t\t\tt.GuestAccelerators = append(t.GuestAccelerators, gcetasks.AcceleratorConfig{\n\t\t\t\tAcceleratorCount: accelerator.AcceleratorCount,\n\t\t\t\tAcceleratorType:  accelerator.AcceleratorType,\n\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","sourceCodeStart":230,"sourceCodeEnd":266,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/pkg/model/gcemodel/autoscalinggroup.go#L230-L266","documentation":"Computing the GCE cloud tags (instance labels) for an instance group failed while building its instance template; typically a label key or value violates GCE labeling constraints.","triggerScenarios":"Thrown at pkg/model/gcemodel/autoscalinggroup.go:248 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check cluster and instance group labels for invalid characters or excessive length (GCE label constraints)","Fix the labels in the cluster spec","Re-run kops update"],"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"}