-
Notifications
You must be signed in to change notification settings - Fork 115
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
overlay: nuke rhcos-growpart #484
overlay: nuke rhcos-growpart #484
Conversation
Now that we've moved to Ignition LUKS, we don't need this anymore. It also doesn't support multipath like `coreos-growpart` does. (In fact, `ignition-ostree-growfs.service` has been running on RHCOS for a while now because it was renamed from `coreos-growpart.service` and moved to the initrd so the `disable` preset here didn't actually have any effect.)
/cc @Prashanth684 |
Just to make sure, this service only runs on the first boot correct? If not we'd likely want to keep it in place until we have the ability to do boot image bumps + an upgrade script to modify the filesystems to look more like new Ignition based LUKS. |
multipath is a day2 operation, so this should not affect it in that case right? this will only be an issue if we support multipath during first boot ? |
Thanks a lot for this comment. My understanding was that we were shooting for day1 (i.e. via It would definitely simplify a lot if it was day 2, because it falls in line with our model by providing the ability to configure it via Ignition. Obviously the downside here is that there is no redundancy during the bootstrapping phase, though that might be acceptable. Let me confirm this with PM. /hold |
Another thing worth clarifying is that since in OCP4 we always incur a reboot, this could still be day 1 yet only happen on the first reboot. So then, the kargs would be added via MachineConfig. |
(That said, regardless I think
Yes, it's first boot only (notice how it's using a stamp file which is a |
I think we (multi-arch mainly) want it to be a day 1 functionality. I did try it but ran into some issues (including this) which i did not spend much time triaging. @nikita-dubrovskii thought there was some race between when the mpath devices were created and ignition. It would be great if you could discuss with PM and scope out a timeline to support multi-path as a day 1 functionality! https://issues.redhat.com/browse/MULTIARCH-401 is also the ticket for multipath support for multi-arch where there is an ask to support day1 functionality, but now it doesn't work. |
Also as per this comment: https://bugzilla.redhat.com/show_bug.cgi?id=1809534#c15 at that time it looked like we did not want to support this. |
Won't this break root filesystem resizing on 4.7 clusters with 4.6 bootimages? |
Can you expand? If the bootimage is 4.6, then |
I had misremembered that pivot happens from the initramfs, but in fact it doesn't, and the rhcos-growpart service should run during firstboot. Objection withdrawn. 👍 |
OK, chatted with PM about this: we're fine with supporting multipath only from the first reboot (i.e. the first boot into the target machine-os-content). For 4.7, this will be done via a day-1 MC which adds the needed kargs. Later, we can investigate adding sugar to make that easier. As for this PR, I do think it is fine to merge, but also it's not immediately required either. |
/approve |
The model we're moving towards is one where multipath enablement is configured via Ignition and so only takes effect on the next boot: openshift/os#484 (comment) Therefore, we don't need to worry here about support for growing a multipathed root partition. This simplifies a big chunk of the script.
/lgtm |
The model we're moving towards is one where multipath enablement is configured via Ignition and so only takes effect on the next boot: openshift/os#484 (comment) Therefore, we don't need to worry here about support for growing a multipathed root partition. This simplifies a big chunk of the script.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bgilbert, cgwalters, jlebon 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 |
One other thing worth mentioning is that once we have kargs-via-Ignition, then it becomes trivial to support multipath from first boot, at least for setups which are fine with |
From internal CI:
|
Make it check `ignition-ostree-growfs.service` now just like FCOS. Keep the tests separate still so that we can check different sizes. See: openshift/os#484 (comment)
Make it check `ignition-ostree-growfs.service` now just like FCOS. Keep the tests separate still so that we can check different sizes. See: openshift/os#484 (comment)
Make it check `ignition-ostree-growfs.service` now just like FCOS. Keep the tests separate still so that we can check different sizes. See: openshift/os#484 (comment)
The model we're moving towards is one where multipath enablement is configured via Ignition and so only takes effect on the next boot: openshift/os#484 (comment) Therefore, we don't need to worry here about support for growing a multipathed root partition. This simplifies a big chunk of the script.
The model we're moving towards is one where multipath enablement is configured via Ignition and so only takes effect on the next boot: openshift/os#484 (comment) Therefore, we don't need to worry here about support for growing a multipathed root partition. This simplifies a big chunk of the script.
The model we're moving towards is one where multipath enablement is configured via Ignition and so only takes effect on the next boot: openshift/os#484 (comment) Therefore, we don't need to worry here about support for growing a multipathed root partition. This simplifies a big chunk of the script.
Now that we've moved to Ignition LUKS, we don't need this anymore. It
also doesn't support multipath like
coreos-growpart
does.(In fact,
ignition-ostree-growfs.service
has been running on RHCOS fora while now because it was renamed from
coreos-growpart.service
andmoved to the initrd so the
disable
preset here didn't actually haveany effect.)