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 1733445 - [rhel8] 'rpm --verify nfs-utils' fails as User/Group differ on /var/lib/nfs/statd/state
Summary: [rhel8] 'rpm --verify nfs-utils' fails as User/Group differ on /var/lib/nfs/s...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: nfs-utils
Version: 8.0
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: rc
: 8.1
Assignee: Steve Dickson
QA Contact: Yongcheng Yang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-07-26 06:09 UTC by Yongcheng Yang
Modified: 2020-11-14 09:30 UTC (History)
4 users (show)

Fixed In Version: nfs-utils-2.3.3-25.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-05 22:18:52 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:3579 0 None None None 2019-11-05 22:18:58 UTC

Description Yongcheng Yang 2019-07-26 06:09:21 UTC
Description of problem:

$ ll /var/lib/nfs/statd/state
-rw-r--r--. 1 root root 4 Jul 26 01:45 /var/lib/nfs/statd/state
$ rpm --verify nfs-utils
.....UG..  g /var/lib/nfs/statd/state
     ^^    ^
Above warning can be found ever since the rhel-8 beginning.
And from the manpage:
~~~~~
 - U User ownership differs
 - G Group ownership differs
 - g %ghost file (i.e. the file contents are not included in the package payload).
~~~~~

Apologize that I did not take the failure serious until it block the TPS "VerifyTest":
~~~
...
doRpmCommand: rpm -V nfs-utils-2.3.3-21.el8.x86_64
doRpmCommand-result (256): .....UG..  g /var/lib/nfs/statd/state
...
result: verify test: FAIL:
nfs-utils.x86_64: /var/lib/nfs/statd/state .....UG.. g [tps:B]
TPS verify test analysis tags:
tps:a -- verify errors on both arches
tps:b -- verify error on file not present in alternative arch
tps:c -- verify error on preferred binary/ELF file
tps:d -- significant type of verify error
TPSINFO: built-in verifyTest result: FAIL
~~~


Version-Release number of selected component (if applicable):
all along in rhel8 till now (nfs-utils-2.3.3-21.el8)

How reproducible:
always easy

Steps to Reproduce:
1. systemctl restart rpc-statd
2. rpm -V nfs-utils
3.

Actual results:
[root@rhel8~]# rpm -q nfs-utils
nfs-utils-2.3.3-21.el8.x86_64
[root@rhel8~]# rpm -V nfs-utils
[root@rhel8~]# ll /var/lib/nfs/statd/state
ls: cannot access '/var/lib/nfs/statd/state': No such file or directory
[root@rhel8~]# systemctl restart rpc-statd
[root@rhel8~]# rpm -V nfs-utils
.....UG..  g /var/lib/nfs/statd/state
[root@rhel8~]# ll /var/lib/nfs/statd/state
-rw-r--r--. 1 root root 4 Jul 26 01:45 /var/lib/nfs/statd/state
[root@rhel8~]# 


Expected results:
No failure

Additional info:
This issue is rhel8 only while can NOT be seen in rhel7.
After including the following 2 patches into rhel8:

commit f8c8e2f58c1be3397f951793a3b52550cb1565ac
Author: Steve Dickson <steved>
Date:   Tue Nov 17 14:27:45 2015 -0500

    ghost-ed rpc.statd state file (bz 1158466)

commit ef7bedc026e0d1ab333cf26c450dc0138f55e9d4
Author: Steve Dickson <steved>
Date:   Sun Jul 27 16:25:23 2014 -0400

    Use _statdpath to define where statd's state lives


Now in nfs-utils.spec file we have:
...
%ghost %attr(644,rpcuser,rpcuser) %{_statdpath}/state
...

And in rhel7, still:
...
%config(noreplace) %attr(644,rpcuser,rpcuser) %{_sharedstatedir}/nfs/state
...

Comment 1 Steve Whitehouse 2019-07-31 09:34:58 UTC
What is the current status of this one?

