aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick/benchmark/scenarios/availability/attacker/attacker_process.py
diff options
context:
space:
mode:
authorJingLu5 <lvjing5@huawei.com>2017-06-21 10:07:41 +0000
committerKubi <jean.gaoliang@huawei.com>2017-06-22 13:07:23 +0000
commitf92c10a994a2818d8e03ac0be35c6d697530bcb3 (patch)
tree398ae33383589771d1dcaf64fc0a989d318f4933 /yardstick/benchmark/scenarios/availability/attacker/attacker_process.py
parent9ae5680998c044bd4d9e39c6dba24ac55c252dd7 (diff)
HA testcase improvement
This patch improve HA test case in the following aspects: 1. the "GeneralHA" type now will check if the target service process in the controller node. 2. support ignore server certificate 3. add debug log for recovering service failed 4. improve method to kill keystone process Change-Id: I9ae7ab54391fe41d5d7f3e4951a7ac2e3ba75968 Signed-off-by: JingLu5 <lvjing5@huawei.com> (cherry picked from commit 5b99f1532ec4d15258ec86e970acd2904954b3bc)
Diffstat (limited to 'yardstick/benchmark/scenarios/availability/attacker/attacker_process.py')
-rw-r--r--yardstick/benchmark/scenarios/availability/attacker/attacker_process.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/yardstick/benchmark/scenarios/availability/attacker/attacker_process.py b/yardstick/benchmark/scenarios/availability/attacker/attacker_process.py
index e0e6cf3bf..f7ab23dcd 100644
--- a/yardstick/benchmark/scenarios/availability/attacker/attacker_process.py
+++ b/yardstick/benchmark/scenarios/availability/attacker/attacker_process.py
@@ -66,3 +66,5 @@ class ProcessAttacker(BaseAttacker):
exit_status, stdout, stderr = self.connection.execute(
"sudo /bin/bash -s {0} ".format(self.service_name),
stdin=stdin_file)
+ if exit_status:
+ LOG.info("Fail to restart service!")