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