Merge "Replace nova delete keypair with shade client."
[yardstick.git] / tests / opnfv / test_cases / opnfv_yardstick_tc090.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 TC090 config file;
14     HA test case: Control node Openstack service down - database instance.
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 "mysql" %}
19 {% set monitor_time = monitor_time or 30 %}
20
21 scenarios:
22 -
23   type: ServiceHA
24   options:
25     attackers:
26     - fault_type: "kill-process"
27       process_name: "{{ attack_process }}"
28       host: {{attack_host}}
29
30     monitors:
31     - monitor_type: "openstack-cmd"
32       command_name: "openstack image list"
33       monitor_time: {{monitor_time}}
34       monitor_number: 3
35       sla:
36         max_outage_time: 5
37     - monitor_type: "openstack-cmd"
38       command_name: "openstack router list"
39       monitor_time: {{monitor_time}}
40       monitor_number: 3
41       sla:
42         max_outage_time: 5
43     - monitor_type: "openstack-cmd"
44       command_name: "openstack stack list"
45       monitor_time: {{monitor_time}}
46       monitor_number: 3
47       sla:
48         max_outage_time: 5
49     - monitor_type: "openstack-cmd"
50       command_name: "openstack volume list"
51       monitor_time: {{monitor_time}}
52       monitor_number: 3
53       sla:
54         max_outage_time: 5
55     - monitor_type: "process"
56       process_name: "{{ attack_process }}"
57       host: {{attack_host}}
58       monitor_time: {{monitor_time}}
59       monitor_number: 3
60       sla:
61         max_recover_time: 30
62
63   nodes:
64     {{attack_host}}: {{attack_host}}.LF
65
66   runner:
67     type: Duration
68     duration: 1
69   sla:
70     outage_time: 5
71     action: monitor
72
73
74 context:
75   type: Node
76   name: LF
77   file: {{file}}
78