Merge "bugfix: tc023 miss description and tc050-58 wrong description"
[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
14     Yardstick TC019 config file;
15     HA test case: HA test case: Control node Openstack service down - nova-api.
16
17 {% set file = file or '/etc/yardstick/pod.yaml' %}
18 {% set attack_host = attack_host or "node1" %}
19
20 scenarios:
21 -
22   type: ServiceHA
23   options:
24     attackers:
25     - fault_type: "kill-process"
26       process_name: "nova-api"
27       host: {{attack_host}}
28
29     wait_time: 10
30     monitors:
31     - monitor_type: "openstack-cmd"
32       command_name: "openstack server list"
33       monitor_time: 10
34       monitor_number: 3
35       sla:
36         max_outage_time: 5
37     - monitor_type: "process"
38       process_name: "nova-api"
39       host: {{attack_host}}
40       monitor_time: 30
41       monitor_number: 3
42       sla:
43         max_recover_time: 30
44
45   nodes:
46     {{attack_host}}: {{attack_host}}.LF
47
48   runner:
49     type: Iteration
50     iterations: 1
51
52   sla:
53     outage_time: 5
54     action: monitor
55
56
57 context:
58   type: Node
59   name: LF
60   file: {{file}}