Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1285081

Summary: yum whatprovides /usr/lib/systemd/system/nfs-rquotad.service reports nfs-utils but nfs-utils does not contain the file
Product: Red Hat Enterprise Linux 7 Reporter: Dave Wysochanski <dwysocha>
Component: quotaAssignee: Petr Pisar <ppisar>
Status: CLOSED NOTABUG QA Contact: qe-baseos-daemons
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1CC: eguan, miturria, ppisar, yoyang
Target Milestone: rcKeywords: TestCaseProvided
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-17 06:12:35 UTC Type: Bug
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: 1203710    

Description Dave Wysochanski 2015-11-24 20:41:53 UTC
Description of problem:
In RHEL7.0 GA nfs-utils contained the following file: 
/usr/lib/systemd/system/nfs-rquotad.service

This was removed in RHEL7.1 and following releases, but 'yum whatprovides' is still reporting it's provided by nfs-utils.

[root@rhel7u1-node1 ~]# rpm -q nfs-utils
nfs-utils-1.3.0-0.8.el7.x86_64
[root@rhel7u1-node1 ~]# yum whatprovides /usr/lib/systemd/system/nfs-rquotad.service
Loaded plugins: product-id, subscription-manager
1:nfs-utils-1.3.0-0.el7.x86_64 : NFS utilities and supporting clients and daemons for the kernel NFS server
Repo        : rhel-7-server-rpms
Matched from:
Filename    : /usr/lib/systemd/system/nfs-rquotad.service


[root@rhel7u1-node1 ~]# rpm -qf /usr/lib/systemd/system/nfs-rquotad.service
error: file /usr/lib/systemd/system/nfs-rquotad.service: No such file or directory
[root@rhel7u1-node1 ~]# rpm -ql nfs-utils | grep /usr/lib/systemd/system/nfs-rquotad.service
[root@rhel7u1-node1 ~]# rpm -ql nfs-utils | grep nfs-rquotad.service
[root@rhel7u1-node1 ~]#


Version-Release number of selected component (if applicable):
nfs-utils-1.3.0-0.8.el7.x86_64


How reproducible:
every time

Steps to Reproduce:
1. yum whatprovides /usr/lib/systemd/system/nfs-rquotad.service
2. rpm -ql nfs-utils | grep nfs-rquotad.service


Actual results:
yum whatprovides /usr/lib/systemd/system/nfs-rquotad.service reports nfs-utils contains the file but the nfs-utils package does not contain the file.


Expected results:
Either the file is in the nfs-utils package, or if not, then "yum whatprovides" does not report that it is contained in nfs-utils.


Additional info:
This is related to https://bugzilla.redhat.com/show_bug.cgi?id=1207239
In the very least nfs-utils needs changed to not report it is providing this file if it no longer provides it.

Comment 1 Dave Wysochanski 2016-01-20 16:28:33 UTC
This should be an easy fix.  In no case should "yum whatprovides" show inaccurate file data for any RHEL7 package.

Still a problem in RHEL7.2

[root@rhel7u2-node1 ~]# yum whatprovides /usr/lib/systemd/system/nfs-rquotad.service
Loaded plugins: product-id, search-disabled-repos, subscription-manager
1:nfs-utils-1.3.0-0.el7.x86_64 : NFS utilities and supporting clients and daemons for the kernel NFS server
Repo        : rhel-7-server-rpms
Matched from:
Filename    : /usr/lib/systemd/system/nfs-rquotad.service



[root@rhel7u2-node1 ~]# rpm -qf /usr/lib/systemd/system/nfs-rquotad.service
error: file /usr/lib/systemd/system/nfs-rquotad.service: No such file or directory
[root@rhel7u2-node1 ~]# rpm -qf /usr/lib/systemd/system/nfs-rquotad.service
error: file /usr/lib/systemd/system/nfs-rquotad.service: No such file or directory
[root@rhel7u2-node1 ~]# rpm -ql nfs-utils | grep nfs-rquotad.service

Comment 10 Petr Pisar 2016-02-17 06:12:35 UTC
As shown in the command outputs, the version of installed nfs-utils package and version of nfs-utils installed package differ. Different package versions have different content. This is not a bug.

Those wanting quota package to deliver rquotad systemd unit should follow bug #1207239.

Comment 11 Petr Pisar 2016-02-17 06:14:12 UTC
(In reply to Petr Pisar from comment #10)
> As shown in the command outputs, the version of installed nfs-utils package
> and version of nfs-utils installed package differ. Different package
> versions have different content. This is not a bug.
> 
Typo correction: version of installed nfs-utils package and version of nfs-utils package returned by yum differ.