|
|
e3c68b |
From 684a4949552164d3469329b3f959de4369d54faa Mon Sep 17 00:00:00 2001
|
|
|
e3c68b |
From: Atin Mukherjee <amukherj@redhat.com>
|
|
|
e3c68b |
Date: Sun, 14 Jul 2019 08:06:11 +0530
|
|
|
e3c68b |
Subject: [PATCH 255/255] Revert "tier/shd/glusterd: with shd mux, the shd
|
|
|
e3c68b |
volfile path have to be updated for tier-heald.t"
|
|
|
e3c68b |
|
|
|
e3c68b |
This reverts commit 6e7d333625ecd9f7402c2e839338350fa86eaf45.
|
|
|
e3c68b |
|
|
|
e3c68b |
Updates: bz#1471742
|
|
|
e3c68b |
Change-Id: I6c27634999f72b5bbb35d5d13cdebda7af072b01
|
|
|
e3c68b |
Reviewed-on: https://code.engineering.redhat.com/gerrit/176017
|
|
|
e3c68b |
Tested-by: RHGS Build Bot <nigelb@redhat.com>
|
|
|
e3c68b |
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
|
|
|
e3c68b |
---
|
|
|
e3c68b |
tests/basic/tier/tier-heald.t | 35 +++++++++++++++--------------------
|
|
|
e3c68b |
1 file changed, 15 insertions(+), 20 deletions(-)
|
|
|
e3c68b |
|
|
|
e3c68b |
diff --git a/tests/basic/tier/tier-heald.t b/tests/basic/tier/tier-heald.t
|
|
|
e3c68b |
index 0ec9e43..a8e634f 100644
|
|
|
e3c68b |
--- a/tests/basic/tier/tier-heald.t
|
|
|
e3c68b |
+++ b/tests/basic/tier/tier-heald.t
|
|
|
e3c68b |
@@ -11,7 +11,7 @@ cleanup;
|
|
|
e3c68b |
TEST glusterd
|
|
|
e3c68b |
TEST pidof glusterd
|
|
|
e3c68b |
|
|
|
e3c68b |
-r2_volfile=$(gluster system:: getwd)"/vols/r2/r2-shd.vol"
|
|
|
e3c68b |
+volfile=$(gluster system:: getwd)"/glustershd/glustershd-server.vol"
|
|
|
e3c68b |
|
|
|
e3c68b |
# Commands should fail when both tiers are not of distribute type.
|
|
|
e3c68b |
# Glustershd shouldn't be running as long as there are no replicate/disperse
|
|
|
e3c68b |
@@ -34,56 +34,51 @@ TEST $CLI volume tier r2 attach $H0:$B0/r2_hot
|
|
|
e3c68b |
EXPECT_WITHIN $PROCESS_UP_TIMEOUT "[0-9][0-9]*" get_shd_process_pid
|
|
|
e3c68b |
TEST $CLI volume heal r2 enable
|
|
|
e3c68b |
EXPECT "enable" volume_option r2 "cluster.self-heal-daemon"
|
|
|
e3c68b |
-EXPECT "enable" volgen_volume_option $r2_volfile r2-replicate-0 cluster replicate self-heal-daemon
|
|
|
e3c68b |
+EXPECT "enable" volgen_volume_option $volfile r2-replicate-0 cluster replicate self-heal-daemon
|
|
|
e3c68b |
EXPECT_WITHIN $PROCESS_UP_TIMEOUT "[0-9][0-9]*" get_shd_process_pid
|
|
|
e3c68b |
TEST $CLI volume heal r2 disable
|
|
|
e3c68b |
EXPECT "disable" volume_option r2 "cluster.self-heal-daemon"
|
|
|
e3c68b |
-EXPECT "disable" volgen_volume_option $r2_volfile r2-replicate-0 cluster replicate self-heal-daemon
|
|
|
e3c68b |
+EXPECT "disable" volgen_volume_option $volfile r2-replicate-0 cluster replicate self-heal-daemon
|
|
|
e3c68b |
EXPECT_WITHIN $PROCESS_UP_TIMEOUT "[0-9][0-9]*" get_shd_process_pid
|
|
|
e3c68b |
# Commands should work on disperse volume.
|
|
|
e3c68b |
TEST $CLI volume create ec2 disperse 3 redundancy 1 $H0:$B0/ec2_0 $H0:$B0/ec2_1 $H0:$B0/ec2_2
|
|
|
e3c68b |
TEST $CLI volume start ec2
|
|
|
e3c68b |
|
|
|
e3c68b |
-ec2_volfile=$(gluster system:: getwd)"/vols/ec2/ec2-shd.vol"
|
|
|
e3c68b |
-
|
|
|
e3c68b |
TEST $CLI volume tier ec2 attach replica 2 $H0:$B0/ec2_hot{1..4}
|
|
|
e3c68b |
EXPECT_WITHIN $PROCESS_UP_TIMEOUT "[0-9][0-9]*" get_shd_process_pid
|
|
|
e3c68b |
TEST $CLI volume heal ec2 enable
|
|
|
e3c68b |
EXPECT "enable" volume_option ec2 "cluster.disperse-self-heal-daemon"
|
|
|
e3c68b |
-EXPECT "enable" volgen_volume_option $ec2_volfile ec2-disperse-0 cluster disperse self-heal-daemon
|
|
|
e3c68b |
+EXPECT "enable" volgen_volume_option $volfile ec2-disperse-0 cluster disperse self-heal-daemon
|
|
|
e3c68b |
EXPECT_WITHIN $PROCESS_UP_TIMEOUT "[0-9][0-9]*" get_shd_process_pid
|
|
|
e3c68b |
TEST $CLI volume heal ec2 disable
|
|
|
e3c68b |
EXPECT "disable" volume_option ec2 "cluster.disperse-self-heal-daemon"
|
|
|
e3c68b |
-EXPECT "disable" volgen_volume_option $ec2_volfile ec2-disperse-0 cluster disperse self-heal-daemon
|
|
|
e3c68b |
+EXPECT "disable" volgen_volume_option $volfile ec2-disperse-0 cluster disperse self-heal-daemon
|
|
|
e3c68b |
EXPECT_WITHIN $PROCESS_UP_TIMEOUT "[0-9][0-9]*" get_shd_process_pid
|
|
|
e3c68b |
|
|
|
e3c68b |
#Check that shd graph is rewritten correctly on volume stop/start
|
|
|
e3c68b |
-EXPECT "Y" volgen_volume_exists $ec2_volfile ec2-disperse-0 cluster disperse
|
|
|
e3c68b |
-EXPECT "Y" volgen_volume_exists $r2_volfile r2-replicate-0 cluster replicate
|
|
|
e3c68b |
+EXPECT "Y" volgen_volume_exists $volfile ec2-disperse-0 cluster disperse
|
|
|
e3c68b |
+EXPECT "Y" volgen_volume_exists $volfile r2-replicate-0 cluster replicate
|
|
|
e3c68b |
TEST $CLI volume stop r2
|
|
|
e3c68b |
-EXPECT "Y" volgen_volume_exists $ec2_volfile ec2-disperse-0 cluster disperse
|
|
|
e3c68b |
-
|
|
|
e3c68b |
-# Has been commented as the validations after stop using volfile dont hold true.
|
|
|
e3c68b |
-#EXPECT "N" volgen_volume_exists $r2_volfile r2-replicate-0 cluster replicate
|
|
|
e3c68b |
+EXPECT "Y" volgen_volume_exists $volfile ec2-disperse-0 cluster disperse
|
|
|
e3c68b |
+EXPECT "N" volgen_volume_exists $volfile r2-replicate-0 cluster replicate
|
|
|
e3c68b |
TEST $CLI volume stop ec2
|
|
|
e3c68b |
# When both the volumes are stopped glustershd volfile is not modified just the
|
|
|
e3c68b |
# process is stopped
|
|
|
e3c68b |
TEST "[ -z $(get_shd_process_pid) ]"
|
|
|
e3c68b |
|
|
|
e3c68b |
TEST $CLI volume start r2
|
|
|
e3c68b |
-# Has been commented as the validations after stop using volfile dont hold true.
|
|
|
e3c68b |
-#EXPECT "N" volgen_volume_exists $ec2_volfile ec2-disperse-0 cluster disperse
|
|
|
e3c68b |
-EXPECT "Y" volgen_volume_exists $r2_volfile r2-replicate-0 cluster replicate
|
|
|
e3c68b |
+EXPECT "N" volgen_volume_exists $volfile ec2-disperse-0 cluster disperse
|
|
|
e3c68b |
+EXPECT "Y" volgen_volume_exists $volfile r2-replicate-0 cluster replicate
|
|
|
e3c68b |
|
|
|
e3c68b |
TEST $CLI volume start ec2
|
|
|
e3c68b |
|
|
|
e3c68b |
-EXPECT "Y" volgen_volume_exists $ec2_volfile ec2-disperse-0 cluster disperse
|
|
|
e3c68b |
-EXPECT "Y" volgen_volume_exists $ec2_volfile ec2-replicate-0 cluster replicate
|
|
|
e3c68b |
+EXPECT "Y" volgen_volume_exists $volfile ec2-disperse-0 cluster disperse
|
|
|
e3c68b |
+EXPECT "Y" volgen_volume_exists $volfile ec2-replicate-0 cluster replicate
|
|
|
e3c68b |
|
|
|
e3c68b |
TEST $CLI volume tier ec2 detach force
|
|
|
e3c68b |
|
|
|
e3c68b |
-EXPECT "Y" volgen_volume_exists $ec2_volfile ec2-disperse-0 cluster disperse
|
|
|
e3c68b |
-EXPECT "N" volgen_volume_exists $ec2_volfile ec2-replicate-0 cluster replicate
|
|
|
e3c68b |
+EXPECT "Y" volgen_volume_exists $volfile ec2-disperse-0 cluster disperse
|
|
|
e3c68b |
+EXPECT "N" volgen_volume_exists $volfile ec2-replicate-0 cluster replicate
|
|
|
e3c68b |
|
|
|
e3c68b |
TEST $CLI volume set r2 self-heal-daemon on
|
|
|
e3c68b |
TEST $CLI volume set r2 cluster.self-heal-daemon off
|
|
|
e3c68b |
--
|
|
|
e3c68b |
1.8.3.1
|
|
|
e3c68b |
|