tripleo-ansible/tripleo_ansible/roles/tripleo-nova-image-cache
Oliver Walsh 1d21542f40 Stop relying on future mtime in tripleo_nova_image_cache
The tripleo_nova_image_cache role was relying on a future mtime to convince
nova image cleanup logic to skip a specific image that we want to pre-cache.
This works well on nodes that are not currently hosting an instance of the
image, however if there is an instance using it then nova will reset the mtime
every 40 minutes (by default).

As a result it's not possible to provide fine grained control of the caching.
We can just ensure the image exists on the host with an mtime of now.
It should remain cache for at least remove_unused_original_minimum_age_seconds
from nova.conf (default 86400).

Change-Id: If836759020bcaeb0d3af47f2af7f98ff2150b606
(cherry picked from commit 359ef43f94)
(cherry picked from commit 4757aa3500)
2020-09-02 19:14:06 +01:00
..
defaults Add role/playbook to manage nova image cache 2020-03-18 14:09:58 +00:00
meta Add role/playbook to manage nova image cache 2020-03-18 14:09:58 +00:00
molecule/default Fixed linting 2020-08-26 14:58:52 +05:30
tasks Stop relying on future mtime in tripleo_nova_image_cache 2020-09-02 19:14:06 +01:00
vars Add role/playbook to manage nova image cache 2020-03-18 14:09:58 +00:00