Skip to content

Cannoset preloadedOSImageName in OKD Deployment with Nutanix #2356

Description

@rasystems1

Describe the bug

Hi everyone,
I am currently deploying OKD in IPI mode on the Nutanix platform. I want to deploy OKD using an image template that has already been uploaded to Nutanix. I encountered the following error. I realized I needed to clone the image within Nutanix by providing the URL for the corresponding template—in my case: https://rhcos.mirror.openshift.com/art/storage/prod/streams/c10s/builds/10.0.20251103-0/x86_64/scos-10.0.20251103-0-nutanix.x86_64.qcow2

After uploading it and setting the following parameter in the install-config (I named it okd-scos):
preloadedOSImageName: okd-scos

When running the deployment, I consistently get this error:
FATAL could not retrieve cluster infrastructure variables: could not retrieve dependency "Cluster infrastructure variables": could not generate asset "Platform provisioning check": platform.nutanix.preloadedOSImageName: Invalid value: "okd-scos": could not validate preloaded rhcos image: could not obtain rhcos image version from source_uri of preloaded object okd-scos https://rhcos.mirror.openshift.com/art/storage/prod/streams/c10s/builds/10.0.20260806-0/x86_64/scos-10.0.20260806-0-nutanix.x86_64.qcow2

Upon reviewing the code, I found that the openshift-installer always checks that the name starts with rhcos rather than scos. Therefore, a workaround would be to download the file from an HTTP server but rename it to start with rhcos.

Here: https://github.com/openshift/installer/blob/release-4.22/pkg/asset/installconfig/nutanix/validation.go

In function validatePreloadedImage

Image

Version

4.22-okd-scos-10

Reproducibility

No response

Log Bundle

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

kind/bugCategorizes issue or PR as related to a bug.

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions