Bug 614421
Summary: | clusterfs ras does not umount because of wrong check in the code | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Fabio Massimo Di Nitto <fdinitto> | ||||
Component: | resource-agents | Assignee: | Lon Hohberger <lhh> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Cluster QE <mspqa-list> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 6.0 | CC: | cluster-maint, cmarthal, lhh, ssaha | ||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | resource-agents-3.0.12-13.el6 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2010-11-10 22:16:08 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Fabio Massimo Di Nitto
2010-07-14 13:11:08 UTC
This is because in the test, force_unmount="on". utils/fs-lib.sh checks for "yes" and "1", but not "on". So, either we need to change it in fs-lib.sh or fix in luci. Created attachment 431787 [details]
Fix
[root@localhost resources]# fs-test/clusterfs-test.sh Creating holder program...OK Creating file system image /tmp/test-23154/fs-image (50MB)...OK Creating gfs2 filesystem...OK Basic tests: - Status:OK - Start:OK - Status:OK - Status (depth 10):OK - Status (depth 20):OK - Stopping (no force_unmount; should stay mounted):OK - Stopping (force_unmount):OK Basic Tests PASSED Testing service-level reference count handling...OK Clearing service-level reference count and unmounting...OK Testing clearing a reference with force_unmount set...OK Testing clearing a reference on subdirectory with force_unmount set...OK Testing clearing a reference on subdirectory with force_unmount set to 'on'...OK Testing clearing a reference on subdirectory with force_unmount set to 'true'...OK Testing clearing a reference on subdirectory with force_unmount set to 'yes'...OK Testing a known reference with a near-match: [/tmp/test-23154/mountfoo]...OK (holder was not killed) Testing a known reference with a near-match: [/tmp/test-23154/mount foo]...OK (holder was not killed) Testing a known reference with a near-match: [/tmp/test-23154/mount foo]...OK (holder was not killed) Testing a known reference with a near-match: [/tmp/test-23154/mount /tmp/test-23154/mount]...OK (holder was not killed) Testing a known reference with a near-match: [/tmp/test-23154/tmp/test-23154/mount]...OK (holder was not killed) Testing clearing a process with SIGTERM blocked with force_unmount set...OK Testing clearing a process living in the mountpoint...OK Testing clearing a process living in the mountpoint with SIGTERM blocked...OK <clusterfs device="/dev/grant/gfs1" force_unmount="1" fstype="gfs2" mountpoint="/mnt/gfs1" name="gfs1" options="" nfslock="1"/> I was successfully able to relocate this fs resource with the force_unmount on and with both server and client references to it. Aug 27 15:37:43 grant-01 qarshd[8134]: Running cmdline: clusvcadm -r HA_GFS -m grant-02 Aug 27 15:37:43 grant-01 rgmanager[2214]: Stopping service service:HA_GFS Aug 27 15:37:43 grant-01 rgmanager[8168]: Removing IPv4 address 10.15.89.209/24 from eth0 Aug 27 15:37:53 grant-01 rgmanager[8213]: Removing export: *:/mnt/gfs1 Aug 27 15:37:54 grant-01 rgmanager[8270]: Dropping node-wide NFS locks Aug 27 15:37:54 grant-01 rgmanager[8303]: Asking lockd to drop locks (pid 3054) Aug 27 15:37:54 grant-01 rgmanager[8347]: Sending reclaim notifications via grant-01.lab.msp.redhat.com Aug 27 15:37:54 grant-01 sm-notify[8369]: Version 1.2.2 starting Aug 27 15:37:54 grant-01 sm-notify[8369]: Already notifying clients; Exiting! Aug 27 15:37:58 grant-01 rgmanager[8425]: unmounting /mnt/gfs1 Aug 27 15:37:58 grant-01 rgmanager[8470]: Sending SIGTERM to processes on /mnt/gfs1 Aug 27 15:38:03 grant-01 rgmanager[8532]: unmounting /mnt/gfs1 Aug 27 15:38:04 grant-01 rgmanager[8577]: Sending SIGKILL to processes on /mnt/gfs1 Aug 27 15:38:09 grant-01 rgmanager[8640]: unmounting /mnt/gfs1 Aug 27 15:38:09 grant-01 rgmanager[2214]: Service service:HA_GFS is stopped Marking verified with the latest latest build. 2.6.32-70.el6.x86_64 rgmanager-3.0.12-10.el6.x86_64 Red Hat Enterprise Linux 6.0 is now available and should resolve the problem described in this bug report. This report is therefore being closed with a resolution of CURRENTRELEASE. You may reopen this bug report if the solution does not work for you. |