{"record":{"id":"2792866e851917c7","repo":"kubernetes/kops","slug":"error-building-bootstrap-script-for-q-w","errorCode":null,"errorMessage":"error building bootstrap script for %q: %w","messagePattern":"error building bootstrap script for %q: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/model/scalewaymodel/instances.go","lineNumber":55,"sourceCode":"\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),\n\t\t\tLifecycle:      b.Lifecycle,\n\t\t\tZone:           new(string(zone)),\n\t\t\tCommercialType: new(ig.Spec.MachineType),\n\t\t\tImage:          new(ig.Spec.Image),\n\t\t\tUserData:       &userData,","sourceCodeStart":37,"sourceCodeEnd":73,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/pkg/model/scalewaymodel/instances.go#L37-L73","documentation":"Wrapped failure from BootstrapScriptBuilder.ResourceNodeUp while generating the nodeup bootstrap script for a Scaleway instance group. The rendering error is in the %w detail; this layer only attributes the failure to the named instance group.","triggerScenarios":"Thrown at pkg/model/scalewaymodel/instances.go:55 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Read the wrapped error to find the failing bootstrap-script field","Correct the cluster/instance-group spec accordingly and re-run `kops update cluster`"],"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"}