-
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
WIP: Verify that RHCOS major version matches expected #2532
Conversation
This is just a draft, proposal untested WIP. I've seen people in the past trying to use the wrong RHCOS bootimages. I'd like to make that a clean, clear error. Various weird things can go wrong if e.g. one tries to use a RHCOS 4.2 bootimage for 4.1 installer. I'd also like to change this code at least *warn* if the bootimage doesn't *exactly* match what's pinned in the installer. Cleaning this up will need to plumb through the pinned install data into this script. Also we'll need to add an environment variable like `OPENSHIFT_INSTALL_ALLOW_OS_IMAGE_OVERRIDE` which makes this script not error, so that one can easily test new RHCOS versions without rebuilding/hacking the installer.
/hold |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: cgwalters The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
And this should probably be a separate service that doesn't go in a retry loop, so we fail fast. |
that's not advisable or feasible for UPI customers.
personally until we support in cluster component that managed the bootimages, this is not the correct stance to make. |
This is about the bootstrap image - you're talking about openshift/os#381 which is distinct. Now, I could imagine that e.g. we could also pivot the bootstrap image. That would make the bootstrap case symmetrical. But it absolutely doesn't work today to use e.g. the 4.1 bootimage with 4.2 installer (due to |
See openshift/enhancements#78 (comment) which would obviate this. |
Closing due to this being open for a long time, Please feel free to reopen /close |
@abhinavdahiya: Closed this PR. 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. |
This is just a draft, proposal untested WIP.
I've seen people in the past trying to use the wrong RHCOS
bootimages. I'd like to make that a clean, clear error.
Various weird things can go wrong if e.g. one tries to use
a RHCOS 4.2 bootimage for 4.1 installer.
I'd also like to change this code at least warn if
the bootimage doesn't exactly match what's pinned in the
installer.
Cleaning this up will need to plumb through the pinned
install data into this script.
Also we'll need to add an environment variable like
OPENSHIFT_INSTALL_ALLOW_OS_IMAGE_OVERRIDE
whichmakes this script not error, so that one can easily
test new RHCOS versions without rebuilding/hacking the
installer.