Merge "Re-define the framesize and flow dynamic define in testcase"
[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     Test case for TC056 :OpenStack Controller Messaging Queue Service High
14     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
21 scenarios:
22 -
23   type: ServiceHA
24   options:
25     attackers:
26     - fault_type: "kill-process"
27       process_name: "rabbitmq-server"
28       host: {{attack_host}}
29
30     monitors:
31     - monitor_type: "openstack-cmd"
32       command_name: "openstack image list"
33       monitor_time: {{monitor_time}}
34       monitor_number: {{monitor_number}}
35       sla:
36         max_outage_time: 5
37
38     - monitor_type: "openstack-cmd"
39       command_name: "openstack network list"
40       monitor_time: {{monitor_time}}
41       monitor_number: {{monitor_number}}
42       sla:
43         max_outage_time: 5
44
45     - monitor_type: "openstack-cmd"
46       command_name: "openstack volume list"
47       monitor_time: {{monitor_time}}
48       monitor_number: {{monitor_number}}
49       sla:
50         max_outage_time: 5
51
52     - monitor_type: "openstack-cmd"
53       command_name: "openstack stack list"
54       monitor_time: {{monitor_time}}
55       monitor_number: {{monitor_number}}
56       sla:
57         max_outage_time: 5
58
59     - monitor_type: "process"
60       process_name: "rabbitmq-server"
61       host: {{attack_host}}
62       monitor_time: 20
63       sla:
64         max_recover_time: 20
65
66   nodes:
67     {{attack_host}}: {{attack_host}}.LF
68
69   runner:
70     type: Duration
71     duration: 1
72   sla:
73     outage_time: 5
74     action: monitor
75
76
77 context:
78   type: Node
79   name: LF
80   file: {{file}}
81