aeef3e26ee
Change-Id: I7a98108f17cae13e7d2b32d933039815d585cded
30 lines
703 B
YAML
30 lines
703 B
YAML
---
|
|
- name: Validate performance (dstat) on overcloud
|
|
become: true
|
|
block:
|
|
- name: Install the latest version of dstat on overcloud
|
|
package:
|
|
name: dstat
|
|
state: present
|
|
- name: Ensure /var/log/extra exists
|
|
file:
|
|
path: /var/log/extra
|
|
state: directory
|
|
mode: 0777
|
|
- name: Run dstat for collecting metrics on overcloud
|
|
shell: >
|
|
dstat
|
|
-{{ dstat_options }}
|
|
--nocolor
|
|
--output /var/log/extra/{{ dstat_log_name }}
|
|
{{ dstat_delay }}
|
|
> /dev/null &
|
|
args:
|
|
executable: /bin/bash
|
|
async: 1
|
|
poll: 0
|
|
changed_when: false
|
|
rescue:
|
|
- debug:
|
|
msg: "Warning: Performance cannot be validated."
|