Comment 2 Steve Dickson 2019-08-12 14:47:41 UTC
(In reply to Yongcheng Yang from comment #0)



> This issue is rhel8 only while can NOT be seen in rhel7.
> After including the following 2 patches into rhel8:
> 
> commit f8c8e2f58c1be3397f951793a3b52550cb1565ac
> Author: Steve Dickson <steved>
> Date:   Tue Nov 17 14:27:45 2015 -0500
> 
>     ghost-ed rpc.statd state file (bz 1158466)
> 
> commit ef7bedc026e0d1ab333cf26c450dc0138f55e9d4
> Author: Steve Dickson <steved>
> Date:   Sun Jul 27 16:25:23 2014 -0400
> 
>     Use _statdpath to define where statd's state lives
> 
These two patches are already in RHEL8 and I can
access the state file just fine
# ll /var/lib/nfs/statd/state
459 -rw-r--r--. 1 root root 4 Aug 12 10:45 /var/lib/nfs/statd/state

So I'm going to close this bz

Comment 3 Steve Whitehouse 2019-08-12 14:50:02 UTC
We shouldn't be closing bugs like this as CURRENTRELEASE in general. We should ask QE to confirm the fix, since they reported the issue initially. Setting the flags accordingly.

Comment 4 Yongcheng Yang 2019-08-13 10:41:04 UTC
(In reply to Steve Dickson from comment #2)
> (In reply to Yongcheng Yang from comment #0)
> > This issue is rhel8 only while can NOT be seen in rhel7.
> > After including the following 2 patches into rhel8:
> > 
> > commit f8c8e2f58c1be3397f951793a3b52550cb1565ac
> > 
> > commit ef7bedc026e0d1ab333cf26c450dc0138f55e9d4
> > 
> These two patches are already in RHEL8 and

Yes, they are in RHEL8 and that's why I was thinking this bug was introduced by them.

> I can access the state file just fine
> # ll /var/lib/nfs/statd/state
> 459 -rw-r--r--. 1 root root 4 Aug 12 10:45 /var/lib/nfs/statd/state

Please check the rpm verifying option i.e. "rpm -V nfs-utils"

It fails as the state file's User/Group changed.

[root@rhel8~]# rpm -V nfs-utils
.....UG..  g /var/lib/nfs/statd/state
[root@rhel8~]# echo $?
1

Comment 7 Yongcheng Yang 2019-08-22 09:17:01 UTC
Have verified in nfs-utils-2.3.3-25.el8
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[root.0 ~]# rpm -q nfs-utils
nfs-utils-2.3.3-23.el8.x86_64
[root.0 ~]# systemctl restart rpc-statd
[root.0 ~]# rpm -V nfs-utils
.....UG..  g /var/lib/nfs/statd/state        <<<<<<<<<<
[root.0 ~]# ll /var/lib/nfs/statd/state
-rw-r--r--. 1 root root 4 Aug 22 05:10 /var/lib/nfs/statd/state
[root.0 ~]# 
[root.0 ~]# rpm -Uvh nfs-utils-2.3.3-25.el8.x86_64.rpm 
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
Updating / installing...
   1:nfs-utils-1:2.3.3-25.el8         ################################# [ 50%]
Cleaning up / removing...
   2:nfs-utils-1:2.3.3-23.el8         ################################# [100%]
[root.0 ~]# systemctl restart rpc-statd
[root.0 ~]# rpm -V nfs-utils         <<<<<<<<<<
[root.0 ~]# ll /var/lib/nfs/statd/state
-rw-r--r--. 1 root root 4 Aug 22 05:10 /var/lib/nfs/statd/state
[root.0 ~]# 
[root.0 ~]# rm -rf /var/lib/nfs/statd/state
[root.0 ~]# systemctl restart rpc-statd
[root.0 ~]# rpm -V nfs-utils         <<<<<<<<<<
[root.0 ~]# ll /var/lib/nfs/statd/state
-rw-r--r--. 1 root root 4 Aug 22 05:12 /var/lib/nfs/statd/state
[root.0 ~]# 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Comment 9 errata-xmlrpc 2019-11-05 22:18:52 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:3579


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