summaryrefslogtreecommitdiffstats
path: root/tests/snapshot.rc
diff options
context:
space:
mode:
authorAvra Sengupta <asengupt@redhat.com>2015-11-09 13:37:53 +0530
committerRajesh Joseph <rjoseph@redhat.com>2015-12-02 21:58:56 -0800
commitd84242276b2f8ee7151c7784992dffb651816ccf (patch)
tree79fe2837e9f41435ec495fc537483835c3adcf96 /tests/snapshot.rc
parent71953970a23150594d2a7b1f91b783fa41867fd6 (diff)
snapshot/clone : Fix tier pause failure for snapshot clone
Backport of http://review.gluster.org/#/c/12548 On a tiered volume, snapshot clone fails while trying to pause tier, as we pass volname(snap) to the brick_op_phase module, which tries to look for the snap volume amongst regular volumes, and obviously doesn't find it and fail. Well as snapshot volumes are read only volume, and will not have tiering daemon acting upon them, there is really no need to pause tiereing while taking clone of snapshot volumes. Hence removing the code to pause and resume tiering during clone create. Change-Id: I2266aba589a830a13a806c0d8a56fd8855143ccd BUG: 1287538 Signed-off-by: Avra Sengupta <asengupt@redhat.com> Reviewed-on: http://review.gluster.org/12846 Tested-by: NetBSD Build System <jenkins@build.gluster.org> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Rajesh Joseph <rjoseph@redhat.com>
Diffstat (limited to 'tests/snapshot.rc')
-rw-r--r--tests/snapshot.rc7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/snapshot.rc b/tests/snapshot.rc
index 52ad86a3ec3..9304fdaee64 100644
--- a/tests/snapshot.rc
+++ b/tests/snapshot.rc
@@ -461,6 +461,13 @@ function get-cmd-field-xml()
$cli $COMMAND --xml | xmllint --format - | grep $PATTERN
}
+function get_snap_brick_status()
+{
+ local snap=$1;
+
+ $CLI snapshot status $snap | grep "Brick Running" | sed 's/.*: //';
+}
+
case $OSTYPE in
NetBSD)
echo "Skip test on LVM which is not available on NetBSD" >&2