-
Notifications
You must be signed in to change notification settings - Fork 60
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
Migrate existing systems to iptables-nft
and remove iptables-legacy
#1818
Comments
Hum, we'll also likely have to remove / migrate On my Atomic Desktops I also have:
which apparently got set up on first boot. Will have to investigate. |
On the Atomic Desktops side of things: https://gitlab.com/fedora/ostree/sig/-/issues/51 |
Suggested paths: Option A:
Pseudo bash code:
Option B:
Pseudo bash code:
My preference goes to option B. |
For the Atomic Desktops, I'll probably write a script that removes |
This makes sure that the system is setup properly and that the migration script will do the right thing on older systems. See: coreos/fedora-coreos-tracker#1818 See: coreos/fedora-coreos-tracker#677 See: https://docs.fedoraproject.org/en-US/fedora-coreos/alternatives/
I've created https://gitlab.com/fedora/bootc/tracker/-/issues/44 on the bootc side of things. |
B looks good to me. Though.. I have a few questions:
|
Agree with B. One more question, shall we update current links to use alternatives command like coreos/fedora-coreos-config#264 ? |
We can try that but it should use the commands from https://docs.fedoraproject.org/en-US/fedora-coreos/alternatives/#_using_alternatives_commands instead / the one I use in my test: coreos/fedora-coreos-config#3253 |
The admindir is the directory where the config for each "alternative" command is stored. On FCOS, you have in
The
Yes, this is what this command does.
As long as there are files in |
Thanks for explaining. I didn't realize |
This makes sure that the system is setup properly and that the migration script will do the right thing on older systems. See: coreos/fedora-coreos-tracker#1818 See: coreos/fedora-coreos-tracker#677 See: https://docs.fedoraproject.org/en-US/fedora-coreos/alternatives/
This makes sure that the system is setup properly and that the migration script will do the right thing on older systems. See: coreos/fedora-coreos-tracker#1818 See: coreos/fedora-coreos-tracker#677 See: https://docs.fedoraproject.org/en-US/fedora-coreos/alternatives/
- Add an overlay with the migration logic for alternatives - Add a test for the migration script This should make sure that the system is setup properly and that the migration script will do the right thing on older systems. See: coreos/fedora-coreos-tracker#1818 See: coreos/fedora-coreos-tracker#677 See: https://docs.fedoraproject.org/en-US/fedora-coreos/alternatives/
To make progress on this one, we either need to merge coreos/fedora-coreos-config#3253 and move on (will be FCOS only) or work on bringing this to the bootc level (would be more generic but would need to make it work for all other variants). Given that this is kind of part of the transition and most bootc system are not impacted by it, we can carry it in Fedora CoreOS/Atomic/IoT seperately. |
Describe the enhancement
Since #676 (in stable
36.20220505.3.2
), we've moved to the nft backend for iptables by default, but as far as I remember / could figure out, we did not update existing systems to it.We now have proper support for alternatives on ostree based systems (fedora-sysv/chkconfig#135 & #677) so we can use that to migrate users at boot time.
Then we should remove the legacy package.
Unfortunately we can not just drop our manual workaround to migrate systems to the nft backend as they have the same priority set in their alternatives config:
So we'll have to run a script via a systemd unit to do it:
As this could potentially be a breaking change, we might want to do it only starting with Fedora 42.
System details
N/A
Additional information
See:
The text was updated successfully, but these errors were encountered: