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 Yardstick TC057 config file;
14 HA test case: OpenStack Controller Cluster Management Service High Availability.
16 {% set file = file or '/etc/yardstick/pod.yaml' %}
17 {% set vip_mgmt = vip_mgmt or 'vip__management' %}
18 {% set vip_vrouter = vip_vrouter or 'vip__vrouter' %}
19 {% set attack_host = attack_host or 'node1' %}
20 {% set check_host = check_host or 'node2' %}
21 {% set monitor_time = monitor_time or 10 %}
22 {% set monitor_number = monitor_number or 3 %}
30 fault_type: "general-attacker"
33 attack_key: "kill-corosync"
35 process_name: "corosync"
39 monitor_type: "openstack-cmd"
40 key: "check-nova-service"
41 command_name: "openstack image list"
42 monitor_time: {{monitor_time}}
43 monitor_number: {{monitor_number}}
48 monitor_type: "openstack-cmd"
49 key: "check-neutron-service"
50 command_name: "openstack network list"
51 monitor_time: {{monitor_time}}
52 monitor_number: {{monitor_number}}
57 monitor_type: "openstack-cmd"
58 key: "check-keystone-service"
59 command_name: "openstack user list"
60 monitor_time: {{monitor_time}}
61 monitor_number: {{monitor_number}}
66 monitor_type: "openstack-cmd"
67 key: "check-heat-service"
68 command_name: "openstack stack list"
69 monitor_time: {{monitor_time}}
70 monitor_number: {{monitor_number}}
76 operation_type: "general-operation"
77 key: "get-mgmt-vip-host"
78 operation_key: "get-vip-host"
81 vip_name: {{vip_mgmt}}
86 operation_type: "general-operation"
87 key: "get-router-vip-host"
88 operation_key: "get-vip-host"
91 vip_name: {{vip_vrouter}}
93 all: "@vip_router_host"
97 checker_type: "general-result-checker"
98 key: "check-rabbitmq-master"
99 checker_key: "pacemaker-resource-checker"
102 resource_name: "p_rabbitmq-server"
103 resource_host: "@vip_mgmt_host"
104 expectedValue: "Masters"
108 checker_type: "general-result-checker"
109 key: "check-conntrackd-master"
110 checker_key: "pacemaker-resource-checker"
113 resource_name: "p_conntrackd"
114 resource_host: "@vip_router_host"
115 expectedValue: "Masters"
120 actionKey: "kill-process"
121 actionType: "attacker"
125 actionKey: "check-nova-service"
126 actionType: "monitor"
130 actionKey: "check-neutron-service"
131 actionType: "monitor"
135 actionKey: "check-keystone-service"
136 actionType: "monitor"
140 actionKey: "check-heat-service"
141 actionType: "monitor"
145 actionKey: "get-mgmt-vip-host"
146 actionType: "operation"
150 actionKey: "check-rabbitmq-master"
151 actionType: "resultchecker"
155 actionKey: "get-router-vip-host"
156 actionType: "operation"
160 actionKey: "check-conntrackd-master"
161 actionType: "resultchecker"
166 {{attack_host}}: {{attack_host}}.LF
167 {{check_host}}: {{check_host}}.LF