path: root/tests/snapshot.rc
diff options
authorAvra Sengupta <>2015-11-09 13:37:53 +0530
committerRajesh Joseph <>2015-12-02 21:57:46 -0800
commit0d46f1b0519f93165a335bf264661054883b522f (patch)
treeb3e9376a9a3ed53bd52f95f5cc44d4fff73d6548 /tests/snapshot.rc
parentbdfd087d76cbf6336805c6c55c0e0935dfd29a9d (diff)
snapshot/clone : Fix tier pause failure for snapshot clone
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: 1279327 Signed-off-by: Avra Sengupta <> Reviewed-on: Tested-by: NetBSD Build System <> Tested-by: Gluster Build System <> Reviewed-by: Rajesh Joseph <>
Diffstat (limited to 'tests/snapshot.rc')
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/snapshot.rc b/tests/snapshot.rc
index 34e9ebf..2d6f050 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
echo "Skip test on LVM which is not available on NetBSD" >&2