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