Merge "bugfix: remove pod_name in host and unify host parameter"
[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/pod.yaml' %}
16 {% set attack_host = attack_host or "node1" %}
17
18 scenarios:
19 -
20   type: ServiceHA
21   options:
22     attackers:
23     - fault_type: "kill-process"
24       process_name: "nova-api"
25       host: {{attack_host}}
26
27     wait_time: 10
28     monitors:
29     - monitor_type: "openstack-cmd"
30       command_name: "openstack server list"
31       monitor_time: 10
32       monitor_number: 3
33       sla:
34         max_outage_time: 5
35     - monitor_type: "process"
36       process_name: "nova-api"
37       host: {{attack_host}}
38       monitor_time: 30
39       monitor_number: 3
40       sla:
41         max_recover_time: 30
42
43   nodes:
44     {{attack_host}}: {{attack_host}}.LF
45
46   runner:
47     type: Iteration
48     iterations: 1
49
50   sla:
51     outage_time: 5
52     action: monitor
53
54
55 context:
56   type: Node
57   name: LF
58   file: {{file}}