Bug 1733170
Summary: | [rhel8] nfs-utils warning when package removed: file /var/lib/nfs/statd: remove failed: No such file or directory | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Yongcheng Yang <yoyang> | ||||
Component: | nfs-utils | Assignee: | Alice Mitchell <ajmitchell> | ||||
Status: | CLOSED ERRATA | QA Contact: | Yongcheng Yang <yoyang> | ||||
Severity: | low | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 8.0 | CC: | ajmitchell, steved, swhiteho, tdawson, xzhou | ||||
Target Milestone: | rc | Keywords: | Patch | ||||
Target Release: | 8.4 | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | nfs-utils-2.3.3-36.el8 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | 1377649 | Environment: | |||||
Last Closed: | 2021-05-18 15:04:48 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: | 1377649 | ||||||
Bug Blocks: | |||||||
Attachments: |
|
Comment 3
Troy Dawson
2020-03-13 15:33:52 UTC
As I assume the intention here is to ensure this directory and its contents are always removed, either the %preun commands should be modified to empty the directory whilst leaving the actually directory there for %files to clean up, or simply move the cleanup to %postun Created attachment 1720966 [details]
Patch to cleanup the warnings
Moving the directory removal into %postun scriplet ensures that cleanup happens but doesnt trigger the warnings
I don't think it will cause an issue as both the %preun and %postun try to stop the same service, and it doesn't generate any errors or warnings that I can see. there is probably scope to clean that up however Thanks for the explanation. I'm marking this as "Tested" and feel free to add it into 8.4.0 nfs-utils erratum. Moving to VERIFIED based on comment #14 [root@rhel-8-4-latest ~]# rpm -q nfs-utils nfs-utils-2.3.3-36.el8.x86_64 [root@rhel-8-4-latest ~]# rpm -e nfs-utils warning: directory /var/lib/nfs/rpc_pipefs: remove failed: Device or resource busy [root@rhel-8-4-latest ~]# rpm -q nfs-utils package nfs-utils is not installed [root@rhel-8-4-latest ~]# 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 (nfs-utils bug fix and enhancement update), 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-2021:1669 |