Bug 2218006

Summary: systemd units enabled in %post script should use presets
Product: [Fedora] Fedora Reporter: Timothée Ravier <travier>
Component: nfs-utilsAssignee: Steve Dickson <steved>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: cglombek, luk.claes, steved, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: nfs-utils-2.6.3-2.rc3.fc39 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-11-03 18:22:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Timothée Ravier 2023-06-27 19:26:32 UTC
Since https://fedoraproject.org/wiki/Features/PackagePresets, packages enabling systemd units should also enable them via a systemd preset.

https://src.fedoraproject.org/rpms/nfs-utils/blob/rawhide/f/nfs-utils.spec#_252

Found that while working on https://pagure.io/workstation-ostree-config/pull-request/246

Reproducible: Always

Comment 1 Christian Glombek 2023-06-30 16:22:48 UTC
One thing to note here is that the preset files in https://src.fedoraproject.org/rpms/fedora-release/tree/rawhide are currently only being used for .service units.

The culprit in this case however is a .target unit (nfs-client.target).

I've opened https://src.fedoraproject.org/rpms/fedora-release/pull-request/267 to add the preset, the lines in the nfs-utils.spec linked above could be removed when this is merged.

Comment 2 Christian Glombek 2023-07-19 18:19:58 UTC
Moving back to NEW until the spec is changed. I'll open a PR shortly (currently blocked by https://pagure.io/fedora-infrastructure/issue/11419, the commit can be previewed here: https://github.com/LorbusChris/nfs-utils-rpm/commit/a0548f28c9bee49c02c1a8a70c4c524426cfd4e0).

Comment 3 Timothée Ravier 2023-07-25 14:58:57 UTC
So this bug is actually a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=2070726, but as it's closed, let's keep this one.

Comment 5 Timothée Ravier 2023-07-25 15:00:52 UTC
*** Bug 2070726 has been marked as a duplicate of this bug. ***

Comment 6 Fedora Release Engineering 2023-08-16 08:11:31 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.

Comment 7 Christian Glombek 2023-08-31 06:28:08 UTC
Please review https://src.fedoraproject.org/rpms/nfs-utils/pull-request/13

Comment 9 Fedora Update System 2023-09-19 13:43:01 UTC
FEDORA-2023-368a2668f9 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-368a2668f9

Comment 10 Fedora Update System 2023-09-20 02:07:09 UTC
FEDORA-2023-368a2668f9 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-368a2668f9`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-368a2668f9

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

Comment 11 Fedora Update System 2023-11-03 18:22:52 UTC
FEDORA-2023-368a2668f9 has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.