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