Fix configuration error in TC025
[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/nodes/fuel_virtual/pod.yaml' %}
20 {% set jumphost = jumphost or 'node0' %}
21
22 scenarios:
23 -
24   type: ServiceHA
25   options:
26     attackers:
27     - fault_type: "bare-metal-down"
28       host: node1
29       jump_host: {{jumphost}}
30
31     monitors:
32     - monitor_type: "openstack-cmd"
33       command_name: "openstack image list"
34       monitor_time: 10
35       monitor_number: 3
36     - monitor_type: "openstack-cmd"
37       command_name: "openstack router list"
38       monitor_time: 10
39       monitor_number: 3
40     - monitor_type: "openstack-cmd"
41       command_name: "openstack stack list"
42       monitor_time: 10
43       monitor_number: 3
44     - monitor_type: "openstack-cmd"
45       command_name: "openstack volume list"
46       monitor_time: 10
47       monitor_number: 3
48
49   nodes:
50     node1: node1.LF
51     node0: node0.LF
52
53   runner:
54     type: Iteration
55     iterations: 1
56
57   sla:
58     outage_time: 5
59     action: monitor
60
61
62 context:
63   type: Node
64   name: LF
65   file: {{file}}