kubernetes/kops · error

multiple images found with name %v

Error message

multiple images found with name %v

What it means

The Glance image list filtered by name returned more than one image, so the image name is ambiguous and kops cannot safely choose which one to boot nodes from. Often caused by shared or public images with the same name in the project.

Source

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

	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. Run openstack image list and de-duplicate: remove or rename the colliding images
  2. Use a unique image name in the cluster spec
  3. Filter by more specific name or remove visibility of the shared duplicate
Defensive patterns

Strategy: validation

When it happens

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