-
Notifications
You must be signed in to change notification settings - Fork 452
Disable hardcoded MaaS curtin scripts #1828
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
base: main
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 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 |
Hi @kreeuwijk. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
/ok-to-test |
/retest |
/assign @vasartori |
Co-authored-by: Matt Boersma <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
@vasartori are you able to take a look at this?
@kreeuwijk Do you know the specific MaaS version that started including these curtin hooks by default?
For all MaaS versions previous to this new change, it would seem leaving the hooks out would build a non bootable image. Perhaps a The image-builder release that first included support for MaaS was July 4 https://github.com/kubernetes-sigs/image-builder/releases/tag/v0.1.45 Have the new hooks only landed in MaaS 3.7.0~beta1? |
@moondev MaaS doesn't ship its own curtin hooks, it just installs the python3-curtin package. They are then present on the server as:
So that means there's no dependency on the MaaS version; any version will install the latest |
Thanks for the clarification and great to hear images won't be fragmented by their destination MaaS version. Cheers. |
So I'm happy with this in theory but I'm not a user of MAAS so cannot confirm anythign from my side. I was hoping @vasartori would be able to check this out as they are the original contributor of the MAAS code. If they don't come back soon and we're all happy I'm happy to approve this. |
Change description
The MaaS support added to image-builder contained hardcoded hooks and scripts for curtin. However, MaaS has since evolved and now includes all those steps (and more) already builtin. The builtin steps are more powerful & flexible, and should be used instead. For example, the builtin properly reconfigures the UEFI boot order (to keep PXE at the top) and handles situations where the MaaS proxy should be used for APT package updates.
Hence, this PR comments out the copying of the hardcoded curtin files for MaaS, so that the standard curtin hooks from MaaS can be used instead.
Related issues
Additional context