Bug 2229951

Summary: Problem with file requirements
Product: [Fedora] Fedora Reporter: Jaroslav Mracek <jmracek>
Component: resource-agentsAssignee: Chris Feist <cfeist>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 38CC: cfeist, dvossel, oalbrigt, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: resource-agents-4.13.0-2.fc40.3 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-02-12 12:51:06 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:
Bug Depends On:    
Bug Blocks: 2180842    

Description Jaroslav Mracek 2023-08-08 09:30:11 UTC
Package resource-agents requires: /sbin/mount.nfs /sbin/mount.nfs4 /sbin/rpc.statd

Why this is a problem:
1. DNF5 stops to download filelists as a default therefore `resource-agents` will be not installable
2. It is against Fedora packaging guidelines to require files outside of `/etc`, `/usr/(s)bin`.


Possible solution:
1. use only file provides from  `/etc`, `/usr/(s)bin` (follow packaging guidelines please) or other provides from package providing required functionality (`Requires: mount.nfs`, `Requires: mount.nfs4`, `Requires: rpc.statd`)
2. Request explicit provide of `/sbin/mount.nfs` in package providers of the file like `Provides: /sbin/mount.nfs`. This is a workaround that resolves the issue, but it is not according to the guidelines. The `/sbin` is also deprecated from Fedora 17, therefore it would better to ask for move to `/usr/sbin/...`

This issue will appear after DNF5 adoption, because DNF5 does not download filelists by default. The problem will not be in DNF5 because it is caused by not following packaging guidelines (in this case the primary cause is in providers of `/sbin/mount.nfs`). DNF downloaded always filelists to prevent the issue. There are only few remaining packages that has the issue therefore it is time to improve an efficiency of Fedora distribution.

Reproducible: Always

Comment 1 Oyvind Albrigtsen 2023-08-09 10:10:34 UTC
When I try to upgrade to test build on Fedora 38 with updated paths with /usr prefix it fails due to these utils not being installed in /usr/(s)bin:
 Problem: cannot install the best update candidate for package resource-agents-4.12.0-1.fc38.x86_64
  - nothing provides /usr/sbin/mount.nfs needed by resource-agents-4.12.0-3.fc40.x86_64 from @commandline
  - nothing provides /usr/sbin/mount.nfs4 needed by resource-agents-4.12.0-3.fc40.x86_64 from @commandline
  - nothing provides /usr/sbin/rpc.statd needed by resource-agents-4.12.0-3.fc40.x86_64 from @commandline
  - nothing provides libc.so.6(GLIBC_2.38)(64bit) needed by resource-agents-4.12.0-3.fc40.x86_64 from @commandline

They're still in /sbin on Fedora 39 builds as well:
https://koji.fedoraproject.org/koji/rpminfo?rpmID=34298374

Comment 2 Zbigniew Jędrzejewski-Szmek 2023-11-09 18:42:40 UTC
https://src.fedoraproject.org/rpms/resource-agents/pull-request/7 should resolve the issue.

Comment 3 Zbigniew Jędrzejewski-Szmek 2024-02-12 12:42:19 UTC
With resource-agents-4.13.0-2.fc40.3, this should be fixed in F40+.
I think it's fine if it's only fixed there, so I'm not submitting anything
for the lower versions.

Comment 4 Fedora Update System 2024-02-12 12:50:22 UTC
FEDORA-2024-d1ce2549b7 (resource-agents-4.13.0-2.fc40.3) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-d1ce2549b7

Comment 5 Fedora Update System 2024-02-12 12:51:06 UTC
FEDORA-2024-d1ce2549b7 (resource-agents-4.13.0-2.fc40.3) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.