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