-
Notifications
You must be signed in to change notification settings - Fork 20
METAL-1564: Use available images #147
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
METAL-1564: Use available images #147
Conversation
Take the base filename from the DEPLOY_ISO/DEPLOY_INITRD environment variables instead of hardcoding it. Assisted-By: Cursor
Using a . instead of an _ is the standard for e.g. CoreOS images on the mirror. ABI uses agent.x86_64.iso. Since x86_64 already has an underscore in it, it may parse ambiguously in other contexts. Allow both so as not to break any existing code in development. Assisted-By: Cursor
@zaneb: This pull request references METAL-1564 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.21.0" version, but no target version was set. 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 openshift-eng/jira-lifecycle-plugin repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: zaneb The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
A regression from 583e13f meant that the DEPLOY_ISO and DEPLOY_INITRD files would not be found unless they happened to be in the directory specified as IMAGE_SHARED_DIR (by default /shared/html/images). This change means that these files will always be found if specified, and that the directory/directories that contain them will be searched for arch-specific images unless the search directory is explicitly overridden by IMAGE_SHARED_DIR. Assisted-By: Cursor
The input images here are nothing to do with ironic, so choose a less confusing name. Assisted-By: Cursor
If no architecture-specific images are provided, fall back to the host architecture image when the requested architecture is the host architecture. Assisted-By: Cursor
If we don't have images available for the requested architecture, return false from SupportsArchitecture(). This ensures that the correct error message is set in the controller, and avoids a segfault when we try to call ServeImage() with an invalid architecture. Assisted-By: Cursor
c117ec7
to
4872cf8
Compare
/retest-required |
3 similar comments
/retest-required |
/retest-required |
/retest-required |
/lgtm |
/retest-required |
1 similar comment
/retest-required |
This needs a verified label. Is it possible for QE to test this change? Otherwise, we need to delay testing or self-verify. |
I think we can say it's verified by CI. Not sure why the ipv4 job is stubborn: baremetalhosts are provisioned, no errors in ICC. |
/retest-required |
This is blocking OCPBUGS-61477, so we will need to find QE resources to test this. However, it might make sense to test it together with openshift/machine-os-images#67. Testing it on its own tells us we haven't broken anything but only by reverting back to one ISO per arch can we see that it has achieved its goal. |
/verified by sgoveas |
@sgoveas: This PR has been marked as verified by 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 openshift-eng/jira-lifecycle-plugin repository. |
@zaneb: The following test failed, say
Full PR test history. Your PR dashboard. 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-sigs/prow repository. I understand the commands that are listed here. |
/retest-required |
d958f0b
into
openshift:main
Instead of hard-coding which OS images we expect to be available, work with whatever images are provided. Ensure that the
DEPLOY_ISO
andDEPLOY_INITRD
env vars continue to work as they did prior to 583e13f.