{"record":{"id":"0e93b60af30548af","repo":"kubernetes/kops","slug":"multiple-images-found-with-name-v","errorCode":null,"errorMessage":"multiple images found with name %v","messagePattern":"multiple images found with name (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/openstack/image.go","lineNumber":49,"sourceCode":"\topts := images.ListOpts{Name: name}\n\tpager := images.List(c.ImageClient(), opts)\n\tpage, err := pager.AllPages(context.TODO())\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to list images: %v\", err)\n\t}\n\n\ti, err := images.ExtractImages(page)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to extract images: %v\", err)\n\t}\n\n\tswitch len(i) {\n\tcase 1:\n\t\treturn &i[0], nil\n\tcase 0:\n\t\treturn nil, fmt.Errorf(\"no image found with name %v\", name)\n\tdefault:\n\t\treturn nil, fmt.Errorf(\"multiple images found with name %v\", name)\n\t}\n}\n","sourceCodeStart":31,"sourceCodeEnd":52,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/openstack/image.go#L31-L52","documentation":"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.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/openstack/image.go:49 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Run openstack image list and de-duplicate: remove or rename the colliding images","Use a unique image name in the cluster spec","Filter by more specific name or remove visibility of the shared duplicate"],"exampleFix":null,"handlingStrategy":"validation","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"}