diff options
author | rexlee8776 <limingjiang@huawei.com> | 2018-08-31 07:08:45 +0000 |
---|---|---|
committer | Rex Lee <limingjiang@huawei.com> | 2018-09-13 01:27:55 +0000 |
commit | 6c10a2d9cc3fe10e0bdd73a0985ab767b9479afc (patch) | |
tree | ca85482c19039a45d137f12a85d76bd935266a4e | |
parent | 5fb2138dd163c83fa73e8766fc206d1c14409754 (diff) |
tc046 kill keystone process condition incorrect - dovetailovp-2.0.0stable/fraser
Change-Id: If01abfd5a99b4cea74f835e258f3a982af9446cd
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
(cherry picked from commit e5cf82b0514c88a2aca87a2bbb98c8cc1d751ecb)
-rwxr-xr-x | yardstick/benchmark/scenarios/availability/ha_tools/fault_process_kill.bash | 4 |
1 files changed, 2 insertions, 2 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 d34ce9338..cda469cf9 100755 --- a/yardstick/benchmark/scenarios/availability/ha_tools/fault_process_kill.bash +++ b/yardstick/benchmark/scenarios/availability/ha_tools/fault_process_kill.bash @@ -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 |