diff options
author | Atin Mukherjee <amukherj@redhat.com> | 2015-06-09 23:11:13 +0530 |
---|---|---|
committer | Atin Mukherjee <amukherj@redhat.com> | 2015-06-14 21:36:07 -0700 |
commit | 79fdd93d1411e8b0f94f6ccb310ca5d05eb04054 (patch) | |
tree | 9bc475b7c638f64a1ac75e9f6f5e8faa2ce108c9 /tests | |
parent | 8720cef1ed642d7cb09e98c41458d19845f24711 (diff) |
tests: test cluster lock in heterogenious cluster
Change-Id: I421f50aeb89213d036b4b40f20a8e0d6bd78d60b
BUG: 1229825
Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
Reviewed-on: http://review.gluster.org/11143
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Kaushal M <kaushal@redhat.com>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/bugs/glusterd/bug-1223213-peerid-fix.t | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/bugs/glusterd/bug-1223213-peerid-fix.t b/tests/bugs/glusterd/bug-1223213-peerid-fix.t new file mode 100755 index 00000000000..0d9829f5a79 --- /dev/null +++ b/tests/bugs/glusterd/bug-1223213-peerid-fix.t @@ -0,0 +1,30 @@ +#!/bin/bash + +. $(dirname $0)/../../include.rc +. $(dirname $0)/../../volume.rc +. $(dirname $0)/../../cluster.rc + +cleanup; + +TEST launch_cluster 2; + +# Fool the cluster to operate with 3.5 version even though binary's op-version +# is > 3.5. This is to ensure 3.5 code path is hit to test that volume status +# works when a node is upgraded from 3.5 to 3.7 or higher as mgmt_v3 lock is +# been introduced in 3.6 version and onwards +GD1_WD=$($CLI_1 system getwd) +TEST sed -rnie "'s/(operating-version=)\w+/\130500/gip'" ${GD1_WD}/glusterd.info + +TEST kill_glusterd 1 +TEST start_glusterd 1 + +TEST $CLI_1 peer probe $H2; + +EXPECT_WITHIN $PROBE_TIMEOUT 1 peer_count + +TEST $CLI_1 volume create $V0 $H1:$B1/$V0 $H2:$B2/$V0 +TEST $CLI_1 volume start $V0 + +TEST $CLI_1 volume status $V0; + +cleanup; |