From 53a96f499680587dc2f6172a964af35f9ce1c74b Mon Sep 17 00:00:00 2001 From: wym_libra Date: Mon, 7 Dec 2015 16:02:18 +0800 Subject: Rewrite the HA test case (1) refactor the attacker implement. 1) BaseAttacker is added 2) a simple attacker named "kill-process" inherit the BaseAttacker 3) serviceha.py selects an attacker through the BaseAttacker by attacker name JIRA: YARDSTICK-149 Change-Id: Ib718d5edc6b5e14bc3ea0592e0146468ff70b43e Signed-off-by: wym_libra --- samples/serviceha.yaml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'samples/serviceha.yaml') diff --git a/samples/serviceha.yaml b/samples/serviceha.yaml index 424732189..ce4fefa23 100755 --- a/samples/serviceha.yaml +++ b/samples/serviceha.yaml @@ -7,15 +7,20 @@ scenarios: - type: ServiceHA options: - component: "nova-api" - fault_type: "stop-service" - fault_time: 5 + attackers: + - fault_type: "kill-process" + process_name: "nova-api" + host: node1 - host: node1.LF + monitors: + - monitor_cmd: "nova image-list" + monitor_time: 10 + nodes: + node1: node1.LF runner: type: Duration - duration: 6 + duration: 1 sla: outage_time: 5 action: monitor -- cgit 1.2.3-korg