1 .. This work is licensed under a Creative Commons Attribution 4.0 International
3 .. http://creativecommons.org/licenses/by/4.0
4 .. (c) OPNFV, Huawei Technologies Co.,Ltd and others.
6 *************************************
7 Yardstick Test Case Description TC025
8 *************************************
10 +-----------------------------------------------------------------------------+
11 |OpenStack Controller Node abnormally shutdown High Availability |
13 +--------------+--------------------------------------------------------------+
14 |test case id | OPNFV_YARDSTICK_TC025_HA: OpenStack Controller Node |
15 | | abnormally shutdown |
17 +--------------+--------------------------------------------------------------+
18 |test purpose | This test case will verify the high availability of |
19 | | controller node. When one of the controller node abnormally |
20 | | shutdown, the service provided by it should be OK. |
22 +--------------+--------------------------------------------------------------+
23 |test method | This test case shutdowns a specified controller node with |
24 | | some fault injection tools, then checks whether all services |
25 | | provided by the controller node are OK with some monitor |
28 +--------------+--------------------------------------------------------------+
29 |attackers | In this test case, an attacker called "host-shutdown" is |
30 | | needed. This attacker includes two parameters: |
31 | | 1) fault_type: which is used for finding the attacker's |
32 | | scripts. It should be always set to "host-shutdown" in |
34 | | 2) host: the name of a controller node being attacked. |
37 | | -fault_type: "host-shutdown" |
40 +--------------+--------------------------------------------------------------+
41 |monitors | In this test case, one kind of monitor are needed: |
43 | | 1. the "openstack-cmd" monitor constantly request a specific |
44 | | Openstack command, which needs two parameters |
46 | | 1) monitor_type: which is used for finding the monitor |
47 | | class and related scripts. It should be always set to |
48 | | "openstack-cmd" for this monitor. |
49 | | 2) command_name: which is the command name used for |
52 | | There are four instance of the "openstack-cmd" monitor: |
54 | | -monitor_type: "openstack-cmd" |
55 | | -api_name: "nova image-list" |
57 | | -monitor_type: "openstack-cmd" |
58 | | -api_name: "neutron router-list" |
60 | | -monitor_type: "openstack-cmd" |
61 | | -api_name: "heat stack-list" |
63 | | -monitor_type: "openstack-cmd" |
64 | | -api_name: "cinder list" |
66 +--------------+--------------------------------------------------------------+
67 |metrics | In this test case, there is one metric: |
68 | | 1)service_outage_time: which indicates the maximum outage |
69 | | time (seconds) of the specified Openstack command request. |
71 +--------------+--------------------------------------------------------------+
72 |test tool | Developed by the project. Please see folder: |
73 | | "yardstick/benchmark/scenarios/availability/ha_tools" |
75 +--------------+--------------------------------------------------------------+
76 |references | ETSI NFV REL001 |
78 +--------------+--------------------------------------------------------------+
79 |configuration | This test case needs two configuration files: |
80 | | 1) test case file: opnfv_yardstick_tc019.yaml |
81 | | -Attackers: see above "attackers" discription |
82 | | -waiting_time: which is the time (seconds) from the process |
83 | | being killed to stoping monitors the monitors |
84 | | -Monitors: see above "monitors" discription |
85 | | -SLA: see above "metrics" discription |
87 | | 2)POD file: pod.yaml |
88 | | The POD configuration should record on pod.yaml first. |
89 | | the "host" item in this test case will use the node name in |
92 +--------------+--------------------------------------------------------------+
93 |test sequence | description and expected result |
95 +--------------+--------------------------------------------------------------+
96 |step 1 | start monitors: |
97 | | each monitor will run with independently process |
99 | | Result: The monitor info will be collected. |
101 +--------------+--------------------------------------------------------------+
102 |step 2 | do attacker: connect the host through SSH, and then execute |
103 | | shutdown script on the host |
105 | | Result: The host will be shutdown. |
107 +--------------+--------------------------------------------------------------+
108 |step 3 | stop monitors after a period of time specified by |
111 | | Result: All monitor result will be aggregated. |
113 +--------------+--------------------------------------------------------------+
114 |step 4 | verify the SLA |
116 | | Result: The test case is passed or not. |
118 +--------------+--------------------------------------------------------------+
119 |post-action | It is the action when the test cases exist. It restarts the |
120 | | specified controller node if it is not restarted. |
122 +--------------+--------------------------------------------------------------+
123 |test verdict | Fails only if SLA is not passed, or if there is a test case |
124 | | execution problem. |
126 +--------------+--------------------------------------------------------------+