kubernetes/kops · error
error building bootstrap script for %q: %w
Error message
error building bootstrap script for %q: %w
What it means
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.
Source
Thrown at pkg/model/scalewaymodel/instances.go:55
*ScwModelContext
BootstrapScriptBuilder *model.BootstrapScriptBuilder
Lifecycle fi.Lifecycle
}
var _ fi.CloudupModelBuilder = &InstanceModelBuilder{}
func (b *InstanceModelBuilder) Build(c *fi.CloudupModelBuilderContext) error {
for _, ig := range b.InstanceGroups {
name := ig.Name
zone, err := scw.ParseZone(ig.Spec.Subnets[0])
if err != nil {
return fmt.Errorf("error building instance task for %q: %w", name, err)
}
userData, err := b.BootstrapScriptBuilder.ResourceNodeUp(c, ig)
if err != nil {
return fmt.Errorf("error building bootstrap script for %q: %w", name, err)
}
instanceTags := []string{
scaleway.TagClusterName + "=" + b.Cluster.Name,
scaleway.TagInstanceGroup + "=" + ig.Name,
}
for k, v := range b.CloudTags(b.ClusterName(), false) {
instanceTags = append(instanceTags, fmt.Sprintf("%s=%s", k, v))
}
instance := scalewaytasks.Instance{
Count: int(fi.ValueOf(ig.Spec.MinSize)),
Name: new(name),
Lifecycle: b.Lifecycle,
Zone: new(string(zone)),
CommercialType: new(ig.Spec.MachineType),
Image: new(ig.Spec.Image),
UserData: &userData,View on GitHub (pinned to 4c8573c808)
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`
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at pkg/model/scalewaymodel/instances.go:55 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of kubernetes/kops@4c8573c808 (2026-09-05).
Data as JSON: /api/errors/2792866e851917c7.
Report an issue: GitHub.