add yardstick iruya 9.0.0 release notes
[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 {% set attack_process = attack_process or "nova-api" %}
20
21 scenarios:
22 -
23   type: ServiceHA
24   options:
25     attackers:
26     - fault_type: "kill-process"
27       process_name: "{{ attack_process }}"
28       host: {{attack_host}}
29
30     wait_time: 10
31     monitors:
32     - monitor_type: "openstack-cmd"
33       command_name: "openstack server list"
34       monitor_time: 10
35       monitor_number: 3
36       sla:
37         max_outage_time: 5
38     - monitor_type: "process"
39       process_name: "{{ attack_process }}"
40       host: {{attack_host}}
41       monitor_time: 30
42       monitor_number: 3
43
44   nodes:
45     {{attack_host}}: {{attack_host}}.LF
46
47   runner:
48     type: Iteration
49     iterations: 1
50
51   sla:
52     outage_time: 5
53     action: monitor
54
55
56 context:
57   type: Node
58   name: LF
59   file: {{file}}