tripleo-ansible/tripleo_ansible/roles/tripleo-hosts-entries
Damien Ciabrini 34696209fd Preserve inode when updating /etc/hosts
Containers configured by tripleo bind-mount /etc/hosts directly,
which means any change to that file has to preserve the original
inode, otherwise the containers will get out of sync with the
host and will not see updates.

Change tripleo_host_entries to not depend on atomic semantics of
ansible, which changes inodes on update. Instead, perform a
non-atomic update to preserve inodes, and rely on the retry
logics of openstack containers to recover from unexpected
behaviour in case /etc/hosts is consumed while it is being updated.

Closes-Bug: #1882290
Change-Id: I34dd9121bbd650b79cb523e4dbed5949a0e7d52d
(cherry picked from commit 7761249774)
2020-06-10 15:45:23 +02:00
..
defaults Add tripleo-hosts-entries role 2019-12-23 16:42:44 -05:00
files Add tripleo-hosts-entries role 2019-12-23 16:42:44 -05:00
handlers Add tripleo-hosts-entries role 2019-12-23 16:42:44 -05:00
meta Add tripleo-hosts-entries role 2019-12-23 16:42:44 -05:00
molecule/default Change Ansible group from overcloud to allovercloud. 2020-05-20 10:20:05 +00:00
tasks Preserve inode when updating /etc/hosts 2020-06-10 15:45:23 +02:00
vars Add tripleo-hosts-entries role 2019-12-23 16:42:44 -05:00