{"record":{"id":"d30f455fa6839b01","repo":"kubernetes/kops","slug":"failed-to-find-image-v-v","errorCode":null,"errorMessage":"failed to find image %v: %v","messagePattern":"failed to find image (.+?): (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/openstacktasks/instance.go","lineNumber":336,"sourceCode":"func (_ *Instance) RenderOpenstack(t *openstack.OpenstackAPITarget, a, e, changes *Instance) error {\n\tcloud := t.Cloud\n\n\tif a != nil && fi.ValueOf(a.Status) == errorStatus {\n\t\tklog.V(2).Infof(\"Delete previously failed server: %s\\n\", fi.ValueOf(a.ID))\n\t\tcloud.DeleteInstanceWithID(fi.ValueOf(a.ID))\n\t}\n\n\tif a == nil || fi.ValueOf(a.Status) == errorStatus {\n\t\tserverName, err := generateInstanceName(e)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tklog.V(2).Infof(\"Creating Instance with name: %q\", serverName)\n\n\t\timageName := fi.ValueOf(e.Image)\n\t\timage, err := cloud.GetImage(imageName)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"failed to find image %v: %v\", imageName, err)\n\t\t}\n\n\t\tflavorName := fi.ValueOf(e.Flavor)\n\t\tflavor, err := cloud.GetFlavor(flavorName)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"failed to find flavor %v: %v\", flavorName, err)\n\t\t}\n\n\t\topt := servers.CreateOpts{\n\t\t\tName:      serverName,\n\t\t\tImageRef:  image.ID,\n\t\t\tFlavorRef: flavor.ID,\n\t\t\tNetworks: []servers.Network{\n\t\t\t\t{\n\t\t\t\t\tPort: fi.ValueOf(e.Port.ID),\n\t\t\t\t},\n\t\t\t},\n\t\t\tMetadata:       e.Metadata,","sourceCodeStart":318,"sourceCodeEnd":354,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/openstacktasks/instance.go#L318-L354","documentation":"The image lookup by the configured image name failed while preparing to create the instance. The wrapped error typically means the named Glance image does not exist in the project, or is duplicated.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/openstacktasks/instance.go:336 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the image name exists in Glance (openstack image list)","Update the cluster spec's image to an existing unique image","Import the image if missing"],"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"}