Add test case related to measure compute score and its energy consumption impact
[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
42       operations:
43         -
44           operation_type: "general-operation"
45           key: "nova-create-instance"
46           operation_key: "nova-create-instance"
47           action_parameter:
48             serverconfig: {{inst_param}}
49           rollback_parameter:
50             serverconfig: {{inst_name}}
51
52       steps:
53         -
54           actionKey: "kill-process"
55           actionType: "attacker"
56           index: 1
57         -
58           actionKey: "service-status"
59           actionType: "monitor"
60           index: 2
61         -
62           actionKey: "nova-create-instance"
63           actionType: "operation"
64           index: 3
65
66     nodes:
67       {{attack_host}}: {{attack_host}}.LF
68     runner:
69       type: Duration
70       duration: 1
71     sla:
72       outage_time: 5
73       action: monitor
74
75 context:
76   type: Node
77   name: LF
78   file: {{file}}