Merge "Test case: Fio volume benchmark testcase using job file"
[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 {% set file = file or '/etc/yardstick/pod.yaml' %}
17
18 scenarios:
19   -
20     type: "GeneralHA"
21     options:
22       attackers:
23         -
24           fault_type: "general-attacker"
25           host: node1
26           key: "stress-cpu"
27           attack_key: "stress-cpu"
28
29       monitors:
30         -
31           monitor_type: "openstack-cmd"
32           key: "nova-image-list"
33           command_name: "openstack image list"
34           monitor_time: 10
35           monitor_number: 3
36           sla:
37             max_outage_time: 5
38
39         -
40           monitor_type: "openstack-cmd"
41           key: "neutron-router-list"
42           command_name: "openstack router list"
43           monitor_time: 10
44           monitor_number: 3
45           sla:
46             max_outage_time: 5
47
48         -
49           monitor_type: "openstack-cmd"
50           key: "heat-stack-list"
51           command_name: "openstack stack list"
52           monitor_time: 10
53           monitor_number: 3
54           sla:
55             max_outage_time: 5
56
57         -
58           monitor_type: "openstack-cmd"
59           key: "cinder-list"
60           command_name: "openstack volume list"
61           monitor_time: 10
62           monitor_number: 3
63           sla:
64             max_outage_time: 5
65
66
67       steps:
68         -
69           actionKey: "stress-cpu"
70           actionType: "attacker"
71           index: 1
72
73         -
74           actionKey: "nova-image-list"
75           actionType: "monitor"
76           index: 2
77
78         -
79           actionKey: "neutron-router-list"
80           actionType: "monitor"
81           index: 3
82
83         -
84           actionKey: "heat-stack-list"
85           actionType: "monitor"
86           index: 4
87
88         -
89           actionKey: "cinder-list"
90           actionType: "monitor"
91           index: 5
92
93
94     nodes:
95       node1: node1.LF
96     runner:
97       type: Duration
98       duration: 1
99     sla:
100       outage_time: 5
101       action: monitor
102
103 context:
104   type: Node
105   name: LF
106   file: {{file}}