Red Hat Bugzilla – Bug 595455
rgmanager does not remove nfs service temp directories when using nfslock=1
Last modified: 2018-11-14 14:30:05 EST
Description of problem:
when using nfslock=1, rgmanager does not remove temp directories (statd-*) created on /tmp when they are no longer needed.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Setup a simple NFS cluster (2-node is enough)
2. Setup a simple nfs service setting nfslock=1
3. Start nfs service in any node and statd-* directories are created on /tmp of that node.
4. Stop nfs service on the node and the statd-* directories are not removed.
Temp directories are not removed from /tmp directory
Directories are removed when not necessary.
Temp directories are created by /usr/share/cluster/svclib_nfslock script, which should remove these files at the end of the script.
But, if the script return on one of the first 'if' instructions, the temp directories are not removed.
Created attachment 416172 [details]
create temp dirs only after the script pass the first if conditions
If the script creates the temp directories only after pass by the if conditions, the temp directories are properly removed.
The patch is correct.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.