Merge "bugfix: tc037/38 multiprocessing failed sometimes"
[yardstick.git] / tests / opnfv / test_cases / opnfv_yardstick_tc025.yaml
1 ##############################################################################
2 # Copyright (c) 2017 Huawei Technologies Co.,Ltd 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     Sample test case for the HA of OpenStack Controll Node abnormally shutdown.
14     In order to power on the shutdown node after testing, the jumphost is
15     required to install ipmitool. Ipmi jumphost info and each nodes' ipmi ip,
16     username, password are needed in pod file (There is a sample pod file in
17     "etc/yardstick/nodes/pod.yaml.ipmi.sample").
18
19 {% set file = file or '/etc/yardstick/pod.yaml' %}
20 {% set jump_host = jump_host or 'node0' %}
21 {% set attack_host = attack_host or 'node1' %}
22 {% set monitor_time = monitor_time or 180 %}
23
24 scenarios:
25 -
26   type: ServiceHA
27   options:
28     attackers:
29     - fault_type: "bare-metal-down"
30       host: {{attack_host}}
31       jump_host: {{jump_host}}
32
33     monitors:
34     - monitor_type: "openstack-cmd"
35       command_name: "openstack image list"
36       monitor_time: {{monitor_time}}
37       monitor_number: 3
38       sla:
39         max_outage_time: 5
40     - monitor_type: "openstack-cmd"
41       command_name: "openstack router list"
42       monitor_time: {{monitor_time}}
43       monitor_number: 3
44       sla:
45         max_outage_time: 5
46     - monitor_type: "openstack-cmd"
47       command_name: "openstack stack list"
48       monitor_time: {{monitor_time}}
49       monitor_number: 3
50       sla:
51         max_outage_time: 5
52     - monitor_type: "openstack-cmd"
53       command_name: "openstack volume list"
54       monitor_time: {{monitor_time}}
55       monitor_number: 3
56       sla:
57         max_outage_time: 5
58
59   nodes:
60     {{attack_host}}: {{attack_host}}.LF
61     {{jump_host}}: {{jump_host}}.LF
62
63   runner:
64     type: Iteration
65     iterations: 1
66
67   sla:
68     outage_time: 5
69     action: monitor
70
71
72 context:
73   type: Node
74   name: LF
75   file: {{file}}