openstack-ansible-os_zun/releasenotes/notes/zun-docker-cleanup-471cd731f6963c61.yaml
Andrew Bonney b5bd190e24 Improve image and network cleanup procedure
This adds periodic cleanup of the directory which zun uses to
temporarily cache images loaded from Glance to avoid it becoming
too large.

Docker image cleanup is adjusted to make it less aggressive as
the 'until' filtering has been seen to clear images which were
created more recently than one hour.

The network pruning is removed as this causes zun to become out
of sync with Docker which can prevent creation of new containers
on pruned networks.

Finally, the default is to leave cleanup disabled so that it can
be enabled purely based upon user preference.

As Systemd timers cannot be disabled, this is achieved via a file
presence check with can be overridden for manual execution.

Change-Id: I4532d9975a2e68a12a7755ca3798a59f4928593c
2021-02-19 09:37:32 +00:00

8 lines
308 B
YAML

---
features:
- |
Adds a 'zun-docker-cleanup' script to the Zun compute virtualenv which can
be used to clean up cached Docker images held on compute hosts. This can be
run on a timer by setting the 'zun_docker_prune_images' variable or
executed manually by adding '--force' to the script.