tc053 kill haproxy wrong mismatch 77/48777/1
authorrexlee8776 <limingjiang@huawei.com>
Fri, 27 Oct 2017 09:23:16 +0000 (17:23 +0800)
committerRex Lee <limingjiang@huawei.com>
Wed, 13 Dec 2017 03:08:12 +0000 (03:08 +0000)
JIRA: YARDSTICK-831

Change-Id: I587c486572f439952b8a31da664d1e2c1fb8dc27
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
(cherry picked from commit d70cbc5c6bd03cb68a13dcab50a12178982f5c44)

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