add yardstick iruya 9.0.0 release notes
[yardstick.git] / tests / opnfv / test_cases / opnfv_yardstick_tc058.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 TC058 config file;
14     HA test case: OpenStack Controller Virtual Router Service High Availability.
15
16 {% set file = file or '/etc/yardstick/pod.yaml' %}
17 {% set image = image or 'yardstick-image' %}
18 {% set flavor = flavor or 'yardstick-flavor' %}
19 {% set attack_host = attack_host or 'node1' %}
20 {% set attack_process = attack_process or "neutron-l3-agent" %}
21
22 scenarios:
23   -
24     type: "GeneralHA"
25     options:
26       attackers:
27         -
28           fault_type: "kill-process"
29           host: {{attack_host}}
30           key: "kill-process"
31           process_name: "{{ attack_process }}"
32
33       monitors:
34         -
35           monitor_type: "process"
36           process_name: "{{ attack_process }}"
37           host: {{attack_host}}
38           key: "monitor-recovery"
39           monitor_time: 30
40
41         -
42           monitor_type: "general-monitor"
43           monitor_key: "ip-status"
44           key: "server-status"
45           monitor_time: 10
46           sla:
47             max_outage_time: 5
48           parameter:
49             ip_address: "@floating_ip"
50
51       operations:
52         -
53           operation_type: "general-operation"
54           key: "get-floatingip"
55           operation_key: "get-floatingip"
56           action_parameter:
57             server_name: "tc058"
58           return_parameter:
59             all: "@floating_ip"
60
61
62       steps:
63         -
64           actionKey: "get-floatingip"
65           actionType: "operation"
66           index: 1
67         -
68           actionKey: "kill-process"
69           actionType: "attacker"
70           index: 2
71
72         -
73           actionKey: "monitor-recovery"
74           actionType: "monitor"
75           index: 3
76
77         -
78           actionKey: "server-status"
79           actionType: "monitor"
80           index: 4
81
82     nodes:
83       {{attack_host}}: {{attack_host}}.LF
84     runner:
85       type: Duration
86       duration: 1
87     sla:
88       outage_time: 5
89       action: monitor
90
91 contexts:
92 -
93   type: Node
94   name: LF
95   file: {{file}}
96
97 -
98   name: demo
99   image: {{image}}
100   flavor: {{flavor}}
101   user: cirros
102
103   servers:
104     tc058:
105       floating_ip: true
106
107   networks:
108     test:
109       cidr: '10.0.1.0/24'