Merge "Fix python lib path for ixload control subprocess"
[yardstick.git] / tests / opnfv / test_cases / opnfv_yardstick_tc052.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 TC052 config file;
14     HA test case: OpenStack Controller Node Disk I/O Block High Availability.
15
16 {% set file = file or '/etc/yardstick/pod.yaml' %}
17 {% set attack_host = attack_host or "node1" %}
18
19 scenarios:
20   -
21     type: "GeneralHA"
22     options:
23       attackers:
24         -
25           fault_type: "general-attacker"
26           host: {{attack_host}}
27           key: "block-io"
28           attack_key: "block-io"
29
30       monitors:
31         -
32           monitor_type: "openstack-cmd"
33           key: "nova-flavor-list"
34           command_name: "openstack flavor list"
35           monitor_time: 10
36           monitor_number: 3
37           sla:
38             max_outage_time: 5
39
40       operations:
41         -
42           operation_type: "general-operation"
43           key: "create-flavor"
44           operation_key: "nova-create-flavor"
45           action_parameter:
46             flavorconfig: "test-001 test-001 100 1 1"
47           rollback_parameter:
48             flavorid: "test-001"
49
50       resultCheckers:
51         -
52           checker_type: "general-result-checker"
53           key: "check-flavor"
54           checker_key: "nova-flavor-checker"
55           expectedValue: "test-001"
56           condition: "in"
57
58       steps:
59         -
60           actionKey: "block-io"
61           actionType: "attacker"
62           index: 1
63
64         -
65           actionKey: "nova-flavor-list"
66           actionType: "monitor"
67           index: 2
68
69         -
70           actionKey: "create-flavor"
71           actionType: "operation"
72           index: 3
73
74         -
75           actionKey: "check-flavor"
76           actionType: "resultchecker"
77           index: 4
78
79     nodes:
80       {{attack_host}}: {{attack_host}}.LF
81     runner:
82       type: Duration
83       duration: 1
84     sla:
85       outage_time: 5
86       action: monitor
87
88 context:
89   type: Node
90   name: LF
91   file: {{file}}