Bug 1733445
| Summary: | [rhel8] 'rpm --verify nfs-utils' fails as User/Group differ on /var/lib/nfs/statd/state | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Yongcheng Yang <yoyang> |
| Component: | nfs-utils | Assignee: | Steve Dickson <steved> |
| Status: | CLOSED ERRATA | QA Contact: | Yongcheng Yang <yoyang> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | medium | ||
| Version: | 8.0 | CC: | blc, steved, swhiteho, xzhou |
| Target Milestone: | rc | Keywords: | Reopened, Reproducer |
| Target Release: | 8.1 | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | nfs-utils-2.3.3-25.el8 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-11-05 22:18:52 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: | |||
What is the current status of this one? (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 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. (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 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 ~]# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 |
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 ...