Merge "Test case spec for SDN Virtual Switch resilience."
[yardstick.git] / tests / opnfv / test_cases / opnfv_yardstick_tc089.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 TC089 config file;
14     HA test case: Control node Openstack service down - nova conductor
15
16 {% set file = file or '/etc/yardstick/pod.yaml' %}
17 {% set attack_host = attack_host or "node1" %}
18 {% set attack_process = attack_process or "nova-conductor" %}
19 {% set inst_param = inst_param or "tc089 yardstick-image yardstick-flavor internal-network" %}
20 {% set inst_name = inst_name or "tc089" %}
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           key: "service-status"
37           process_name: "{{ attack_process }}"
38           host: {{attack_host}}
39           monitor_time: 30
40           monitor_number: 3
41           sla:
42             max_recover_time: 30
43
44       operations:
45         -
46           operation_type: "general-operation"
47           key: "nova-create-instance"
48           operation_key: "nova-create-instance"
49           action_parameter:
50             serverconfig: {{inst_param}}
51           rollback_parameter:
52             serverconfig: {{inst_name}}
53
54       steps:
55         -
56           actionKey: "kill-process"
57           actionType: "attacker"
58           index: 1
59         -
60           actionKey: "service-status"
61           actionType: "monitor"
62           index: 2
63         -
64           actionKey: "nova-create-instance"
65           actionType: "operation"
66           index: 3
67
68     nodes:
69       {{attack_host}}: {{attack_host}}.LF
70     runner:
71       type: Duration
72       duration: 1
73     sla:
74       outage_time: 5
75       action: monitor
76
77 context:
78   type: Node
79   name: LF
80   file: {{file}}