tc046 kill keystone process condition incorrect - dovetail 65/62165/1 stable/fraser ovp-2.0.0
authorrexlee8776 <limingjiang@huawei.com>
Fri, 31 Aug 2018 07:08:45 +0000 (07:08 +0000)
committerRex Lee <limingjiang@huawei.com>
Thu, 13 Sep 2018 01:27:55 +0000 (01:27 +0000)
Change-Id: If01abfd5a99b4cea74f835e258f3a982af9446cd
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
(cherry picked from commit e5cf82b0514c88a2aca87a2bbb98c8cc1d751ecb)

yardstick/benchmark/scenarios/availability/ha_tools/fault_process_kill.bash

index d34ce93..cda469c 100755 (executable)
@@ -16,7 +16,7 @@ set -e
 process_name=$1
 
 if [ "$process_name" = "keystone" ]; then
-    for pid in $(ps aux | grep "keystone" | grep -iv heartbeat | grep -iv monitor | grep -v grep | grep -v /bin/sh | awk '{print $2}'); \
+    for pid in $(ps aux | grep "keystone" | grep -iv monitor | grep -v grep | grep -v /bin/sh | awk '{print $2}'); \
         do
             kill -9 "${pid}"
         done
@@ -26,7 +26,7 @@ elif [ "$process_name" = "haproxy" ]; then
             kill -9 "${pid}"
         done
 else
-    for pid in $(pgrep -fa [^-_a-zA-Z0-9]${process_name} | grep -iv heartbeat | awk '{print $1}');
+    for pid in $(pgrep -fa [^-_a-zA-Z0-9]${process_name} | awk '{print $1}');
         do
             kill -9 "${pid}"
         done