Bug 2401676 - Updating from F42 -> F43 disables the nftables systemd service
Summary: Updating from F42 -> F43 disables the nftables systemd service
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: nftables
Version: 43
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Kevin Fenzi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: https://discussion.fedoraproject.org/...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-10-05 16:44 UTC by Joe Walker
Modified: 2026-01-17 00:48 UTC (History)
5 users (show)

Fixed In Version: nftables-1.1.3-6.fc43
Clone Of:
Environment:
Last Closed: 2026-01-17 00:48:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Joe Walker 2025-10-05 16:44:01 UTC
On an existing F42 installation. 
sudo dnf install nftables 
systemctl enable nftables.service

reboot and verify nftables.service is still active. 
systemctl status nftables

Perform the upgrade to F43. 
After the upgrade is completed verify status of the nftables service.
systemctl status nftables 

Same is not observed if you upgrade to F44. 

Workaround is to enable the service post upgrade. 
systemctl enable nftables



Reproducible: Always

Steps to Reproduce:
1.Install nftables and enable the service on an existing F42 installation
2.Upgrade to F43
3.Observe nftables service is disabled. 
Actual Results:
nftables service is disabled

Expected Results:
nftables service is enabled since the user had previously enabled it. 

Additional Information:
Believe this is due to https://src.fedoraproject.org/rpms/nftables/c/a29ebf548f74b44d259a113ba72e03e8b18c1c80?branch=main where the service was split out into it's own package. Since it is an initial install it is handled based on the Fedora presets.

Comment 1 Kevin Fenzi 2025-11-15 17:56:52 UTC
I guess neither myself or Phil had this one on our radar. ;( Sorry about that.

Yes, I think its due to the service moving to another package and using the initial state there.

I'm not fully sure of the best solution.

Possibly we can just add it to presets (There are no rules by default, so it's just a noop) but that means it shows as enabled when lots of people aren't using it.

Or some more complex scriptlets to see if we can tell if the old one was enabled on new install?

Adding system maintainer for input.

Comment 2 Joe Walker 2025-11-15 23:09:58 UTC
Can you do something like this in in post ... 

%if %(systemctl -q is-enabled nftables.service)
systemctl enable nftables.service 
%else 
%systemd_post nftables.service
%endif

Comment 3 Joe Walker 2025-11-15 23:16:03 UTC
(In reply to grumpey0 from comment #2)
> Can you do something like this in in post ... 
> 
> %if %(systemctl -q is-enabled nftables.service)
> systemctl enable nftables.service 
> %else 
> %systemd_post nftables.service
> %endif

No that I think about I don't think this will work. Apologies for the noise.

Comment 4 Joe Walker 2025-11-16 21:05:54 UTC
%post services
if [ $1 -eq 1 ] && [[ -h /etc/systemd/system/multi-user.target.wants/nftables.service ]]; then
  echo "nftables.service is already enabled" 
else
  %systemd_post nftables.service
fi

This looks like it works testing from the everything iso in a VM.

Comment 5 Kevin Fenzi 2025-11-30 19:54:12 UTC
So, does that work for the dist upgrade case tho? ie, you have a f42 install with nftables enabled and then dist-upgrade to f43...

Comment 6 Joe Walker 2025-11-30 22:33:34 UTC
It did using a COPR,https://copr.fedorainfracloud.org/coprs/grumpey/nftables-test/

With the 42 everything iso, and doing a dnf system-upgrade download and dnf offline reboot.

Comment 7 Kevin Fenzi 2026-01-03 20:51:28 UTC
humf. Well, I don't really like that, but it seems the least bad way to do it. So, thanks for that...

I adjusted it some and submitted a PR on it ( https://src.fedoraproject.org/rpms/nftables/pull-request/6 )

Can you test this one?

Comment 8 Fedora Update System 2026-01-15 15:13:02 UTC
FEDORA-2026-9ff8265724 (nftables-1.1.3-6.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-9ff8265724

Comment 9 Fedora Update System 2026-01-16 18:11:23 UTC
FEDORA-2026-9ff8265724 has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-9ff8265724`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-9ff8265724

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 10 Fedora Update System 2026-01-17 00:48:37 UTC
FEDORA-2026-9ff8265724 (nftables-1.1.3-6.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.