Merge "Add uefi image support for yardstick"
[yardstick.git] / tests / opnfv / test_cases / opnfv_yardstick_tc051.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 TC051 :OpenStack Controller Node CPU Overload High Availability;
14     This test case is written by new scenario-based HA testing framework.
15
16 scenarios:
17   -
18     type: "GeneralHA"
19     options:
20       attackers:
21         -
22           fault_type: "general-attacker"
23           host: node1
24           key: "stress-cpu"
25           attack_key: "stress-cpu"
26
27       monitors:
28         -
29           monitor_type: "openstack-cmd"
30           key: "nova-image-list"
31           command_name: "openstack image list"
32           monitor_time: 10
33           sla:
34             max_outage_time: 5
35
36         -
37           monitor_type: "openstack-cmd"
38           key: "neutron-router-list"
39           command_name: "openstack router list"
40           monitor_time: 10
41           sla:
42             max_outage_time: 5
43
44         -
45           monitor_type: "openstack-cmd"
46           key: "heat-stack-list"
47           command_name: "openstack stack list"
48           monitor_time: 10
49           sla:
50             max_outage_time: 5
51
52         -
53           monitor_type: "openstack-cmd"
54           key: "cinder-list"
55           command_name: "openstack volume list"
56           monitor_time: 10
57           sla:
58             max_outage_time: 5
59
60
61       steps:
62         -
63           actionKey: "stress-cpu"
64           actionType: "attacker"
65           index: 1
66
67         -
68           actionKey: "nova-image-list"
69           actionType: "monitor"
70           index: 2
71
72         -
73           actionKey: "neutron-router-list"
74           actionType: "monitor"
75           index: 3
76
77         -
78           actionKey: "heat-stack-list"
79           actionType: "monitor"
80           index: 4
81
82         -
83           actionKey: "cinder-list"
84           actionType: "monitor"
85           index: 5
86
87
88     nodes:
89       node1: node1.LF
90     runner:
91       type: Duration
92       duration: 1
93     sla:
94       outage_time: 5
95       action: monitor
96
97 context:
98   type: Node
99   name: LF
100   file: etc/yardstick/nodes/fuel_virtual/pod.yaml