kubernetes/kops · error

error creating instance of group %q: %w

Error message

error creating instance of group %q: %w

What it means

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.

Source

Thrown at upup/pkg/fi/cloudup/scalewaytasks/instance.go:246

			Tags:            expected.Tags,
			RoutedIPEnabled: new(true),
		}

		// We resize the root volume if needed (for instance types with no local storage)
		if expected.VolumeSize != nil {
			createServerRequest.Volumes = map[string]*instance.VolumeServerTemplate{
				"0": {
					Boot:       new(true),
					Size:       new(scw.Size(fi.ValueOf(expected.VolumeSize)) * scw.GB),
					VolumeType: instance.VolumeVolumeTypeBSSD,
				},
			}
		}

		// We create the instance and wait for it to be ready
		srv, err := instanceService.CreateServer(&createServerRequest)
		if err != nil {
			return fmt.Errorf("error creating instance of group %q: %w", fi.ValueOf(expected.Name), err)
		}
		_, err = instanceService.WaitForServer(&instance.WaitForServerRequest{
			ServerID: srv.Server.ID,
			Zone:     zone,
		})
		if err != nil {
			return fmt.Errorf("error waiting for instance %s of group %q: %w", srv.Server.ID, fi.ValueOf(expected.Name), err)
		}

		// We load the cloud-init script in the instance user data
		err = instanceService.SetServerUserData(&instance.SetServerUserDataRequest{
			ServerID: srv.Server.ID,
			Zone:     srv.Server.Zone,
			Key:      "cloud-init",
			Content:  bytes.NewBuffer(userData),
		})
		if err != nil {
			return fmt.Errorf("error setting 'cloud-init' in user-data for instance %s of group %q: %w", srv.Server.ID, fi.ValueOf(expected.Name), err)

View on GitHub (pinned to 4c8573c808)

Solutions

  1. Check the wrapped error: quotas and capacity are the most common causes
  2. Verify commercial type, image and zone combination is valid
  3. Request quota increases or pick another zone/type, then retry
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at upup/pkg/fi/cloudup/scalewaytasks/instance.go:246 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/a175db5c3f0e500f. Report an issue: GitHub.