Merge "Add test case description and task file for TC054"
[yardstick.git] / tests / opnfv / test_cases / opnfv_yardstick_tc054.yaml
1 ---
2 # Test case for TC054 :OpenStack VIP Master Node abnormally shutdown High Availability
3 # This test case is written by new scenario-based HA testing framework
4
5 schema: "yardstick:task:0.1"
6 scenarios:
7   -
8     type: "GeneralHA"
9     options:
10       attackers:
11         -
12           fault_type: "bare-metal-down"
13           host: node1
14           key: "bare-metal-down"
15
16       monitors:
17         -
18           monitor_type: "openstack-cmd"
19           key: "list-images"
20           command_name: "nova image-list"
21           monitor_time: 10
22           sla:
23             max_outage_time: 5
24
25         -
26           monitor_type: "general-monitor"
27           monitor_key: "ip-status"
28           key: "vip-mgmt-status"
29           host: node2
30           monitor_time: 10
31           sla:
32             max_outage_time: 5
33           parameter:
34             ip_address: "192.168.0.2"
35
36         -
37           monitor_type: "general-monitor"
38           monitor_key: "ip-status"
39           key: "vip-routerp-status"
40           host: node2
41           monitor_time: 10
42           sla:
43             max_outage_time: 5
44           parameter:
45             ip_address: "172.16.0.2"
46
47         -
48           monitor_type: "general-monitor"
49           monitor_key: "ip-status"
50           key: "vip-router-status"
51           host: node2
52           monitor_time: 10
53           sla:
54             max_outage_time: 5
55           parameter:
56             ip_address: "192.168.0.1"
57
58         -
59           monitor_type: "general-monitor"
60           monitor_key: "ip-status"
61           key: "vip-pub"
62           host: node2
63           monitor_time: 10
64           sla:
65             max_outage_time: 5
66           parameter:
67             ip_address: "172.16.0.3"
68
69
70       steps:
71         -
72           actionKey: "bare-metal-down"
73           actionType: "attacker"
74           index: 1
75         -
76           actionKey: "list-images"
77           actionType: "monitor"
78           index: 2
79
80         -
81           actionKey: "vip-mgmt-status"
82           actionType: "monitor"
83           index: 3
84
85         -
86           actionKey: "vip-routerp-status"
87           actionType: "monitor"
88           index: 4
89
90         -
91           actionKey: "vip-router-status"
92           actionType: "monitor"
93           index: 5
94
95         -
96           actionKey: "vip-pub"
97           actionType: "monitor"
98           index: 6
99
100     nodes:
101       node1: node1.LF
102       node2: node2.LF
103     runner:
104       type: Duration
105       duration: 1
106     sla:
107       outage_time: 5
108       action: monitor
109
110 context:
111   type: Node
112   name: LF
113   file: etc/yardstick/nodes/fuel_virtual/pod.yaml