+++ This bug was initially created as a clone of Bug #1224236 +++ Description of problem: If a volume is in a stopped state, glusterfind create succeeds (!). And the pre fails with the error 'Changelog register failed- Connection refused'. Post and delete succeeds. It is required to have a uniform behaviour of glusterfind CLI commands, depending on the start/stop state of the volume. This could be further enhanced to gracefully handle the scenario where the volume goes into a stopped state, in the middle of a pre command being run. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. Create a new volume. Leave it in a stopped state 2. Create a glusterfind session. That succeeds. 3. Execute glusterfind pre and that fails with an error. 4. Delete the glusterfind session and the session gets deleted. Expected results: * Step 3 should gracefully fail with a more related error. * All glusterfind CLI commands - create/pre/post/delete/list - should have uniform behaviour based on the state of the volume. Additional info: [root@dhcp43-140 ~]# [root@dhcp43-140 ~]# gluster v stop nash Stopping volume will make its data inaccessible. Do you want to continue? (y/n) y volume stop: nash: success [root@dhcp43-140 ~]# glusterfind pre sess_nash nash /tmp/out.txt --regenerate-outfile 10.70.43.140 - pre failed: /rhs/thinbrick2/nash/dd Changelog register failed: [Errno 111] Connection refused 10.70.43.140 - pre failed: /rhs/thinbrick1/nash/dd Changelog register failed: [Errno 111] Connection refused 10.70.42.75 - pre failed: [2015-05-22 16:26:00.321920] I [event-epoll.c:629:event_dispatch_epoll_worker] 0-epoll: Started thread with index 3 /rhs/thinbrick1/nash/dd Changelog register failed: [Errno 111] Connection refused 10.70.42.75 - pre failed: /rhs/thinbrick2/nash/dd Changelog register failed: [Errno 111] Connection refused Generated output file /tmp/out.txt [root@dhcp43-140 ~]# --- Additional comment from Aravinda VK on 2015-05-27 12:39:44 EDT --- One more validation to glusterfind commands, Check Volume status before executing create and pre commands. XPath in volume info: volInfo/volumes/volume/statusStr --- Additional comment from Aravinda VK on 2015-05-27 12:40:13 EDT --- volInfo/volumes/volume/statusStr should be in Started state.
REVIEW: http://review.gluster.org/10955 (tools/glusterfind: verifying volume is online) posted (#3) for review on master by Milind Changire (mchangir)
Fix for this BZ is already present in a GlusterFS release. You can find clone of this BZ, fixed in a GlusterFS release and closed. Hence closing this mainline BZ as well.
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.8.0, please open a new bug report. glusterfs-3.8.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution. [1] http://blog.gluster.org/2016/06/glusterfs-3-8-released/ [2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user