aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/roles/install_unixbench/tasks/main.yml
blob: 46edc54a0eb5f50097b897e6f588f7a5b3e76a49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Copyright (c) 2017 Intel Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
---
- name: install unixbench
  make:
    # extra subdir for UnixBench
    chdir: "{{ unixbench_dest }}/UnixBench"
    target: all
span class="err">% set file = file or '/etc/yardstick/pod.yaml' %} {% set attack_host = attack_host or "node1" %} {% set attack_process = attack_process or "mysql" %} {% set monitor_time = monitor_time or 30 %} scenarios: - type: ServiceHA options: attackers: - fault_type: "kill-process" process_name: "{{ attack_process }}" host: {{attack_host}} monitors: - monitor_type: "openstack-cmd" command_name: "openstack image list" monitor_time: {{monitor_time}} monitor_number: 3 sla: max_outage_time: 5 - monitor_type: "openstack-cmd" command_name: "openstack router list" monitor_time: {{monitor_time}} monitor_number: 3 sla: max_outage_time: 5 - monitor_type: "openstack-cmd" command_name: "openstack stack list" monitor_time: {{monitor_time}} monitor_number: 3 sla: max_outage_time: 5 - monitor_type: "openstack-cmd" command_name: "openstack volume list" monitor_time: {{monitor_time}} monitor_number: 3 sla: max_outage_time: 5 - monitor_type: "process" process_name: "{{ attack_process }}" host: {{attack_host}} monitor_time: {{monitor_time}} monitor_number: 3 sla: max_recover_time: 30 nodes: {{attack_host}}: {{attack_host}}.LF runner: type: Duration duration: 1 sla: outage_time: 5 action: monitor context: type: Node name: LF file: {{file}}