Merge "Bugfix:HA test cases rely on dynamic ip addresses in fuel pods"
[yardstick.git] / tests / opnfv / test_cases / opnfv_yardstick_tc054.yaml
1 ##############################################################################
2 # Copyright (c) 2017 14_ykl@tongji.edu.cn and others.
3 #
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 ##############################################################################
9 ---
10
11 schema: "yardstick:task:0.1"
12 description: >
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.
15
16 {% set file = file or 'etc/yardstick/nodes/fuel_baremetal/pod.yaml' %}
17
18 scenarios:
19   -
20     type: "GeneralHA"
21     options:
22       attackers:
23         -
24           fault_type: "bare-metal-down"
25           host: node1
26           key: "bare-metal-down"
27
28       monitors:
29         -
30           monitor_type: "openstack-cmd"
31           key: "list-images"
32           command_name: "openstack image list"
33           monitor_time: 10
34           sla:
35             max_outage_time: 5
36
37         -
38           monitor_type: "general-monitor"
39           monitor_key: "ip-status"
40           key: "vip-mgmt-status"
41           host: node2
42           monitor_time: 10
43           sla:
44             max_outage_time: 5
45           parameter:
46             ip_address: "192.168.0.2"
47
48         -
49           monitor_type: "general-monitor"
50           monitor_key: "ip-status"
51           key: "vip-routerp-status"
52           host: node2
53           monitor_time: 10
54           sla:
55             max_outage_time: 5
56           parameter:
57             ip_address: "172.16.0.2"
58
59         -
60           monitor_type: "general-monitor"
61           monitor_key: "ip-status"
62           key: "vip-router-status"
63           host: node2
64           monitor_time: 10
65           sla:
66             max_outage_time: 5
67           parameter:
68             ip_address: "192.168.0.1"
69
70         -
71           monitor_type: "general-monitor"
72           monitor_key: "ip-status"
73           key: "vip-pub"
74           host: node2
75           monitor_time: 10
76           sla:
77             max_outage_time: 5
78           parameter:
79             ip_address: "172.16.0.3"
80
81
82       steps:
83         -
84           actionKey: "bare-metal-down"
85           actionType: "attacker"
86           index: 1
87         -
88           actionKey: "list-images"
89           actionType: "monitor"
90           index: 2
91
92         -
93           actionKey: "vip-mgmt-status"
94           actionType: "monitor"
95           index: 3
96
97         -
98           actionKey: "vip-routerp-status"
99           actionType: "monitor"
100           index: 4
101
102         -
103           actionKey: "vip-router-status"
104           actionType: "monitor"
105           index: 5
106
107         -
108           actionKey: "vip-pub"
109           actionType: "monitor"
110           index: 6
111
112     nodes:
113       node1: node1.LF
114       node2: node2.LF
115     runner:
116       type: Duration
117       duration: 1
118     sla:
119       outage_time: 5
120       action: monitor
121
122 context:
123   type: Node
124   name: LF
125   file: {{file}}