tripleo-ansible/tripleo_ansible
Jose Luis Franco Arza d7730980c9 [tripleo_transfer] Do transfers directly from src to dst
When running fetch with become, the slurp module will also
be used to fetch the contents of the file for determining
the remote checksum. This effectively doubles the transfer
size [0] and shows up as a MemoryError when the file size
is large enough.

In TripleO this is problematic in large & old deployments
when transferring the /var/lib/mysql folder.

This patch switches to using rsync directly between the src
and dst hosts to transfer the data. This is advantageous not
only for solving the above-mentioned bug, but is also faster.

A simpler implementation using synchronize was attempted [1],
but there were issues with the mistral container which
prevented that approach from being successful.

[0] https://docs.ansible.com/ansible/latest/collections/ansible/builtin/fetch_module.html#notes
[1] https://review.opendev.org/c/openstack/tripleo-ansible/+/776565/11

Closes-Bug: #1908425
Closes-Bug: rhbz#1904681
Closes-Bug: rhbz#1916162
Depends-On: https://review.opendev.org/778456

Change-Id: Ifc03f9eb1cb4ca3faec194569f4cb2dace93323f
2021-03-03 16:48:21 +00:00
..
ansible_plugins Merge "Support OS_AUTH_TYPE=none in inventory module" 2021-02-24 02:53:05 +00:00
playbooks Merge "Modifying playbooks to support python-tripleoclient B&R commands" 2021-02-25 10:16:37 +00:00
roles [tripleo_transfer] Do transfers directly from src to dst 2021-03-03 16:48:21 +00:00
roles.galaxy Add galaxy role path which will be ignored by git 2019-07-18 13:40:14 -05:00
tests Fix typo in test_tripleo_overcloud_network_ports.py 2021-02-25 19:19:42 +01:00
__init__.py Extract provisioned networks from stack 2020-10-08 22:11:29 +00:00
ansible-role-requirements.yml Introduce tripleo-config role 2019-07-30 13:02:25 -05:00
requirements.yml Capture collection requirements 2020-11-04 09:28:42 -06:00