|
|
74b1de |
From 6e7d333625ecd9f7402c2e839338350fa86eaf45 Mon Sep 17 00:00:00 2001
|
|
|
74b1de |
From: Hari Gowtham <hgowtham@redhat.com>
|
|
|
74b1de |
Date: Tue, 16 Apr 2019 17:07:37 +0530
|
|
|
74b1de |
Subject: [PATCH 110/124] tier/shd/glusterd: with shd mux, the shd volfile path
|
|
|
74b1de |
have to be updated for tier-heald.t
|
|
|
74b1de |
|
|
|
74b1de |
The volfile path for glustershd has been changed to volume based
|
|
|
74b1de |
from node based with the shd mux. And those changes for the
|
|
|
74b1de |
tier-heald.t test case have been made in this patch.
|
|
|
74b1de |
|
|
|
74b1de |
label: DOWNSTREAM ONLY
|
|
|
74b1de |
|
|
|
74b1de |
Change-Id: I0137f7e02c2bf3721dd51c6dfb215cd81b31d6ef
|
|
|
74b1de |
Signed-off-by: Hari Gowtham <hgowtham@redhat.com>
|
|
|
74b1de |
Reviewed-on: https://code.engineering.redhat.com/gerrit/168038
|
|
|
74b1de |
Reviewed-by: Rafi Kavungal Chundattu Parambil <rkavunga@redhat.com>
|
|
|
74b1de |
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
|
|
|
74b1de |
---
|
|
|
74b1de |
tests/basic/tier/tier-heald.t | 35 ++++++++++++++++++++---------------
|
|
|
74b1de |
1 file changed, 20 insertions(+), 15 deletions(-)
|
|
|
74b1de |
|
|
|
74b1de |
diff --git a/tests/basic/tier/tier-heald.t b/tests/basic/tier/tier-heald.t
|
|
|
74b1de |
index a8e634f..0ec9e43 100644
|
|
|
74b1de |
--- a/tests/basic/tier/tier-heald.t
|
|
|
74b1de |
+++ b/tests/basic/tier/tier-heald.t
|
|
|
74b1de |
@@ -11,7 +11,7 @@ cleanup;
|
|
|
74b1de |
TEST glusterd
|
|
|
74b1de |
TEST pidof glusterd
|
|
|
74b1de |
|
|
|
74b1de |
-volfile=$(gluster system:: getwd)"/glustershd/glustershd-server.vol"
|
|
|
74b1de |
+r2_volfile=$(gluster system:: getwd)"/vols/r2/r2-shd.vol"
|
|
|
74b1de |
|
|
|
74b1de |
# Commands should fail when both tiers are not of distribute type.
|
|
|
74b1de |
# Glustershd shouldn't be running as long as there are no replicate/disperse
|
|
|
74b1de |
@@ -34,51 +34,56 @@ TEST $CLI volume tier r2 attach $H0:$B0/r2_hot
|
|
|
74b1de |
EXPECT_WITHIN $PROCESS_UP_TIMEOUT "[0-9][0-9]*" get_shd_process_pid
|
|
|
74b1de |
TEST $CLI volume heal r2 enable
|
|
|
74b1de |
EXPECT "enable" volume_option r2 "cluster.self-heal-daemon"
|
|
|
74b1de |
-EXPECT "enable" volgen_volume_option $volfile r2-replicate-0 cluster replicate self-heal-daemon
|
|
|
74b1de |
+EXPECT "enable" volgen_volume_option $r2_volfile r2-replicate-0 cluster replicate self-heal-daemon
|
|
|
74b1de |
EXPECT_WITHIN $PROCESS_UP_TIMEOUT "[0-9][0-9]*" get_shd_process_pid
|
|
|
74b1de |
TEST $CLI volume heal r2 disable
|
|
|
74b1de |
EXPECT "disable" volume_option r2 "cluster.self-heal-daemon"
|
|
|
74b1de |
-EXPECT "disable" volgen_volume_option $volfile r2-replicate-0 cluster replicate self-heal-daemon
|
|
|
74b1de |
+EXPECT "disable" volgen_volume_option $r2_volfile r2-replicate-0 cluster replicate self-heal-daemon
|
|
|
74b1de |
EXPECT_WITHIN $PROCESS_UP_TIMEOUT "[0-9][0-9]*" get_shd_process_pid
|
|
|
74b1de |
# Commands should work on disperse volume.
|
|
|
74b1de |
TEST $CLI volume create ec2 disperse 3 redundancy 1 $H0:$B0/ec2_0 $H0:$B0/ec2_1 $H0:$B0/ec2_2
|
|
|
74b1de |
TEST $CLI volume start ec2
|
|
|
74b1de |
|
|
|
74b1de |
+ec2_volfile=$(gluster system:: getwd)"/vols/ec2/ec2-shd.vol"
|
|
|
74b1de |
+
|
|
|
74b1de |
TEST $CLI volume tier ec2 attach replica 2 $H0:$B0/ec2_hot{1..4}
|
|
|
74b1de |
EXPECT_WITHIN $PROCESS_UP_TIMEOUT "[0-9][0-9]*" get_shd_process_pid
|
|
|
74b1de |
TEST $CLI volume heal ec2 enable
|
|
|
74b1de |
EXPECT "enable" volume_option ec2 "cluster.disperse-self-heal-daemon"
|
|
|
74b1de |
-EXPECT "enable" volgen_volume_option $volfile ec2-disperse-0 cluster disperse self-heal-daemon
|
|
|
74b1de |
+EXPECT "enable" volgen_volume_option $ec2_volfile ec2-disperse-0 cluster disperse self-heal-daemon
|
|
|
74b1de |
EXPECT_WITHIN $PROCESS_UP_TIMEOUT "[0-9][0-9]*" get_shd_process_pid
|
|
|
74b1de |
TEST $CLI volume heal ec2 disable
|
|
|
74b1de |
EXPECT "disable" volume_option ec2 "cluster.disperse-self-heal-daemon"
|
|
|
74b1de |
-EXPECT "disable" volgen_volume_option $volfile ec2-disperse-0 cluster disperse self-heal-daemon
|
|
|
74b1de |
+EXPECT "disable" volgen_volume_option $ec2_volfile ec2-disperse-0 cluster disperse self-heal-daemon
|
|
|
74b1de |
EXPECT_WITHIN $PROCESS_UP_TIMEOUT "[0-9][0-9]*" get_shd_process_pid
|
|
|
74b1de |
|
|
|
74b1de |
#Check that shd graph is rewritten correctly on volume stop/start
|
|
|
74b1de |
-EXPECT "Y" volgen_volume_exists $volfile ec2-disperse-0 cluster disperse
|
|
|
74b1de |
-EXPECT "Y" volgen_volume_exists $volfile r2-replicate-0 cluster replicate
|
|
|
74b1de |
+EXPECT "Y" volgen_volume_exists $ec2_volfile ec2-disperse-0 cluster disperse
|
|
|
74b1de |
+EXPECT "Y" volgen_volume_exists $r2_volfile r2-replicate-0 cluster replicate
|
|
|
74b1de |
TEST $CLI volume stop r2
|
|
|
74b1de |
-EXPECT "Y" volgen_volume_exists $volfile ec2-disperse-0 cluster disperse
|
|
|
74b1de |
-EXPECT "N" volgen_volume_exists $volfile r2-replicate-0 cluster replicate
|
|
|
74b1de |
+EXPECT "Y" volgen_volume_exists $ec2_volfile ec2-disperse-0 cluster disperse
|
|
|
74b1de |
+
|
|
|
74b1de |
+# Has been commented as the validations after stop using volfile dont hold true.
|
|
|
74b1de |
+#EXPECT "N" volgen_volume_exists $r2_volfile r2-replicate-0 cluster replicate
|
|
|
74b1de |
TEST $CLI volume stop ec2
|
|
|
74b1de |
# When both the volumes are stopped glustershd volfile is not modified just the
|
|
|
74b1de |
# process is stopped
|
|
|
74b1de |
TEST "[ -z $(get_shd_process_pid) ]"
|
|
|
74b1de |
|
|
|
74b1de |
TEST $CLI volume start r2
|
|
|
74b1de |
-EXPECT "N" volgen_volume_exists $volfile ec2-disperse-0 cluster disperse
|
|
|
74b1de |
-EXPECT "Y" volgen_volume_exists $volfile r2-replicate-0 cluster replicate
|
|
|
74b1de |
+# Has been commented as the validations after stop using volfile dont hold true.
|
|
|
74b1de |
+#EXPECT "N" volgen_volume_exists $ec2_volfile ec2-disperse-0 cluster disperse
|
|
|
74b1de |
+EXPECT "Y" volgen_volume_exists $r2_volfile r2-replicate-0 cluster replicate
|
|
|
74b1de |
|
|
|
74b1de |
TEST $CLI volume start ec2
|
|
|
74b1de |
|
|
|
74b1de |
-EXPECT "Y" volgen_volume_exists $volfile ec2-disperse-0 cluster disperse
|
|
|
74b1de |
-EXPECT "Y" volgen_volume_exists $volfile ec2-replicate-0 cluster replicate
|
|
|
74b1de |
+EXPECT "Y" volgen_volume_exists $ec2_volfile ec2-disperse-0 cluster disperse
|
|
|
74b1de |
+EXPECT "Y" volgen_volume_exists $ec2_volfile ec2-replicate-0 cluster replicate
|
|
|
74b1de |
|
|
|
74b1de |
TEST $CLI volume tier ec2 detach force
|
|
|
74b1de |
|
|
|
74b1de |
-EXPECT "Y" volgen_volume_exists $volfile ec2-disperse-0 cluster disperse
|
|
|
74b1de |
-EXPECT "N" volgen_volume_exists $volfile ec2-replicate-0 cluster replicate
|
|
|
74b1de |
+EXPECT "Y" volgen_volume_exists $ec2_volfile ec2-disperse-0 cluster disperse
|
|
|
74b1de |
+EXPECT "N" volgen_volume_exists $ec2_volfile ec2-replicate-0 cluster replicate
|
|
|
74b1de |
|
|
|
74b1de |
TEST $CLI volume set r2 self-heal-daemon on
|
|
|
74b1de |
TEST $CLI volume set r2 cluster.self-heal-daemon off
|
|
|
74b1de |
--
|
|
|
74b1de |
1.8.3.1
|
|
|
74b1de |
|