diff options
author | Ross Brattain <ross.b.brattain@intel.com> | 2017-12-16 08:44:07 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-12-16 08:44:07 +0000 |
commit | 600f708444e556b0b658fcf86d3d0b14e27e2add (patch) | |
tree | 753a72f4e876d1e9f6741cf7382ab796012f511c /yardstick/benchmark | |
parent | 9bf492e01dad7309287e8491ec7ac29f43032aed (diff) | |
parent | 4bbd919e2b26fe606bb1b83efc579e0f2557593e (diff) |
Merge "bugfix: kill process do not accurately kill "nova-api""
Diffstat (limited to 'yardstick/benchmark')
-rwxr-xr-x | yardstick/benchmark/scenarios/availability/ha_tools/fault_process_kill.bash | 2 |
1 files changed, 1 insertions, 1 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 eec86e133..d34ce9338 100755 --- a/yardstick/benchmark/scenarios/availability/ha_tools/fault_process_kill.bash +++ b/yardstick/benchmark/scenarios/availability/ha_tools/fault_process_kill.bash @@ -26,7 +26,7 @@ elif [ "$process_name" = "haproxy" ]; then kill -9 "${pid}" done else - for pid in $(pgrep -f "/usr/.*/${process_name}"); + for pid in $(pgrep -fa [^-_a-zA-Z0-9]${process_name} | grep -iv heartbeat | awk '{print $1}'); do kill -9 "${pid}" done |