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 1377649

Summary: nfs-utils warning when package removed: file /var/lib/nfs/statd: remove failed: No such file or directory
Product: Red Hat Enterprise Linux 7 Reporter: Yongcheng Yang <yoyang>
Component: nfs-utilsAssignee: Steve Dickson <steved>
Status: CLOSED WONTFIX QA Contact: Yongcheng Yang <yoyang>
Severity: low Docs Contact:
Priority: unspecified    
Version: 7.3CC: xzhou
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1733170 (view as bug list) Environment:
Last Closed: 2020-12-15 07:46:07 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: 1733170    

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.