Merge "Add ability to reuse existing OpenStack set-up"
[yardstick.git] / tests / opnfv / test_cases / opnfv_yardstick_tc056.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 TC056 config file;
14     HA test case: OpenStack Controller Messaging Queue Service High Availability.
15
16 {% set file = file or '/etc/yardstick/pod.yaml' %}
17 {% set attack_host = attack_host or 'node1' %}
18 {% set monitor_time = monitor_time or 10 %}
19 {% set monitor_number = monitor_number or 3 %}
20 {% set attack_process = attack_process or "rabbitmq-server" %}
21
22 scenarios:
23 -
24   type: ServiceHA
25   options:
26     attackers:
27     - fault_type: "kill-process"
28       process_name: "{{ attack_process }}"
29       host: {{attack_host}}
30
31     monitors:
32     - monitor_type: "openstack-cmd"
33       command_name: "openstack image list"
34       monitor_time: {{monitor_time}}
35       monitor_number: {{monitor_number}}
36       sla:
37         max_outage_time: 5
38
39     - monitor_type: "openstack-cmd"
40       command_name: "openstack network list"
41       monitor_time: {{monitor_time}}
42       monitor_number: {{monitor_number}}
43       sla:
44         max_outage_time: 5
45
46     - monitor_type: "openstack-cmd"
47       command_name: "openstack volume list"
48       monitor_time: {{monitor_time}}
49       monitor_number: {{monitor_number}}
50       sla:
51         max_outage_time: 5
52
53     - monitor_type: "openstack-cmd"
54       command_name: "openstack stack list"
55       monitor_time: {{monitor_time}}
56       monitor_number: {{monitor_number}}
57       sla:
58         max_outage_time: 5
59
60     - monitor_type: "process"
61       process_name: "{{ attack_process }}"
62       host: {{attack_host}}
63       monitor_time: 30
64       sla:
65         max_recover_time: 30
66
67   nodes:
68     {{attack_host}}: {{attack_host}}.LF
69
70   runner:
71     type: Duration
72     duration: 1
73   sla:
74     outage_time: 5
75     action: monitor
76
77
78 context:
79   type: Node
80   name: LF
81   file: {{file}}
82