tripleo-ansible/tripleo_ansible/tests
Emilien Macchi 0e24247d2c tripleo_container_manage: reduce downtime for minor updates
If a container has a new config (e.g. new image), it'll now be removed
right before being re-created.

Before, we were first removing that container among potential orphan
containers, and the container would be re-created later but the downtime
in the middle can be several minutes; since we batch the container
creation.

Now, we separate the cleanup of orphan containers and the ones with new
configs.

The workflow is the following:

1) Remove orphan containers (not in the config anymore, missing Labels,
   etc).

Then for each batch of containers:

2) Remove the containers where the config_data has changed.

3) Create the containers that are in the config.

This patch should reduce the downtime of containers that are updated.

Change-Id: I821d674dead4a21b7ac30b47b31b8dd34e0ecc8b
2020-02-17 13:58:46 +00:00
..
modules Add module "container_puppet_config" 2020-02-06 18:00:52 +00:00
plugins tripleo_container_manage: reduce downtime for minor updates 2020-02-17 13:58:46 +00:00
__init__.py Introduce unit tests structure for tripleo-ansible filters 2019-12-02 22:26:16 +00:00
base.py Introduce unit tests structure for tripleo-ansible filters 2019-12-02 22:26:16 +00:00