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 TC054 :OpenStack VIP Master Node abnormally shutdown High Availability;
14 This test case is written by new scenario-based HA testing framework.
16 {% set attack_host = attack_host or 'node1' %}
17 {% set check_host = check_host or 'node2' %}
18 {% set jump_host = jump_host or 'node0' %}
19 {% set file = file or '/etc/yardstick/pod.yaml' %}
20 {% set vip_management = vip_management or '192.168.0.2' %}
21 {% set vip_public = vip_public or '172.16.0.3' %}
22 {% set vip_router_management = vip_router_management or '192.168.0.1' %}
23 {% set vip_router_public = vip_router_public or '172.16.0.2' %}
24 {% set monitor_time = monitor_time or 180 %}
32 fault_type: "bare-metal-down"
34 key: "bare-metal-down"
35 jump_host: {{jump_host}}
39 monitor_type: "openstack-cmd"
41 command_name: "openstack image list"
42 monitor_time: {{monitor_time}}
48 monitor_type: "general-monitor"
49 monitor_key: "ip-status"
50 key: "vip-mgmt-status"
52 monitor_time: {{monitor_time}}
57 ip_address: {{vip_management}}
60 monitor_type: "general-monitor"
61 monitor_key: "ip-status"
62 key: "vip-routerp-status"
64 monitor_time: {{monitor_time}}
69 ip_address: {{vip_router_public}}
72 monitor_type: "general-monitor"
73 monitor_key: "ip-status"
74 key: "vip-router-status"
76 monitor_time: {{monitor_time}}
81 ip_address: {{vip_router_management}}
84 monitor_type: "general-monitor"
85 monitor_key: "ip-status"
88 monitor_time: {{monitor_time}}
93 ip_address: {{vip_public}}
98 actionKey: "bare-metal-down"
99 actionType: "attacker"
102 actionKey: "list-images"
103 actionType: "monitor"
107 actionKey: "vip-mgmt-status"
108 actionType: "monitor"
112 actionKey: "vip-routerp-status"
113 actionType: "monitor"
117 actionKey: "vip-router-status"
118 actionType: "monitor"
123 actionType: "monitor"
127 {{jump_host}}: {{jump_host}}.LF
128 {{attack_host}}: {{attack_host}}.LF
129 {{check_host}}: {{check_host}}.LF