summaryrefslogtreecommitdiffstats
path: root/dvm/764548/testcase
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2012-01-05 23:34:03 -0800
committerGerrit Code Review <root@dev.gluster.com>2012-01-05 23:34:03 -0800
commit66c16fab6dae17c71af0e480ee48dc2c814c7ec5 (patch)
tree353307493dceedfa429cbd64ad99701722125d30 /dvm/764548/testcase
parent2752d6b772578f18605285bd871a1f3251905b8b (diff)
parent0216d265084206cf61e9febac3079aa8029bf603 (diff)
Merge "Check if double wait is fixed in monitor"
Diffstat (limited to 'dvm/764548/testcase')
-rwxr-xr-xdvm/764548/testcase48
1 files changed, 48 insertions, 0 deletions
diff --git a/dvm/764548/testcase b/dvm/764548/testcase
new file mode 100755
index 0000000..1c164d5
--- /dev/null
+++ b/dvm/764548/testcase
@@ -0,0 +1,48 @@
+#!/bin/bash
+
+source $cwd/regression_helpers;
+
+#create, start volume
+$GLUSTERFSDIR/gluster volume create $global_bug_id $(hostname):$EXPORT_DIR/$global_bug_id/export1 $(hostname):$EXPORT_DIR/$global_bug_id/export2 &>/dev/null;
+
+$GLUSTERFSDIR/gluster volume start $global_bug_id &> /dev/null;
+
+sleep 10;
+
+$GLUSTERFSDIR/gluster volume create backup $(hostname):$EXPORT_DIR/$global_bug_id/export_bak &>/dev/null;
+
+$GLUSTERFSDIR/gluster volume start backup &> /dev/null;
+
+#start gsyncd
+$GLUSTERFSDIR/gluster volume geo-replication $global_bug_id :backup start &> /dev/null;
+if [ $? -ne 0 ]; then
+ exit 255;
+fi
+
+sleep 10;
+ps aux|grep gsyncd.py | grep monitor | grep backup &> /dev/null;
+if [ $? -ne 0 ]; then
+ exit 255;
+fi
+
+#stop master & create, start new master volume
+$GLUSTERFSDIR/gluster --mode=script volume stop $global_bug_id &> /dev/null;
+
+$GLUSTERFSDIR/gluster volume create newmaster $(hostname):$EXPORT_DIR/$global_bug_id/export4 $(hostname):$EXPORT_DIR/$global_bug_id/export5 &>/dev/null;
+
+$GLUSTERFSDIR/gluster volume start newmaster &> /dev/null;
+
+sleep 10;
+
+$GLUSTERFSDIR/gluster volume geo-replication newmaster :backup start &> /dev/null;
+if [ $? -ne 0 ]; then
+ exit 255;
+fi
+
+sleep 10;
+ps aux|grep gsyncd.py | grep monitor | grep newmaster &> /dev/null;
+if [ $? -ne 0 ]; then
+ exit 255;
+else
+ exit 0;
+fi