bugfix: tc023 miss description and tc050-58 wrong description
[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
21 scenarios:
22   -
23     type: "GeneralHA"
24     options:
25       attackers:
26         -
27           fault_type: "kill-process"
28           host: {{attack_host}}
29           key: "kill-process"
30           process_name: "neutron-l3-agent"
31
32       monitors:
33         -
34           monitor_type: "process"
35           process_name: "neutron-l3-agent"
36           host: {{attack_host}}
37           key: "monitor-recovery"
38           monitor_time: 30
39           sla:
40             max_recover_time: 30
41
42         -
43           monitor_type: "general-monitor"
44           monitor_key: "ip-status"
45           key: "server-status"
46           monitor_time: 10
47           sla:
48             max_outage_time: 5
49           parameter:
50             ip_address: "@floating_ip"
51
52       operations:
53         -
54           operation_type: "general-operation"
55           key: "get-floatingip"
56           operation_key: "get-floatingip"
57           action_parameter:
58             server_name: "tc058"
59           return_parameter:
60             all: "@floating_ip"
61
62
63       steps:
64         -
65           actionKey: "get-floatingip"
66           actionType: "operation"
67           index: 1
68         -
69           actionKey: "kill-process"
70           actionType: "attacker"
71           index: 2
72
73         -
74           actionKey: "monitor-recovery"
75           actionType: "monitor"
76           index: 3
77
78         -
79           actionKey: "server-status"
80           actionType: "monitor"
81           index: 4
82
83     nodes:
84       {{attack_host}}: {{attack_host}}.LF
85     runner:
86       type: Duration
87       duration: 1
88     sla:
89       outage_time: 5
90       action: monitor
91
92 contexts:
93 -
94   type: Node
95   name: LF
96   file: {{file}}
97
98 -
99   name: demo
100   image: {{image}}
101   flavor: {{flavor}}
102   user: cirros
103
104   servers:
105     tc058:
106       floating_ip: true
107
108   networks:
109     test:
110       cidr: '10.0.1.0/24'