-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Baremetal image filenames require additional validation #2894
Comments
/label platform/baremetal |
Hmm.. I'd like to undo the mess with all the substitutions but that's a lot of changes throughout the stack. You have an opinion on this Steve? I'm kinda leaning toward validation for now? Be kind of a strange error message though: "ERROR: Your image name must have '-openstack' in it somewhere" :) |
I'm joking above but.. it would be a strange thing to verify. |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
Stale issues rot after 30d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle rotten |
Rotten issues close after 30d of inactivity. Reopen the issue by commenting /close |
@openshift-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/reopen |
@hardys: Reopened this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Rotten issues close after 30d of inactivity. Reopen the issue by commenting /close |
@openshift-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Since #2757 landed it's possible to specify arbitrary filenames in the install config, for locally mirrored rhcos images.
However we rely on the installer generated filename currently, to replace
-openstack
with-compressed
- this aligns with how the downloader container works, and fails if the filename doesn't match the expected format:https://github.com/openshift/installer/blob/master/pkg/asset/machines/baremetal/machines.go#L88
openshift/ironic-rhcos-downloader#21
To reproduce you can specify e.g:
clusterOSImage: http://1.2.3.4/rhcos.qcow2.gz?sha256=xyz
instead of the expected e.g:
clusterOSImage: http://1.2.3.4/rhcos-44.81.202001030903.0-openstack.x86_64.qcow2.gz?sha256=xyz
The installer will accept this, but the downloader container will fail, and the providerSpec image reference will be wrong.
We need to either add validation to catch this, or rework the string substitution to work with arbitrary filenames.
The text was updated successfully, but these errors were encountered: