tc053 kill haproxy wrong mismatch 97/46297/2
authorrexlee8776 <limingjiang@huawei.com>
Fri, 27 Oct 2017 09:23:16 +0000 (17:23 +0800)
committerrexlee8776 <limingjiang@huawei.com>
Sat, 28 Oct 2017 03:00:50 +0000 (11:00 +0800)
JIRA: YARDSTICK-831

Change-Id: I587c486572f439952b8a31da664d1e2c1fb8dc27
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
yardstick/benchmark/scenarios/availability/ha_tools/fault_process_kill.bash

index a865b65..eec86e1 100755 (executable)
@@ -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