Merge "Add send socket commands function"
[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     Yardstick TC025 config file;
14     HA test case: OpenStack Controll Node abnormally shutdown.
15
16 {% set file = file or '/etc/yardstick/pod.yaml' %}
17 {% set jump_host = jump_host or 'node0' %}
18 {% set attack_host = attack_host or 'node1' %}
19 {% set monitor_time = monitor_time or 30 %}
20
21 scenarios:
22 -
23   type: ServiceHA
24   options:
25     attackers:
26     - fault_type: "bare-metal-down"
27       host: {{attack_host}}
28       jump_host: {{jump_host}}
29
30     monitors:
31     - monitor_type: "openstack-cmd"
32       command_name: "openstack image list"
33       monitor_time: {{monitor_time}}
34       monitor_number: 3
35       sla:
36         max_outage_time: 5
37     - monitor_type: "openstack-cmd"
38       command_name: "openstack router list"
39       monitor_time: {{monitor_time}}
40       monitor_number: 3
41       sla:
42         max_outage_time: 5
43     - monitor_type: "openstack-cmd"
44       command_name: "openstack stack list"
45       monitor_time: {{monitor_time}}
46       monitor_number: 3
47       sla:
48         max_outage_time: 5
49     - monitor_type: "openstack-cmd"
50       command_name: "openstack volume list"
51       monitor_time: {{monitor_time}}
52       monitor_number: 3
53       sla:
54         max_outage_time: 5
55
56   nodes:
57     {{attack_host}}: {{attack_host}}.LF
58     {{jump_host}}: {{jump_host}}.LF
59
60   runner:
61     type: Iteration
62     iterations: 1
63
64   sla:
65     outage_time: 5
66     action: monitor
67
68
69 context:
70   type: Node
71   name: LF
72   file: {{file}}