Merge "Update missing license headers"
[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     Test case for TC050 :OpenStack Controller Node Network High Availability;
14     This test case is written by new scenario-based HA testing framework.
15
16 scenarios:
17   -
18     type: "GeneralHA"
19     options:
20       attackers:
21         -
22           fault_type: "general-attacker"
23           host: node1
24           key: "close-br-public"
25           attack_key: "close-interface"
26           action_parameter:
27             interface: "br-ex"
28           rollback_parameter:
29             interface: "br-ex"
30
31         -
32           fault_type: "general-attacker"
33           host: node1
34           key: "close-br-mgmt"
35           attack_key: "close-interface"
36           action_parameter:
37             interface: "br-mgmt"
38           rollback_parameter:
39             interface: "br-mgmt"
40
41         -
42           fault_type: "general-attacker"
43           host: node1
44           key: "close-br-storage"
45           attack_key: "close-interface"
46           action_parameter:
47             interface: "br-storage"
48           rollback_parameter:
49             interface: "br-storage"
50
51         -
52           fault_type: "general-attacker"
53           host: node1
54           key: "close-br-private"
55           attack_key: "close-interface"
56           action_parameter:
57             interface: "br-mesh"
58           rollback_parameter:
59             interface: "br-mesh"
60
61       monitors:
62         -
63           monitor_type: "openstack-cmd"
64           key: "nova-image-list"
65           command_name: "openstack image list"
66           monitor_time: 10
67           sla:
68             max_outage_time: 5
69
70         -
71           monitor_type: "openstack-cmd"
72           key: "neutron-router-list"
73           command_name: "openstack router list"
74           monitor_time: 10
75           sla:
76             max_outage_time: 5
77
78         -
79           monitor_type: "openstack-cmd"
80           key: "heat-stack-list"
81           command_name: "openstack stack list"
82           monitor_time: 10
83           sla:
84             max_outage_time: 5
85
86         -
87           monitor_type: "openstack-cmd"
88           key: "cinder-list"
89           command_name: "openstack volume list"
90           monitor_time: 10
91           sla:
92             max_outage_time: 5
93
94
95       steps:
96         -
97           actionKey: "close-br-public"
98           actionType: "attacker"
99           index: 1
100
101         -
102           actionKey: "close-br-mgmt"
103           actionType: "attacker"
104           index: 2
105
106         -
107           actionKey: "close-br-storage"
108           actionType: "attacker"
109           index: 3
110
111         -
112           actionKey: "close-br-private"
113           actionType: "attacker"
114           index: 4
115
116         -
117           actionKey: "nova-image-list"
118           actionType: "monitor"
119           index: 5
120
121         -
122           actionKey: "neutron-router-list"
123           actionType: "monitor"
124           index: 6
125
126         -
127           actionKey: "heat-stack-list"
128           actionType: "monitor"
129           index: 7
130
131         -
132           actionKey: "cinder-list"
133           actionType: "monitor"
134           index: 8
135
136
137     nodes:
138       node1: node1.LF
139     runner:
140       type: Duration
141       duration: 1
142     sla:
143       outage_time: 5
144       action: monitor
145
146 context:
147   type: Node
148   name: LF
149   file: etc/yardstick/nodes/fuel_virtual/pod.yaml