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