kubernetes/kops · error

no image found with name %v

Error message

no image found with name %v

What it means

The OpenStack Glance image list filtered by exact name returned zero results. kops resolves the node image by name before creating instances, so an empty result means the configured image name does not exist in the project/region visible to the credentials.

Source

Thrown at upup/pkg/fi/cloudup/openstack/image.go:47

func getImage(c OpenstackCloud, name string) (*images.Image, error) {
	opts := images.ListOpts{Name: name}
	pager := images.List(c.ImageClient(), opts)
	page, err := pager.AllPages(context.TODO())
	if err != nil {
		return nil, fmt.Errorf("failed to list images: %v", err)
	}

	i, err := images.ExtractImages(page)
	if err != nil {
		return nil, fmt.Errorf("failed to extract images: %v", err)
	}

	switch len(i) {
	case 1:
		return &i[0], nil
	case 0:
		return nil, fmt.Errorf("no image found with name %v", name)
	default:
		return nil, fmt.Errorf("multiple images found with name %v", name)
	}
}

View on GitHub (pinned to 4c8573c808)

Solutions

  1. Verify the image name in the cluster spec matches an existing Glance image (openstack image list)
  2. Check the project/region the credentials are scoped to
  3. Upload or import the image, or point the spec at an existing one
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at upup/pkg/fi/cloudup/openstack/image.go:47 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/5e5ebb0d38df83db. Report an issue: GitHub.