1 ##############################################################################
2 # Copyright (c) 2017 14_ykl@tongji.edu.cn 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 Test case for TC050 :OpenStack Controller Node Network High Availability;
14 This test case is written by new scenario-based HA testing framework.
16 {% set file = file or '/etc/yardstick/pod.yaml' %}
17 {% set attack_host = attack_host or "node1" %}
18 {% set external_net = external_net or 'br-ex' %}
19 {% set management_net = management_net or 'br-mgmt' %}
20 {% set storage_net = storage_net or 'br-storage' %}
21 {% set internal_net = internal_net or 'br-mesh' %}
29 fault_type: "general-attacker"
31 key: "close-br-public"
32 attack_key: "close-interface"
34 interface: {{external_net}}
36 interface: {{external_net}}
39 fault_type: "general-attacker"
42 attack_key: "close-interface"
44 interface: {{management_net}}
46 interface: {{management_net}}
49 fault_type: "general-attacker"
51 key: "close-br-storage"
52 attack_key: "close-interface"
54 interface: {{storage_net}}
56 interface: {{storage_net}}
59 fault_type: "general-attacker"
61 key: "close-br-private"
62 attack_key: "close-interface"
64 interface: {{internal_net}}
66 interface: {{internal_net}}
70 monitor_type: "openstack-cmd"
71 key: "nova-image-list"
72 command_name: "openstack image list"
79 monitor_type: "openstack-cmd"
80 key: "neutron-router-list"
81 command_name: "openstack router list"
88 monitor_type: "openstack-cmd"
89 key: "heat-stack-list"
90 command_name: "openstack stack list"
97 monitor_type: "openstack-cmd"
99 command_name: "openstack volume list"
108 actionKey: "close-br-public"
109 actionType: "attacker"
113 actionKey: "close-br-mgmt"
114 actionType: "attacker"
118 actionKey: "close-br-storage"
119 actionType: "attacker"
123 actionKey: "close-br-private"
124 actionType: "attacker"
128 actionKey: "nova-image-list"
129 actionType: "monitor"
133 actionKey: "neutron-router-list"
134 actionType: "monitor"
138 actionKey: "heat-stack-list"
139 actionType: "monitor"
143 actionKey: "cinder-list"
144 actionType: "monitor"
149 {{attack_host}}: {{attack_host}}.LF