Merge "Run atop for monitoring deployment"
This commit is contained in:
commit
5689e8f6aa
|
@ -25,6 +25,12 @@
|
|||
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
|
||||
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
|
||||
become: true
|
||||
|
||||
- name: Run atop on overcloud node if configured
|
||||
include_role:
|
||||
name: undercloud-setup
|
||||
tasks_from: atop
|
||||
|
||||
tags:
|
||||
- undercloud-setup
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
- name: Setup the undercloud
|
||||
hosts: undercloud
|
||||
gather_facts: no
|
||||
gather_facts: yes
|
||||
vars:
|
||||
ansible_user: root
|
||||
roles:
|
||||
|
|
|
@ -9,6 +9,7 @@ artcl_collect_list:
|
|||
- /var/lib/oooq-images/*/*.sh
|
||||
- /var/lib/pacemaker/cib/cib*
|
||||
- /var/lib/pacemaker/pengine/pe-input*
|
||||
- /var/log/atop*
|
||||
- /var/log/dmesg.txt
|
||||
- /var/log/host_info.txt
|
||||
- /var/log/journal.txt
|
||||
|
|
|
@ -39,3 +39,4 @@ undercloud_ara_version: 0.15.0
|
|||
# NOTE(rfolco): do not configure ara on undercloud until we pin ara deps to
|
||||
# each branch - https://bugs.launchpad.net/tripleo/+bug/1792622
|
||||
undercloud_ara: false
|
||||
install_atop: true
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
|
||||
- when: install_atop|bool
|
||||
ignore_errors: true
|
||||
become: true
|
||||
block:
|
||||
# Run atop in background
|
||||
- name: Install atop if configured so
|
||||
shell: |
|
||||
source /etc/ci/mirror_info.sh
|
||||
atop_location=$(repoquery --repoid=osepel --repofrompath=osepel,$NODEPOOL_EPEL_MIRROR/7/x86_64/ --location atop)
|
||||
{{ ansible_pkg_mgr }} install -y $atop_location
|
||||
|
||||
- name: Run atop
|
||||
shell: atop -R -w /var/log/atop.bin &
|
||||
async: 0
|
||||
poll: 0
|
|
@ -1,5 +1,7 @@
|
|||
---
|
||||
# tasks file for undercloud-setup
|
||||
- name: Run atop for monitoring
|
||||
include: atop.yml
|
||||
|
||||
# Add a non-root user
|
||||
- name: Including non_root_user_setup tasks list
|
||||
|
|
Loading…
Reference in New Issue