Files
tripleo-quickstart-extras/playbooks/multinode-undercloud.yml
Sagi Shnaidman 5215572299 Run atop for monitoring deployment
Use atop[1] tool to monitor the whole job process.
Atop generates binary output that could be downloaded
and then investigated locally.
Using atop -r /path/to/atop.bin you can read the file
and by pressing "t" to move 10 seconds futher or by
pressing "b" to jump to specific time in job and to see
what happened on host in this time. It allows to track
all resources in specific time.
It allows also tracking of containers separately.
For more info you can visit the site[1]
If atop installation fails it shouldn't fail the job,
so ignore_errors is added.
Currently it's for undercloud in OVB and all nodes in
multinode.

[1] https://www.atoptool.nl/

Change-Id: I7e17db3e376218f620a18db7ea7ca82d7578f618
Depends-On: Ibcdcfb4d8c5c94e1a06c7e635b0b6778ad318094
2018-11-08 01:27:33 +02:00

94 lines
2.3 KiB
YAML

---
- name: Add the overcloud nodes to the generated inventory
hosts: undercloud
gather_facts: yes
tags:
- overcloud-deploy
vars:
inventory: multinode
roles:
- tripleo-inventory
- name: Create configs on subnodes
hosts: overcloud
roles:
# When doing mixed upgrade, we need different repos on undercloud
# vs. overcloud. Rely on $UPGRADE_RELEASE together with
# bootstrap-overcloud-full-minimal.sh to setup overcloud.
- role: repo-setup
when: not mixed_upgrade|default(false)|bool
tasks:
- name: Create a clean hosts file on subnodes
copy:
dest: /etc/hosts
content: |
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
- name: Prepare the undercloud for installation
hosts: undercloud
roles:
- undercloud-setup
tags:
- undercloud-setup
- name: Run DLRN gate role and install repo
hosts: undercloud
vars:
artg_compressed_gating_repo: "${HOME}/gating_repo.tar.gz"
roles:
- build-test-packages
- { role: install-built-repo, when: compressed_gating_repo is defined }
tags:
- build
- name: Install built packages on subnodes
hosts: overcloud
vars:
ib_repo_host: undercloud
roles:
- role: repo-setup
when: not mixed_upgrade|default(false)|bool
- role: install-built-repo
when: hostvars['undercloud']['compressed_gating_repo'] is defined and not mixed_upgrade|default(false)|bool
tags:
- build
- name: Install the undercloud
hosts: undercloud
roles:
- undercloud-deploy
- name: Configure tripleo-validations
hosts: undercloud
gather_facts: no
tags:
- tripleo-validations
vars:
run_tripleo_validations_setup: True
roles:
- { role: tripleo-validations,
when: run_tripleo_validations|bool or run_tripleo_validations_negative_tests|bool}
- name: Validate the undercloud
hosts: undercloud
roles:
- validate-undercloud
- name: Set Libvirt type
hosts: overcloud
roles:
- set-libvirt-type
tags:
- overcloud-deploy