Description of problem: Currently glusterd doesn't have a mechanism by which users can perform 'administrative tasks' before and after the successful completion of a gluster command. The interface planned would be similar to init scripts, where there would be a collection of scripts present under a 'special' directory that would be executed on an 'event'. Directories to hold the scripts mentioned above would be created for each gluster command under glusterd's 'working dir' as follows: (eg.) <glusterd-working-dir>/create/pre <glusterd-working-dir>/create/post The scripts beginning with 'S' under the above directories would be run before (pre) and after (post) the volume created. The scripts would receive a command line argument as below: --volname=<volname> This can be optionally used by the script. Version-Release number of selected component (if applicable): How reproducible: N/A Steps to Reproduce: 1. 2. 3. Actual results: N/A Expected results: N/A Additional info:
CHANGE: http://review.gluster.com/3010 (glusterd: Added init scripts like interface for gluster commands) merged in master by Vijay Bellur (vijay)
CHANGE: http://review.gluster.com/3111 (glusterd: Modified algo for creating hooks directories.) merged in master by Vijay Bellur (vijay)
CHANGE: http://review.gluster.com/3086 (extras: Added (hook) scripts to start/stop samba on volume start and stop) merged in master by Vijay Bellur (vijay)
CHANGE: http://review.gluster.com/3142 (glusterd: Moved 'hooks' interface code to glusterd-hooks.*) merged in master by Vijay Bellur (vijay)
CHANGE: http://review.gluster.com/3193 (glusterd: Enable hooks for volume set.) merged in master by Vijay Bellur (vijay)
CHANGE: http://review.gluster.com/3211 (glusterfs.spec: Added hook-scripts in server rpm) merged in master by Vijay Bellur (vijay)
CHANGE: http://review.gluster.com/3188 (extras: Added hook script to help in CTDB setup) merged in master by Vijay Bellur (vijay)
CHANGE: http://review.gluster.com/3260 (glusterd: Added glusterd command specific optional args for hooks scripts.) merged in master by Vijay Bellur (vijay)
CHANGE: http://review.gluster.com/3271 (extras/hook-scripts: Fixed EXTRA_DIST to explicitly list *.sh files) merged in master by Vijay Bellur (vijay)
Scripts are there and working as per the expectation. Not always reproducible but in many case 'S29CTDBsetup.sh' fail to mount replicated volume on 'Gluster/lock', because of that changing status to 'On-dev' (let me know, If I have to close this defect and log a new for the same as other scripts are working fine)
Hi Rachana, I think you can verify this bug and open another bug. That was we can track the issues specifically. -Amar
Scripts are there and working as per the expectation.
REVIEW: http://review.gluster.org/3471 (extras: Restructuring hook-scripts directory) posted (#3) for review on master by Krutika Dhananjay (kdhananj)
REVIEW: http://review.gluster.org/4882 (extras: Move ufo hook-script under the appropriate directory) posted (#1) for review on master by Krutika Dhananjay (kdhananj)
REVIEW: http://review.gluster.org/3471 (extras: Restructuring hook-scripts directory) posted (#4) for review on master by Krutika Dhananjay (kdhananj)
REVIEW: http://review.gluster.org/4882 (extras: Move ufo hook-script under the appropriate directory) posted (#2) for review on master by Krutika Dhananjay (kdhananj)
REVIEW: http://review.gluster.org/3471 (extras: Restructuring hook-scripts directory) posted (#5) for review on master by Krutika Dhananjay (kdhananj)
REVIEW: http://review.gluster.org/4882 (extras: Move ufo hook-script under the appropriate directory) posted (#3) for review on master by Krutika Dhananjay (kdhananj)
REVIEW: http://review.gluster.org/3471 (extras: Restructuring hook-scripts directory) posted (#6) for review on master by Krutika Dhananjay (kdhananj)
REVIEW: http://review.gluster.org/4882 (extras: Move ufo hook-script under the appropriate directory) posted (#4) for review on master by Krutika Dhananjay (kdhananj)
REVIEW: http://review.gluster.org/3471 (extras: Restructuring hook-scripts directory) posted (#7) for review on master by Krutika Dhananjay (kdhananj)