Test case for TC051 :OpenStack Controller Node CPU Overload High Availability;
This test case is written by new scenario-based HA testing framework.
+{% set file = file or '/etc/yardstick/pod.yaml' %}
+{% set attack_host = attack_host or "node1" %}
+
scenarios:
-
type: "GeneralHA"
attackers:
-
fault_type: "general-attacker"
- host: node1
+ host: {{attack_host}}
key: "stress-cpu"
attack_key: "stress-cpu"
key: "nova-image-list"
command_name: "openstack image list"
monitor_time: 10
+ monitor_number: 3
sla:
max_outage_time: 5
key: "neutron-router-list"
command_name: "openstack router list"
monitor_time: 10
+ monitor_number: 3
sla:
max_outage_time: 5
key: "heat-stack-list"
command_name: "openstack stack list"
monitor_time: 10
+ monitor_number: 3
sla:
max_outage_time: 5
key: "cinder-list"
command_name: "openstack volume list"
monitor_time: 10
+ monitor_number: 3
sla:
max_outage_time: 5
nodes:
- node1: node1.LF
+ {{attack_host}}: {{attack_host}}.LF
runner:
type: Duration
duration: 1
context:
type: Node
name: LF
- file: etc/yardstick/nodes/fuel_virtual/pod.yaml
+ file: {{file}}