tripleo-ansible/tripleo_ansible/roles/tripleo_nova_image_cache/tasks
Oliver Walsh 359ef43f94 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
2020-09-02 00:34:44 +01:00
..
cache.yml Stop relying on future mtime in tripleo_nova_image_cache 2020-09-02 00:34:44 +01:00
main.yml Stop relying on future mtime in tripleo_nova_image_cache 2020-09-02 00:34:44 +01:00