Merge "pass user_data to heat template"
[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/nodes/fuel_baremetal/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           sla:
36             max_outage_time: 5
37
38         -
39           monitor_type: "openstack-cmd"
40           key: "neutron-router-list"
41           command_name: "openstack router list"
42           monitor_time: 10
43           sla:
44             max_outage_time: 5
45
46         -
47           monitor_type: "openstack-cmd"
48           key: "heat-stack-list"
49           command_name: "openstack stack list"
50           monitor_time: 10
51           sla:
52             max_outage_time: 5
53
54         -
55           monitor_type: "openstack-cmd"
56           key: "cinder-list"
57           command_name: "openstack volume list"
58           monitor_time: 10
59           sla:
60             max_outage_time: 5
61
62
63       steps:
64         -
65           actionKey: "stress-cpu"
66           actionType: "attacker"
67           index: 1
68
69         -
70           actionKey: "nova-image-list"
71           actionType: "monitor"
72           index: 2
73
74         -
75           actionKey: "neutron-router-list"
76           actionType: "monitor"
77           index: 3
78
79         -
80           actionKey: "heat-stack-list"
81           actionType: "monitor"
82           index: 4
83
84         -
85           actionKey: "cinder-list"
86           actionType: "monitor"
87           index: 5
88
89
90     nodes:
91       node1: node1.LF
92     runner:
93       type: Duration
94       duration: 1
95     sla:
96       outage_time: 5
97       action: monitor
98
99 context:
100   type: Node
101   name: LF
102   file: {{file}}