Merge "[docs] Transition to local docs build job."
[yardstick.git] / tests / opnfv / test_cases / opnfv_yardstick_tc050.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 TC050 config file;
14     HA test case: OpenStack Controller Node Network High Availability.
15
16 {% set attack_host = attack_host or "node1" %}
17 {% set interface_name = interface_name or 'br-mgmt' %}
18 {% set file = file or '/etc/yardstick/pod.yaml' %}
19
20 scenarios:
21   -
22     type: "GeneralHA"
23     options:
24       attackers:
25         -
26           fault_type: "general-attacker"
27           host: {{ attack_host }}
28           key: "close-br-public"
29           attack_key: "close-interface"
30           action_parameter:
31             interface: {{ interface_name }}
32           rollback_parameter:
33             interface: {{ interface_name }}
34
35       monitors:
36         -
37           monitor_type: "openstack-cmd"
38           key: "nova-image-list"
39           command_name: "openstack image list"
40           monitor_time: 10
41           monitor_number: 3
42           sla:
43             max_outage_time: 5
44
45         -
46           monitor_type: "openstack-cmd"
47           key: "neutron-router-list"
48           command_name: "openstack router list"
49           monitor_time: 10
50           monitor_number: 3
51           sla:
52             max_outage_time: 5
53
54         -
55           monitor_type: "openstack-cmd"
56           key: "heat-stack-list"
57           command_name: "openstack stack list"
58           monitor_time: 10
59           monitor_number: 3
60           sla:
61             max_outage_time: 5
62
63         -
64           monitor_type: "openstack-cmd"
65           key: "cinder-list"
66           command_name: "openstack volume list"
67           monitor_time: 10
68           monitor_number: 3
69           sla:
70             max_outage_time: 5
71
72
73       steps:
74         -
75           actionKey: "nova-image-list"
76           actionType: "monitor"
77           index: 1
78
79         -
80           actionKey: "neutron-router-list"
81           actionType: "monitor"
82           index: 2
83
84         -
85           actionKey: "heat-stack-list"
86           actionType: "monitor"
87           index: 3
88
89         -
90           actionKey: "cinder-list"
91           actionType: "monitor"
92           index: 4
93
94         -
95           actionKey: "close-br-public"
96           actionType: "attacker"
97           index: 5
98
99
100
101     nodes:
102       {{ attack_host }}: {{ attack_host }}.LF
103     runner:
104       type: Duration
105       duration: 1
106     sla:
107       outage_time: 5
108       action: monitor
109
110 context:
111   type: Node
112   name: LF
113   file: {{ file }}