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 TC057 :OpenStack Controller Cluster Management Service High
15 This test case is written by scenario-based HA testing framework.
17 {% set file = file or '/etc/yardstick/pod.yaml' %}
18 {% set vip_mgmt = vip_mgmt or 'vip__management' %}
19 {% set vip_vrouter = vip_vrouter or 'vip__vrouter' %}
20 {% set attack_host = attack_host or 'node1' %}
21 {% set check_host = check_host or 'node2' %}
22 {% set monitor_time = monitor_time or 10 %}
23 {% set monitor_number = monitor_number or 3 %}
31 fault_type: "general-attacker"
34 attack_key: "kill-corosync"
36 process_name: "corosync"
40 monitor_type: "openstack-cmd"
41 key: "check-nova-service"
42 command_name: "openstack image list"
43 monitor_time: {{monitor_time}}
44 monitor_number: {{monitor_number}}
49 monitor_type: "openstack-cmd"
50 key: "check-neutron-service"
51 command_name: "openstack network list"
52 monitor_time: {{monitor_time}}
53 monitor_number: {{monitor_number}}
58 monitor_type: "openstack-cmd"
59 key: "check-keystone-service"
60 command_name: "openstack user list"
61 monitor_time: {{monitor_time}}
62 monitor_number: {{monitor_number}}
67 monitor_type: "openstack-cmd"
68 key: "check-heat-service"
69 command_name: "openstack stack list"
70 monitor_time: {{monitor_time}}
71 monitor_number: {{monitor_number}}
77 operation_type: "general-operation"
78 key: "get-mgmt-vip-host"
79 operation_key: "get-vip-host"
82 vip_name: {{vip_mgmt}}
87 operation_type: "general-operation"
88 key: "get-router-vip-host"
89 operation_key: "get-vip-host"
92 vip_name: {{vip_vrouter}}
94 all: "@vip_router_host"
98 checker_type: "general-result-checker"
99 key: "check-rabbitmq-master"
100 checker_key: "pacemaker-resource-checker"
103 resource_name: "p_rabbitmq-server"
104 resource_host: "@vip_mgmt_host"
105 expectedValue: "Masters"
109 checker_type: "general-result-checker"
110 key: "check-conntrackd-master"
111 checker_key: "pacemaker-resource-checker"
114 resource_name: "p_conntrackd"
115 resource_host: "@vip_router_host"
116 expectedValue: "Masters"
121 actionKey: "kill-process"
122 actionType: "attacker"
126 actionKey: "check-nova-service"
127 actionType: "monitor"
131 actionKey: "check-neutron-service"
132 actionType: "monitor"
136 actionKey: "check-keystone-service"
137 actionType: "monitor"
141 actionKey: "check-heat-service"
142 actionType: "monitor"
146 actionKey: "get-mgmt-vip-host"
147 actionType: "operation"
151 actionKey: "check-rabbitmq-master"
152 actionType: "resultchecker"
156 actionKey: "get-router-vip-host"
157 actionType: "operation"
161 actionKey: "check-conntrackd-master"
162 actionType: "resultchecker"
167 {{attack_host}}: {{attack_host}}.LF
168 {{check_host}}: {{check_host}}.LF