bcf5902fa301136bf65ddcd2017e70264d97414d
[yardstick.git] / tests / opnfv / test_cases / opnfv_yardstick_tc053.yaml
1 ##############################################################################
2 # Copyright (c) 2017 14_ykl@tongji.edu.cn and others.
3 #
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9 ---
10
11 schema: "yardstick:task:0.1"
12 description: >
13     Yardstick TC053 config file;
14     HA test case: Openstack Controller Load Balance Service High Availability.
15
16 {% set file = file or '/etc/yardstick/pod.yaml' %}
17 {% set attack_host = attack_host or "node1" %}
18
19 scenarios:
20   -
21     type: "GeneralHA"
22     options:
23       attackers:
24         -
25           fault_type: "kill-process"
26           host: {{attack_host}}
27           key: "kill-process"
28           process_name: "haproxy"
29
30       monitors:
31         -
32           monitor_type: "process"
33           key: "service-status"
34           process_name: "haproxy"
35           host: {{attack_host}}
36           monitor_time: 30
37           monitor_number: 3
38           sla:
39             max_recover_time: 30
40
41         -
42           monitor_type: "openstack-cmd"
43           key: "list-images"
44           command_name: "openstack image list"
45           monitor_time: 10
46           monitor_number: 3
47           sla:
48             max_outage_time: 5
49
50       steps:
51         -
52           actionKey: "kill-process"
53           actionType: "attacker"
54           index: 1
55         -
56           actionKey: "service-status"
57           actionType: "monitor"
58           index: 2
59         -
60           actionKey: "list-images"
61           actionType: "monitor"
62           index: 3
63
64     nodes:
65       {{attack_host}}: {{attack_host}}.LF
66     runner:
67       type: Duration
68       duration: 1
69     sla:
70       outage_time: 5
71       action: monitor
72
73 context:
74   type: Node
75   name: LF
76   file: {{file}}