Collect dstat on overcloud nodes
Start dstat on overcloud before tempest runs. Closes-Bug: #1674382 Change-Id: Ifd4bea27b2c5f31b30580c098024ba55c8abda51
This commit is contained in:
parent
dcf788acef
commit
b5e349bc47
@ -1,5 +1,12 @@
|
|||||||
---
|
---
|
||||||
# Execute sanity checks agsinst the overcloud deployment
|
# Execute sanity checks agsinst the overcloud deployment
|
||||||
|
- name: setup dstat performance monitoring
|
||||||
|
hosts: overcloud
|
||||||
|
tags:
|
||||||
|
- overcloud-validate
|
||||||
|
roles:
|
||||||
|
- { role: validate-perf, when: validate_performance|bool }
|
||||||
|
|
||||||
- name: Sanity check the overcloud services
|
- name: Sanity check the overcloud services
|
||||||
hosts: undercloud
|
hosts: undercloud
|
||||||
tags:
|
tags:
|
||||||
|
@ -1,4 +1,11 @@
|
|||||||
---
|
---
|
||||||
|
- name: setup dstat performance monitoring
|
||||||
|
hosts: overcloud
|
||||||
|
tags:
|
||||||
|
- overcloud-validate
|
||||||
|
roles:
|
||||||
|
- { role: validate-perf, when: validate_performance|bool }
|
||||||
|
|
||||||
# Validate the deployment
|
# Validate the deployment
|
||||||
- name: validate the overcloud
|
- name: validate the overcloud
|
||||||
hosts: undercloud
|
hosts: undercloud
|
||||||
|
@ -1,4 +1,11 @@
|
|||||||
# Validate the deployment
|
# Validate the deployment
|
||||||
|
- name: setup dstat performance monitoring
|
||||||
|
hosts: overcloud
|
||||||
|
tags:
|
||||||
|
- overcloud-validate
|
||||||
|
roles:
|
||||||
|
- { role: validate-perf, when: validate_performance|bool }
|
||||||
|
|
||||||
- name: validate the overcloud
|
- name: validate the overcloud
|
||||||
hosts: undercloud
|
hosts: undercloud
|
||||||
tags:
|
tags:
|
||||||
|
@ -33,3 +33,6 @@ undercloud_rpm_dependencies: >-
|
|||||||
# If `test_ping` is `true`, run a simple ping test to validate the
|
# If `test_ping` is `true`, run a simple ping test to validate the
|
||||||
# overcloud.
|
# overcloud.
|
||||||
test_ping: true
|
test_ping: true
|
||||||
|
|
||||||
|
# install and execute dstat across nodes
|
||||||
|
validate_performance: true
|
||||||
|
@ -1,20 +1,6 @@
|
|||||||
- name: Prepare directory with extra logs
|
- name: Run dstat on the undercloud prior to undercloud install
|
||||||
file: dest=/var/log/extra state=directory
|
include_role:
|
||||||
become: true
|
name: validate-perf
|
||||||
|
|
||||||
- name: Install dstat if it is not present
|
|
||||||
yum:
|
|
||||||
name: dstat
|
|
||||||
state: present
|
|
||||||
become: true
|
|
||||||
|
|
||||||
- name: Run dstat for collecting metrics during 2 hours
|
|
||||||
command: >
|
|
||||||
dstat -tcmndrylpg --nocolor --output /var/log/extra/dstat-csv.log 1 7200 \
|
|
||||||
>/dev/null
|
|
||||||
async: 7200
|
|
||||||
poll: 0
|
|
||||||
become: true
|
|
||||||
when: step_install_undercloud|bool
|
when: step_install_undercloud|bool
|
||||||
|
|
||||||
- name: Install the undercloud
|
- name: Install the undercloud
|
||||||
|
4
roles/validate-perf/defaults/main.yml
Normal file
4
roles/validate-perf/defaults/main.yml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
dstat_log_name: dstat-csv.log
|
||||||
|
dstat_options: tcmndrylpg
|
||||||
|
dstat_delay: 1
|
||||||
|
dstat_count: 7200
|
2
roles/validate-perf/meta/main.yml
Normal file
2
roles/validate-perf/meta/main.yml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
dependencies:
|
||||||
|
- extras-common
|
27
roles/validate-perf/tasks/main.yml
Normal file
27
roles/validate-perf/tasks/main.yml
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
---
|
||||||
|
- name: install the latest version of dstat on overcloud
|
||||||
|
package:
|
||||||
|
name: dstat
|
||||||
|
state: present
|
||||||
|
become: true
|
||||||
|
|
||||||
|
- name: ensure /var/log/extra exists
|
||||||
|
file:
|
||||||
|
path: /var/log/extra
|
||||||
|
state: directory
|
||||||
|
mode: 0755
|
||||||
|
become: true
|
||||||
|
|
||||||
|
- name: Run dstat for collecting metrics on overcloud
|
||||||
|
command: >-
|
||||||
|
dstat
|
||||||
|
-{{ dstat_options }}
|
||||||
|
--nocolor
|
||||||
|
--output /var/log/extra/{{ dstat_log_name }}
|
||||||
|
{{ dstat_delay }}
|
||||||
|
{{ dstat_count }}
|
||||||
|
> /dev/null
|
||||||
|
async: 7200
|
||||||
|
poll: 0
|
||||||
|
become: true
|
||||||
|
changed_when: false
|
Loading…
Reference in New Issue
Block a user