b23bb330f090dcac023e37510c19f4edba8fe9c6
[yardstick.git] / tests / opnfv / test_cases / opnfv_yardstick_tc049.yaml
1 ##############################################################################
2 # Copyright (c) 2017 14_ykl@tongji.edu.cn 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     Yardstick TC049 config file;
14     HA test case: Control node Openstack service down - swift-proxy.
15
16 {% set file = file or '/etc/yardstick/pod.yaml' %}
17 {% set attack_host = attack_host or "node1" %}
18
19 scenarios:
20 -
21   type: ServiceHA
22   options:
23     attackers:
24     - fault_type: "kill-process"
25       process_name: "swift-proxy"
26       host: {{attack_host}}
27
28     monitors:
29     - monitor_type: "openstack-cmd"
30       command_name: "swift stat"
31       monitor_time: 10
32       monitor_number: 3
33       sla:
34         max_outage_time: 5
35     - monitor_type: "process"
36       process_name: "swift-proxy"
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: Duration
48     duration: 1
49   sla:
50     outage_time: 5
51     action: monitor
52
53
54 context:
55   type: Node
56   name: LF
57   file: {{file}}