aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick/benchmark
diff options
context:
space:
mode:
authorRoss Brattain <ross.b.brattain@intel.com>2017-12-16 08:44:07 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-12-16 08:44:07 +0000
commit600f708444e556b0b658fcf86d3d0b14e27e2add (patch)
tree753a72f4e876d1e9f6741cf7382ab796012f511c /yardstick/benchmark
parent9bf492e01dad7309287e8491ec7ac29f43032aed (diff)
parent4bbd919e2b26fe606bb1b83efc579e0f2557593e (diff)
Merge "bugfix: kill process do not accurately kill "nova-api""
Diffstat (limited to 'yardstick/benchmark')
-rwxr-xr-xyardstick/benchmark/scenarios/availability/ha_tools/fault_process_kill.bash2
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