bugfix: tc023 miss description and tc050-58 wrong description
[yardstick.git] / tests / opnfv / test_cases / opnfv_yardstick_tc054.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 TC054 config file;
14     HA test case: OpenStack VIP Master Node abnormally shutdown High Availability.
15
16 {% set jump_host = jump_host or 'node0' %}
17 {% set attack_host = attack_host or 'node1' %}
18 {% set check_host = check_host or 'node4' %}
19 {% set file = file or '/etc/yardstick/pod.yaml' %}
20 {% set vip_public = vip_public or '10.1.0.222' %}
21 {% set monitor_time = monitor_time or 30 %}
22
23 scenarios:
24   -
25     type: "GeneralHA"
26     options:
27       attackers:
28         -
29           fault_type: "bare-metal-down"
30           host: {{attack_host}}
31           key: "bare-metal-down"
32           jump_host: {{jump_host}}
33
34       monitors:
35         -
36           monitor_type: "openstack-cmd"
37           key: "list-images"
38           command_name: "openstack image list"
39           monitor_time: {{monitor_time}}
40           monitor_number: 3
41           sla:
42             max_outage_time: 5
43
44         -
45           monitor_type: "general-monitor"
46           monitor_key: "ip-status"
47           key: "vip-pub"
48           host: {{check_host}}
49           monitor_time: {{monitor_time}}
50           monitor_number: 3
51           sla:
52             max_outage_time: 5
53           parameter:
54             ip_address: {{vip_public}}
55
56
57       steps:
58         -
59           actionKey: "bare-metal-down"
60           actionType: "attacker"
61           index: 1
62         -
63           actionKey: "list-images"
64           actionType: "monitor"
65           index: 2
66         -
67           actionKey: "vip-pub"
68           actionType: "monitor"
69           index: 3
70
71     nodes:
72       {{jump_host}}: {{jump_host}}.LF
73       {{attack_host}}: {{attack_host}}.LF
74       {{check_host}}: {{check_host}}.LF
75     runner:
76       type: Duration
77       duration: 1
78     sla:
79       outage_time: 5
80       action: monitor
81
82 context:
83   type: Node
84   name: LF
85   file: {{file}}