{"record":{"id":"e8c176d9103f1197","repo":"kubernetes/kops","slug":"error-building-instance-task-for-q-w","errorCode":null,"errorMessage":"error building instance task for %q: %w","messagePattern":"error building instance task for %q: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/model/scalewaymodel/instances.go","lineNumber":50,"sourceCode":"const defaultNodeRootVolumeSizeGB = 50\nconst defaultControlPlaneRootVolumeSizeGB = 20\n\n// InstanceModelBuilder configures instances for the cluster\ntype InstanceModelBuilder struct {\n\t*ScwModelContext\n\n\tBootstrapScriptBuilder *model.BootstrapScriptBuilder\n\tLifecycle              fi.Lifecycle\n}\n\nvar _ fi.CloudupModelBuilder = &InstanceModelBuilder{}\n\nfunc (b *InstanceModelBuilder) Build(c *fi.CloudupModelBuilderContext) error {\n\tfor _, ig := range b.InstanceGroups {\n\t\tname := ig.Name\n\t\tzone, err := scw.ParseZone(ig.Spec.Subnets[0])\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"error building instance task for %q: %w\", name, err)\n\t\t}\n\n\t\tuserData, err := b.BootstrapScriptBuilder.ResourceNodeUp(c, ig)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"error building bootstrap script for %q: %w\", name, err)\n\t\t}\n\n\t\tinstanceTags := []string{\n\t\t\tscaleway.TagClusterName + \"=\" + b.Cluster.Name,\n\t\t\tscaleway.TagInstanceGroup + \"=\" + ig.Name,\n\t\t}\n\t\tfor k, v := range b.CloudTags(b.ClusterName(), false) {\n\t\t\tinstanceTags = append(instanceTags, fmt.Sprintf(\"%s=%s\", k, v))\n\t\t}\n\n\t\tinstance := scalewaytasks.Instance{\n\t\t\tCount:          int(fi.ValueOf(ig.Spec.MinSize)),\n\t\t\tName:           new(name),","sourceCodeStart":32,"sourceCodeEnd":68,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/pkg/model/scalewaymodel/instances.go#L32-L68","documentation":"Wrapped failure parsing the Scaleway zone for an instance group (scw.ParseZone over the IG's first subnet string) while constructing the instance task. The instance group named is the one whose spec.subnets[0] is not a valid Scaleway zone.","triggerScenarios":"Thrown at pkg/model/scalewaymodel/instances.go:50 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set spec.subnets[0] of the instance group to a valid Scaleway zone like fr-par-1","Ensure every Scaleway instance group has at least one subnet entry"],"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"}