{"record":{"id":"a175db5c3f0e500f","repo":"kubernetes/kops","slug":"error-creating-instance-of-group-q-w","errorCode":null,"errorMessage":"error creating instance of group %q: %w","messagePattern":"error creating instance of group %q: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/scalewaytasks/instance.go","lineNumber":246,"sourceCode":"\t\t\tTags:            expected.Tags,\n\t\t\tRoutedIPEnabled: new(true),\n\t\t}\n\n\t\t// We resize the root volume if needed (for instance types with no local storage)\n\t\tif expected.VolumeSize != nil {\n\t\t\tcreateServerRequest.Volumes = map[string]*instance.VolumeServerTemplate{\n\t\t\t\t\"0\": {\n\t\t\t\t\tBoot:       new(true),\n\t\t\t\t\tSize:       new(scw.Size(fi.ValueOf(expected.VolumeSize)) * scw.GB),\n\t\t\t\t\tVolumeType: instance.VolumeVolumeTypeBSSD,\n\t\t\t\t},\n\t\t\t}\n\t\t}\n\n\t\t// We create the instance and wait for it to be ready\n\t\tsrv, err := instanceService.CreateServer(&createServerRequest)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"error creating instance of group %q: %w\", fi.ValueOf(expected.Name), err)\n\t\t}\n\t\t_, err = instanceService.WaitForServer(&instance.WaitForServerRequest{\n\t\t\tServerID: srv.Server.ID,\n\t\t\tZone:     zone,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"error waiting for instance %s of group %q: %w\", srv.Server.ID, fi.ValueOf(expected.Name), err)\n\t\t}\n\n\t\t// We load the cloud-init script in the instance user data\n\t\terr = instanceService.SetServerUserData(&instance.SetServerUserDataRequest{\n\t\t\tServerID: srv.Server.ID,\n\t\t\tZone:     srv.Server.Zone,\n\t\t\tKey:      \"cloud-init\",\n\t\t\tContent:  bytes.NewBuffer(userData),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"error setting 'cloud-init' in user-data for instance %s of group %q: %w\", srv.Server.ID, fi.ValueOf(expected.Name), err)","sourceCodeStart":228,"sourceCodeEnd":264,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/scalewaytasks/instance.go#L228-L264","documentation":"In RenderScw's creation loop, instanceService.CreateServer failed for the instance group being scaled — the Scaleway API rejected the server creation request (quota exceeded, invalid commercial type/image, out of capacity, permissions). The group name is included; no server exists for this iteration.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/scalewaytasks/instance.go:246 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the wrapped error: quotas and capacity are the most common causes","Verify commercial type, image and zone combination is valid","Request quota increases or pick another zone/type, then retry"],"exampleFix":null,"handlingStrategy":"retry","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"}