Bugfix:HA test cases rely on dynamic ip addresses in fuel pods
[yardstick.git] / tests / opnfv / test_cases / opnfv_yardstick_tc053.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 TC053 :Openstack Controller Load Balance Service High Availability;
14     This test case is written by new scenario-based HA testing framework.
15
16 {% set file = file or 'etc/yardstick/nodes/fuel_baremetal/pod.yaml' %}
17
18 scenarios:
19   -
20     type: "GeneralHA"
21     options:
22       attackers:
23         -
24           fault_type: "kill-process"
25           host: node1
26           key: "kill-process"
27           process_name: "haproxy"
28
29       monitors:
30         -
31           monitor_type: "process"
32           key: "service-status"
33           process_name: "haproxy"
34           host: node1
35           monitor_time: 20
36           sla:
37             max_recover_time: 30
38
39         -
40           monitor_type: "openstack-cmd"
41           key: "list-images"
42           command_name: "openstack image list"
43           monitor_time: 10
44           sla:
45             max_outage_time: 5
46
47       steps:
48         -
49           actionKey: "kill-process"
50           actionType: "attacker"
51           index: 1
52         -
53           actionKey: "service-status"
54           actionType: "monitor"
55           index: 2
56         -
57           actionKey: "list-images"
58           actionType: "monitor"
59           index: 3
60
61     nodes:
62       node1: node1.LF
63     runner:
64       type: Duration
65       duration: 1
66     sla:
67       outage_time: 5
68       action: monitor
69
70 context:
71   type: Node
72   name: LF
73   file: {{file}}