1 ##############################################################################
2 ## Copyright (c) 2018 Intracom Telecom and others.
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 ###############################################################################
11 schema: "yardstick:task:0.1"
13 Yardstick TC093 config file;
14 SDN Vswitch resilience in non-HA or HA configuration
16 {% set file = file or '/etc/yardstick/pod.yaml' %}
17 {% set attack_host_cmp_one = attack_host_cmp_one or 'node4' %}
18 {% set attack_host_cmp_two = attack_host_cmp_two or 'node5' %}
19 {% set systemd_service_name = systemd_service_name or 'openvswitch-switch'%}
28 - monitor_type: "general-monitor"
29 monitor_key: "ip-status"
36 destination_ip: "8.8.8.8"
38 - monitor_type: "general-monitor"
39 monitor_key: "ip-status"
46 destination_ip: "@private_ip"
49 - operation_type: "general-operation"
51 operation_key: "get-privateip"
59 - actionKey: "get-privateip"
60 actionType: "operation"
73 athena: athena.ODLnoHA1
86 fault_type: "kill-process"
87 process_name: "openvswitch"
88 key: "kill-process-cmp-one"
89 host: {{attack_host_cmp_one}}
92 fault_type: "kill-process"
93 process_name: "openvswitch"
94 key: "kill-process-cmp-two"
95 host: {{attack_host_cmp_two}}
98 - monitor_type: "process"
99 process_name: "openvswitch"
100 host: {{attack_host_cmp_one}}
101 key: "monitor-recovery-cmp-one"
106 - monitor_type: "process"
107 process_name: "openvswitch"
108 host: {{attack_host_cmp_two}}
109 key: "monitor-recovery-cmp-two"
114 - monitor_type: "general-monitor"
115 monitor_key: "ip-status"
122 destination_ip: "8.8.8.8"
124 - monitor_type: "general-monitor"
125 monitor_key: "ip-status"
132 destination_ip: "@private_ip"
135 - operation_type: "general-operation"
136 key: "restart-service-cmp-one"
137 host: {{attack_host_cmp_one}}
138 operation_key: "start-service"
140 service: {{systemd_service_name ~ " restart"}}
142 service: "openvswitch"
144 - operation_type: "general-operation"
145 key: "restart-service-cmp-two"
146 host: {{attack_host_cmp_two}}
147 operation_key: "start-service"
149 service: {{systemd_service_name ~ " restart"}}
151 service: "openvswitch"
153 - operation_type: "general-operation"
155 operation_key: "get-privateip"
165 - actionKey: "get-privateip"
166 actionType: "operation"
170 actionType: "monitor"
174 actionType: "monitor"
177 - actionKey: "kill-process-cmp-one"
178 actionType: "attacker"
181 - actionKey: "kill-process-cmp-two"
182 actionType: "attacker"
185 - actionKey: "monitor-recovery-cmp-one"
186 actionType: "monitor"
189 - actionKey: "monitor-recovery-cmp-two"
190 actionType: "monitor"
194 - actionKey: "restart-service-cmp-one"
195 actionType: "operation"
198 - actionKey: "restart-service-cmp-two"
199 actionType: "operation"
204 {{attack_host_cmp_one}}: {{attack_host_cmp_one}}.LF
205 {{attack_host_cmp_two}}: {{attack_host_cmp_two}}.LF
206 athena: athena.ODLnoHA1
218 - monitor_type: "general-monitor"
219 monitor_key: "ip-status"
226 destination_ip: "@private_ip"
229 - operation_type: "general-operation"
231 operation_key: "get-privateip"
233 server_name: "hermes"
237 - operation_type: "general-operation"
238 key: "nova-create-instance"
239 operation_key: "nova-create-instance"
241 serverconfig: "hermes yardstick-image yardstick-flavor test_one"
243 serverconfig: "hermes"
245 - operation_type: "general-operation"
246 key: "add-server-to-secgroup"
247 operation_key: "add-server-to-secgroup"
249 serverconfig: "hermes ODLnoHA1"
251 serverconfig: "hermes ODLnoHA1"
255 - actionKey: "nova-create-instance"
256 actionType: "operation"
259 - actionKey: "add-server-to-secgroup"
260 actionType: "operation"
263 - actionKey: "get-privateip"
264 actionType: "operation"
268 actionType: "monitor"
272 athena: athena.ODLnoHA1
287 image: yardstick-image
288 flavor: yardstick-flavor
293 policy: "availability"
312 router: 'test_router'