summaryrefslogtreecommitdiffstats
path: root/tests/volume.rc
diff options
context:
space:
mode:
authorMohammed Rafi KC <rkavunga@redhat.com>2019-05-09 14:07:48 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2019-06-06 11:56:43 +0000
commit373f045497b3e696ab6492b9c8ea105ffe947b91 (patch)
treeaad2ebe742a5397903266e6f13c35764f7c11743 /tests/volume.rc
parent76673e983b7eb849011b3fb4417cf1d5f7147352 (diff)
tests/shd: Add test coverage for shd mux
This patch add more test cases for shd mux test cases The test case includes 1) Createing multiple volumes to check the attach and detach of self heal daemon requests. 2) Make sure the healing happens in all sceanarios 3) After a volume detach make sure the threads of the detached volume is all cleaned. 4) Repeat all the above tests for ec volume 5) Node Reboot case 6) glusterd restart cases 7) Add-brick/remove brick 8) Convert a distributed volume to disperse volume 9) Convert a replicated volume to distributed volume Change-Id: I7c317ef9d23a45ffd831157e4890d7c83a8fce7b fixes: bz#1708929 Signed-off-by: Mohammed Rafi KC <rkavunga@redhat.com>
Diffstat (limited to 'tests/volume.rc')
-rw-r--r--tests/volume.rc15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/volume.rc b/tests/volume.rc
index 7dd829210e3..6477dfb484f 100644
--- a/tests/volume.rc
+++ b/tests/volume.rc
@@ -929,3 +929,18 @@ function volgen_check_ancestry {
echo "N"
fi
}
+
+function get_shd_mux_pid {
+ local volume=$1
+ pid=`$CLI volume status $volume shd | awk '/Self-heal/{print $8}'`
+ echo $pid
+}
+
+function shd_count {
+ ps aux | grep "glustershd" | grep -v grep | wc -l
+}
+
+function number_healer_threads_shd {
+ local pid=$(get_shd_mux_pid $1)
+ pstack $pid | grep $2 | wc -l
+}