Skip to content
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

Closed
hardys opened this issue Jan 9, 2020 · 11 comments
Closed

Baremetal image filenames require additional validation #2894

hardys opened this issue Jan 9, 2020 · 11 comments
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. platform/baremetal IPI bare metal hosts platform

Comments

@hardys
Copy link

hardys commented Jan 9, 2020

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.

@hardys
Copy link
Author

hardys commented Jan 9, 2020

/label platform/baremetal

@openshift-ci-robot openshift-ci-robot added the platform/baremetal IPI bare metal hosts platform label Jan 9, 2020
@imain
Copy link
Contributor

imain commented Feb 11, 2020

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" :)

@imain
Copy link
Contributor

imain commented Feb 11, 2020

I'm joking above but.. it would be a strange thing to verify.

@openshift-bot
Copy link
Contributor

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci-robot openshift-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label May 11, 2020
@openshift-bot
Copy link
Contributor

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten
/remove-lifecycle stale

@openshift-ci-robot openshift-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Jun 10, 2020
@openshift-bot
Copy link
Contributor

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/close

@openshift-ci-robot
Copy link
Contributor

@openshift-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/close

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.

@hardys
Copy link
Author

hardys commented Sep 30, 2020

/reopen

@openshift-ci-robot
Copy link
Contributor

@hardys: Reopened this issue.

In response to this:

/reopen

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.

@openshift-bot
Copy link
Contributor

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/close

@openshift-ci-robot
Copy link
Contributor

@openshift-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/close

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. platform/baremetal IPI bare metal hosts platform
Projects
None yet
Development

No branches or pull requests

4 participants