Bug 1377649 - nfs-utils warning when package removed: file /var/lib/nfs/statd: remove failed: No such file or directory
Summary: nfs-utils warning when package removed: file /var/lib/nfs/statd: remove faile...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: nfs-utils
Version: 7.3
Hardware: All
OS: Linux
unspecified
low
Target Milestone: rc
: ---
Assignee: Steve Dickson
QA Contact: Yongcheng Yang
URL:
Whiteboard:
Depends On:
Blocks: 1733170
TreeView+ depends on / blocked
 
Reported: 2016-09-20 09:40 UTC by Yongcheng Yang
Modified: 2020-12-15 07:46 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1733170 (view as bug list)
Environment:
Last Closed: 2020-12-15 07:46:07 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Yongcheng Yang 2016-09-20 09:40:22 UTC
Description of problem:

When dealing with the TPS tests of nfs-utils erratum, sometimes may encounter the failure of DeleteTest in RPM Test like:
Delete test FAILED
Output from RPM Command:
warning: file /var/lib/nfs/v4recovery: remove failed: No such file or directory
warning: file /var/lib/nfs/statd/sm.bak: remove failed: No such file or directory
warning: file /var/lib/nfs/statd/sm: remove failed: No such file or directory
warning: file /var/lib/nfs/statd: remove failed: No such file or directory
warning: directory /var/lib/nfs/rpc_pipefs: remove failed: Device or resource busy

After some investigation between the failed and passed logs (will attach them later), found that there always have warnings when erasing the package nfs-utils, which should make all the DeleteTest in tps-rpmtest failed.

Then how the passed DeleteTest jobs come form? Actually in these jobs, package nfs-utils is NOT removed successfully due to dependency issue like:
nfs-utils is needed by (installed) beakerlib-1.10-2.el7eso.noarch

So maybe we should deal with these warnings and make the package remove process more clean.

Otherwise, if TPS tests changing to use "rpm --erase nfs-utils --nodeps", we cannot work around to make it PASS.


Version-Release number of selected component (if applicable):
Seems exists in both RHEL7 and RHEL6

How reproducible:
100% easy

Steps to Reproduce:
1. rpm -e nfs-utils --nodeps

Actual results:
[root@hp-dl360g9-07 ~]# rpm -q nfs-utils
nfs-utils-1.3.0-0.33.el7.x86_64
[root@hp-dl360g9-07 ~]# ls -ld /var/lib/nfs/v4recovery/ /var/lib/nfs/statd/sm.bak /var/lib/nfs/statd/sm /var/lib/nfs/statd /var/lib/nfs/rpc_pipefs 
dr-xr-xr-x. 11 root    root     0 Aug 17 11:11 /var/lib/nfs/rpc_pipefs
drwx------.  4 rpcuser rpcuser 30 Sep 20 05:07 /var/lib/nfs/statd
drwx------.  2 rpcuser rpcuser  6 Aug 17 11:11 /var/lib/nfs/statd/sm
drwx------.  2 rpcuser rpcuser  6 Aug 17 11:11 /var/lib/nfs/statd/sm.bak
drwxr-xr-x.  2 root    root     6 Aug 17 11:11 /var/lib/nfs/v4recovery/
[root@hp-dl360g9-07 ~]# 
[root@hp-dl360g9-07 ~]# rpm -e nfs-utils --nodeps
warning: file /var/lib/nfs/v4recovery: remove failed: No such file or directory
warning: file /var/lib/nfs/statd/sm.bak: remove failed: No such file or directory
warning: file /var/lib/nfs/statd/sm: remove failed: No such file or directory
warning: file /var/lib/nfs/statd: remove failed: No such file or directory
warning: directory /var/lib/nfs/rpc_pipefs: remove failed: Device or resource busy
[root@hp-dl360g9-07 ~]# ls /var/lib/nfs/rpc_pipefs
cache  gssd  lockd  mount  nfs  nfsd  nfsd4_cb  portmap  statd
[root@hp-dl360g9-07 ~]# rpm -q nfs-utils
package nfs-utils is not installed
[root@hp-dl360g9-07 ~]# 

Expected results:
No warning

Comment 4 RHEL Program Management 2020-12-15 07:46:07 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.


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