Merge "bugfix: remove pod_name in host and unify host parameter"
[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     Test case for TC049 :Control node Openstack service down - swift proxy.
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: "swift-proxy"
25       host: {{attack_host}}
26
27     monitors:
28     - monitor_type: "openstack-cmd"
29       command_name: "swift stat"
30       monitor_time: 10
31       monitor_number: 3
32       sla:
33         max_outage_time: 5
34     - monitor_type: "process"
35       process_name: "swift-proxy"
36       host: {{attack_host}}
37       monitor_time: 30
38       monitor_number: 3
39       sla:
40         max_recover_time: 30
41
42   nodes:
43     {{attack_host}}: {{attack_host}}.LF
44
45   runner:
46     type: Duration
47     duration: 1
48   sla:
49     outage_time: 5
50     action: monitor
51
52
53 context:
54   type: Node
55   name: LF
56   file: {{file}}