[Bugs] [Bug 1233344] New: glusterfs-resource-agents - volume - voldir is not properly set

bugzilla at redhat.com bugzilla at redhat.com
Thu Jun 18 16:37:11 UTC 2015


https://bugzilla.redhat.com/show_bug.cgi?id=1233344

            Bug ID: 1233344
           Summary: glusterfs-resource-agents - volume - voldir is not
                    properly set
           Product: GlusterFS
           Version: 3.7.1
         Component: unclassified
          Assignee: bugs at gluster.org
          Reporter: jeromep3000 at gmail.com
                CC: bugs at gluster.org, gluster-bugs at redhat.com



Description of problem:
When creating a resource with the RA 'ocf:glusterfs:volume', it doesn't work as
expected because it cannot find required infos.

Version-Release number of selected component (if applicable):
glusterfs-resource-agents-3.7.1-1.el7.noarch.rpm

How reproducible:
Everytime

Steps to Reproduce:
1. Create the resource (all prerequisites are OK, ie: the cluster is
operational, the FS has been tested without Pacemaker, the resource glustered
is created)
pcs resource create gluster_volume ocf:glusterfs:volume volname='gv0' op
monitor interval=60s

2. Try to enable/disable/monitor the resource


Actual results:
# pcs status
...
 Clone Set: gluster_d-clone [gluster_d]
     Started: [ centos71-2 centos71-3 ]
 Clone Set: gluster_volume-clone [gluster_volume]
     gluster_volume     (ocf::glusterfs:volume):        FAILED centos71-3
(unmanaged)
     gluster_volume     (ocf::glusterfs:volume):        FAILED centos71-2
(unmanaged)

Failed actions:
    gluster_volume_stop_0 on centos71-3 'unknown error' (1): call=101,
status=Timed Out, exit-reason='none', last-rc-change='Thu Jun 18 15:45:16
2015', queued=1ms, exec=20003ms
    gluster_volume_stop_0 on centos71-3 'unknown error' (1): call=101,
status=Timed Out, exit-reason='none', last-rc-change='Thu Jun 18 15:45:16
2015', queued=1ms, exec=20003ms
    gluster_volume_stop_0 on centos71-2 'unknown error' (1): call=104,
status=Timed Out, exit-reason='none', last-rc-change='Thu Jun 18 15:44:56
2015', queued=0ms, exec=20002ms
    gluster_volume_stop_0 on centos71-2 'unknown error' (1): call=104,
status=Timed Out, exit-reason='none', last-rc-change='Thu Jun 18 15:44:56
2015', queued=0ms, exec=20002ms
...

Expected results:
# pcs status
...
 Clone Set: gluster_d-clone [gluster_d]
     Started: [ centos71-2 centos71-3 ]
 Clone Set: gluster_volume-clone [gluster_volume]
     Started: [ centos71-2 centos71-3 ]
...

Additional info:
I patched it localy in the file : /usr/lib/ocf/resource.d/glusterfs/volume

...
volume_getdir() {
    local voldir
    voldir="/var/lib/glusterd/vols/${OCF_RESKEY_volname}"         <===== new
value
#    voldir="/etc/glusterd/vols/${OCF_RESKEY_volname}"            <===== old
value

    [ -d ${voldir} ] || return 1

    echo "${voldir}"
    return 0
}
...

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list