From efbea346bba0ca6c49bf82a819352f9eac148d80 Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Thu, 25 Jul 2024 10:35:56 +0200 Subject: [PATCH] Delete glusterd data along with container data When a user deletes a container and selects `force_containers_data_destroy` it makes sense to also delete gluster data for the container as well. Otherwise, once containers respawn, they already do have some stale data from the previous container which may not really work out and would require manual cleanup. With that, when user selects to delete all container data, it's expected that all data for container should be destryed, so that it would be created from scratch. Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-openstack_hosts/+/924994 Change-Id: I85e3768b9611e498cbfefd1e02c12c8b94a6f30b --- playbooks/containers-lxc-destroy.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/playbooks/containers-lxc-destroy.yml b/playbooks/containers-lxc-destroy.yml index 6e26117612..27bb90ae46 100644 --- a/playbooks/containers-lxc-destroy.yml +++ b/playbooks/containers-lxc-destroy.yml @@ -77,6 +77,7 @@ - "/openstack/{{ container_name }}" - "/openstack/backup/{{ container_name }}" - "/openstack/log/{{ container_name }}" + - "/openstack/glusterd/{{ container_name }}" - "/var/log/lxc/lxc-{{ container_name }}.log" delegate_to: "{{ physical_host }}" when: