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): rgmanager-2.0.52-6.el5 How reproducible: Always 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. Actual results: Temp directories are not removed from /tmp directory Expected results: Directories are removed when not necessary. Additional info: 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.
http://git.fedorahosted.org/git?p=cluster.git;a=commit;h=a8d21b2f0ccb2b9b50f4e729e070fec0fcfd8fee
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. http://rhn.redhat.com/errata/RHBA-2011-0134.html