summaryrefslogtreecommitdiffstats
path: root/dvm
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2012-01-09 17:44:59 -0800
committerGerrit Code Review <root@dev.gluster.com>2012-01-09 17:44:59 -0800
commit7ae87eb9158bbd29af6beb561616b2ce75a85cd2 (patch)
tree5b4ced2d8e8a2300b5498de6dcc453ef7e32cca8 /dvm
parentc1be42e1901913dc7d19f12668110133c5d3d87d (diff)
parentcd54672fb6c7b1e3dab5027c5e5fb1731e1cfdcf (diff)
Merge "BUG-765362: Add brick fails for pure distribute volumes"
Diffstat (limited to 'dvm')
-rwxr-xr-xdvm/765362/testcase24
1 files changed, 24 insertions, 0 deletions
diff --git a/dvm/765362/testcase b/dvm/765362/testcase
new file mode 100755
index 0000000..0dd0f67
--- /dev/null
+++ b/dvm/765362/testcase
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+# Bug 765362- Add brick fails for pure distribute volumes
+
+source $cwd/regression_helpers
+
+$GLUSTERFSDIR/gluster volume create $global_bug_id $(hostname):$EXPORT_DIR/$global_bug_id/brick1 2>/dev/null 1>/dev/null
+
+$GLUSTERFSDIR/gluster volume start $global_bug_id 2>/dev/null 1>/dev/null
+sleep 5
+
+# Add another brick to the volume
+$GLUSTERFSDIR/gluster volume add-brick $global_bug_id \
+ $(hostname):$EXPORT_DIR/$global_bug_id/brick2 | grep 'Add Brick successful' 1>/dev/null 2>/dev/null
+
+ret=$?
+
+if [ $ret -ne 0 ]; then
+ exit 1
+else
+ exit 0
+fi
+
+