aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrexlee8776 <limingjiang@huawei.com>2017-10-27 17:23:16 +0800
committerRex Lee <limingjiang@huawei.com>2017-12-13 03:08:12 +0000
commit23264c34a2eedc58802e1415a6e2a36f79a001d9 (patch)
treed51fff9959828601321f385371926e268bc5b7b5
parent102e3528ba4d7b8c566c1304192c4036f2a94f8f (diff)
tc053 kill haproxy wrong mismatch
JIRA: YARDSTICK-831 Change-Id: I587c486572f439952b8a31da664d1e2c1fb8dc27 Signed-off-by: rexlee8776 <limingjiang@huawei.com> (cherry picked from commit d70cbc5c6bd03cb68a13dcab50a12178982f5c44)
-rwxr-xr-xyardstick/benchmark/scenarios/availability/ha_tools/fault_process_kill.bash5
1 files changed, 5 insertions, 0 deletions
diff --git a/yardstick/benchmark/scenarios/availability/ha_tools/fault_process_kill.bash b/yardstick/benchmark/scenarios/availability/ha_tools/fault_process_kill.bash
index a865b6551..eec86e133 100755
--- a/yardstick/benchmark/scenarios/availability/ha_tools/fault_process_kill.bash
+++ b/yardstick/benchmark/scenarios/availability/ha_tools/fault_process_kill.bash
@@ -20,6 +20,11 @@ if [ "$process_name" = "keystone" ]; then
do
kill -9 "${pid}"
done
+elif [ "$process_name" = "haproxy" ]; then
+ for pid in $(pgrep -f "^/usr/[^ ]*/${process_name}");
+ do
+ kill -9 "${pid}"
+ done
else
for pid in $(pgrep -f "/usr/.*/${process_name}");
do