fb70e99a4b
Currently in the upgrade job we are seeing the OOM killer kick in during the 'overcloud service configuration save' command. Ansible is quite inefficient when copying large files around, so excluding the large IPA images should relieve some memory pressure. Change-Id: I3a230b0a699154606ca8faa00a85d45ae815c599 Story: 2004704 Task: 28733
31 lines
1000 B
YAML
31 lines
1000 B
YAML
---
|
|
- name: Save overcloud service configuration
|
|
hosts: overcloud
|
|
tags:
|
|
- service-config-save
|
|
vars:
|
|
# Override this to change the directory in which the configuration will be
|
|
# saved.
|
|
config_save_path: "{{ lookup('env', 'PWD') ~ '/overcloud-config' }}"
|
|
# Override this to change the directory on the remote hosts from which the
|
|
# kolla-ansible configuration will be saved.
|
|
node_config_directory: "/etc/kolla"
|
|
tasks:
|
|
- name: Find overcloud service configuration files
|
|
find:
|
|
paths: "{{ node_config_directory }}"
|
|
recurse: True
|
|
excludes: "{{ exclude_patterns | default(omit) }}"
|
|
patterns: "{{ include_patterns | default(omit) }}"
|
|
register: find_result
|
|
become: true
|
|
|
|
- name: Save overcloud service configuration
|
|
fetch:
|
|
src: "{{ item.path }}"
|
|
dest: "{{ config_save_path }}"
|
|
with_items: "{{ find_result.files }}"
|
|
become: true
|
|
loop_control:
|
|
label: "{{ item.path }}"
|