Merge "Do not start collectd twice when SampleVNF is running on Baremetal"
[yardstick.git] / tests / opnfv / test_cases / opnfv_yardstick_tc053.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 TC053 config file;
14     HA test case: Openstack Controller Load Balance Service High Availability.
15
16 {% set file = file or '/etc/yardstick/pod.yaml' %}
17 {% set attack_host = attack_host or "node1" %}
18 {% set attack_process = attack_process or "haproxy" %}
19
20 scenarios:
21   -
22     type: "GeneralHA"
23     options:
24       attackers:
25         -
26           fault_type: "kill-process"
27           host: {{attack_host}}
28           key: "kill-process"
29           process_name: "{{ attack_process }}"
30
31       monitors:
32         -
33           monitor_type: "process"
34           key: "service-status"
35           process_name: "{{ attack_process }}"
36           host: {{attack_host}}
37           monitor_time: 30
38           monitor_number: 3
39           sla:
40             max_recover_time: 30
41
42         -
43           monitor_type: "openstack-cmd"
44           key: "list-images"
45           command_name: "openstack image list"
46           monitor_time: 10
47           monitor_number: 3
48           sla:
49             max_outage_time: 5
50
51       steps:
52         -
53           actionKey: "kill-process"
54           actionType: "attacker"
55           index: 1
56         -
57           actionKey: "service-status"
58           actionType: "monitor"
59           index: 2
60         -
61           actionKey: "list-images"
62           actionType: "monitor"
63           index: 3
64
65     nodes:
66       {{attack_host}}: {{attack_host}}.LF
67     runner:
68       type: Duration
69       duration: 1
70     sla:
71       outage_time: 5
72       action: monitor
73
74 context:
75   type: Node
76   name: LF
77   file: {{file}}