Merge "Bugfix: cleanup command not found"
[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
17 scenarios:
18 -
19   type: ServiceHA
20   options:
21     attackers:
22     - fault_type: "kill-process"
23       process_name: "swift-proxy"
24       host: node1
25
26     monitors:
27     - monitor_type: "openstack-cmd"
28       command_name: "swift stat"
29       monitor_time: 10
30       monitor_number: 3
31       sla:
32         max_outage_time: 5
33     - monitor_type: "process"
34       process_name: "swift-proxy"
35       host: node1
36       monitor_time: 30
37       monitor_number: 3
38       sla:
39         max_recover_time: 30
40
41   nodes:
42     node1: node1.LF
43
44   runner:
45     type: Duration
46     duration: 1
47   sla:
48     outage_time: 5
49     action: monitor
50
51
52 context:
53   type: Node
54   name: LF
55   file: {{file}}