Merge "increase monitor number in cases." into stable/danube
[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       monitor_number: 3
32       sla:
33         max_outage_time: 5
34     - monitor_type: "process"
35       process_name: "nova-api"
36       host: node1
37       monitor_time: 20
38       monitor_number: 3
39       sla:
40         max_recover_time: 20
41
42   nodes:
43     node1: node1.LF
44
45   runner:
46     type: Iteration
47     iterations: 1
48
49   sla:
50     outage_time: 5
51     action: monitor
52
53
54 context:
55   type: Node
56   name: LF
57   file: {{file}}