{"record":{"id":"5e5ebb0d38df83db","repo":"kubernetes/kops","slug":"no-image-found-with-name-v","errorCode":null,"errorMessage":"no image found with name %v","messagePattern":"no image found with name (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/openstack/image.go","lineNumber":47,"sourceCode":"\nfunc getImage(c OpenstackCloud, name string) (*images.Image, error) {\n\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":29,"sourceCodeEnd":52,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/openstack/image.go#L29-L52","documentation":"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.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/openstack/image.go:47 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the image name in the cluster spec matches an existing Glance image (openstack image list)","Check the project/region the credentials are scoped to","Upload or import the image, or point the spec at an existing one"],"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"}