Merge "Add a new monitor type: MultiMonitor that can run any number of other monitors...
[yardstick.git] / tests / opnfv / test_cases / opnfv_yardstick_tc019.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 controller node Openstack service.
14
15 {% set file = file or 'etc/yardstick/nodes/fuel_baremetal/pod.yaml' %}
16
17 scenarios:
18 -
19   type: ServiceHA
20   options:
21     attackers:
22     - fault_type: "kill-process"
23       process_name: "nova-api"
24       host: node1
25
26     wait_time: 10
27     monitors:
28     - monitor_type: "openstack-cmd"
29       command_name: "openstack server list"
30       monitor_time: 10
31       sla:
32         max_outage_time: 5
33     - monitor_type: "process"
34       process_name: "nova-api"
35       host: node1
36       monitor_time: 20
37       sla:
38         max_recover_time: 20
39
40   nodes:
41     node1: node1.LF
42
43   runner:
44     type: Iteration
45     iterations: 1
46
47   sla:
48     outage_time: 5
49     action: monitor
50
51
52 context:
53   type: Node
54   name: LF
55   file: {{file}}