[Bugs] [Bug 1289935] New: Glusterfind hook script failing if /var/lib/glusterd/glusterfind dir was absent

bugzilla at redhat.com bugzilla at redhat.com
Wed Dec 9 11:34:04 UTC 2015


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

            Bug ID: 1289935
           Summary: Glusterfind hook script failing if
                    /var/lib/glusterd/glusterfind dir was absent
           Product: GlusterFS
           Version: mainline
         Component: glusterfind
          Assignee: bugs at gluster.org
          Reporter: avishwan at redhat.com
        QA Contact: bugs at gluster.org
                CC: avishwan at redhat.com, khiremat at redhat.com



Description of problem:
If during cleanup /var/lib/glusterd directory is deleted, glusterfind directory
will not be present. The cleanup script expects glusterfind directory to be
present.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Install Gluster, rm -rf /var/lib/glusterd except hooks directory. and
restart glusterd
2. Create a Volume
3. Delete Volume

Actual results:
Hook execution errors seen in glusterd logs.

[2015-11-11 13:03:41.906892] I [MSGID: 106495]
[glusterd-handler.c:3049:__glusterd_handle_getwd] 0-glusterd: Received getwd
req
[2015-11-11 13:03:41.910931] E [run.c:190:runner_log]
(-->/usr/lib64/glusterfs/3.7.5/xlator/mgmt/glusterd.so(+0xef3d2)
[0x7fc7d60923d2]
-->/usr/lib64/glusterfs/3.7.5/xlator/mgmt/glusterd.so(glusterd_hooks_run_hooks+0x470)
[0x7fc7d6092060] -->/usr/lib64/libglusterfs.so.0(runner_log+0x11e)
[0x7fc7e162868e] ) 0-management: Failed to execute script:
/var/lib/glusterd/hooks/1/delete/post/S57glusterfind-delete-post.py
--volname=VOL_ZIMBRA 

Expected results:
No errors seen in Logs

Additional info:
When executed directly,

# /var/lib/glusterd/hooks/1/delete/post/S57glusterfind-delete-post.py
--volname=VOL_ZIMBRA
Traceback (most recent call last):
  File "/var/lib/glusterd/hooks/1/delete/post/S57glusterfind-delete-post.py",
line 60, in <module>
    main()
  File "/var/lib/glusterd/hooks/1/delete/post/S57glusterfind-delete-post.py",
line 43, in main
    for session in os.listdir(glusterfind_dir):
OSError: [Errno 2] No such file or directory: '/var/lib/glusterd/glusterfind'

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list