openstack-ansible/playbooks/common-tasks
Jonathan Rosser 8e9bdba322 Wait for systemd-tmpfiles-setup service to complete after container restart
There is a race condition between starting an lxc container and executing
the first ansible task. Ansible makes heavy use of /tmp and the first
task executed after 'lxc-start' will collide with systemd-tmpfiles-setup
which by default removes all content from /tmp, including the working
files of any ansible task which happens to be running. This causes a fatal
error for ansible which cannot be recovered with retries.

This patch adds a raw command to check the state of the tmpfiles-setup
service and wait until it has completed, avoiding the race confdition.

Change-Id: I4ada8473bfd17b763bde16ac95099ddf7deb541c
2020-06-17 14:27:58 +01:00
..
ceph-server.yml Update ceph release to octopus 2020-05-26 21:30:54 +03:00
dynamic-address-fact.yml Fixes empty metal_query 2019-01-11 11:17:27 +00:00
dynamic-grouping.yml Move dynamic grouping conditional 2017-10-22 03:09:26 +00:00
haproxy-endpoint-manage.yml Avoid using loop_var in endpoint manage 2018-09-18 12:09:52 -05:00
os-log-dir-setup.yml Stop setting a user to the symbolic link 2018-06-27 13:39:36 -04:00
os-lxc-container-setup.yml Wait for systemd-tmpfiles-setup service to complete after container restart 2020-06-17 14:27:58 +01:00
os-nspawn-container-setup.yml nspawn: correct task names 2018-11-22 12:50:55 -05:00
package-cache-proxy.yml Removes package cache references from yum config 2019-11-21 14:04:36 -08:00
remove_container_journal.yml On container destroy remove container journal 2018-07-10 14:21:47 +00:00
restart-service.yml nspawn: fix restart-service.yml service list filtering 2019-02-01 14:57:02 -05:00
rsyslog-client.yml Remove all uses of private in include_role 2019-02-23 05:59:40 +00:00
unbound-clients.yml Move resolvconf JIT execution to common tasks 2017-09-21 08:08:59 -05:00