aboutsummaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorwym_libra <yimin.wang@huawei.com>2015-12-07 16:02:18 +0800
committerwym_libra <yimin.wang@huawei.com>2015-12-18 10:09:08 +0800
commit53a96f499680587dc2f6172a964af35f9ce1c74b (patch)
tree0e6326ee1bd7d8e99c0c8ddc3cd0a9b50bb1dc6b /samples
parent05c1840c9c4dda154c9c5d00ff3cd23ba202330b (diff)
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 <yimin.wang@huawei.com>
Diffstat (limited to 'samples')
-rwxr-xr-xsamples/serviceha.yaml15
1 files changed, 10 insertions, 5 deletions
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