From b9dd253a4fdd336684d107a5f2692dabc5fc1d36 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Tue, 2 Feb 2021 21:22:50 +0100 Subject: [PATCH] purge: rm service-cid files This commit makes sure purge playbooks remove those file if for any reason they have been left. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1920900 Signed-off-by: Guillaume Abrioux --- .../purge-container-cluster.yml | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/infrastructure-playbooks/purge-container-cluster.yml b/infrastructure-playbooks/purge-container-cluster.yml index ff8f7b4be..2debc0d81 100644 --- a/infrastructure-playbooks/purge-container-cluster.yml +++ b/infrastructure-playbooks/purge-container-cluster.yml @@ -645,6 +645,27 @@ ansible_os_family == 'RedHat' and not is_atomic + - name: find any service-cid file left + find: + paths: /run + patterns: + - "ceph-*.service-cid" + - "rbd-target-api.service-cid" + - "rbd-target-gw.service-cid" + - "tcmu-runner.service-cid" + - "node_exporter.service-cid" + - "prometheus.service-cid" + - "grafana-server.service-cid" + - "alertmanager.service-cid" + register: service_cid_files + + - name: rm any service-cid file + file: + path: "{{ item.path }}" + state: absent + with_items: "{{ service_cid_files.files }}" + + - name: purge ceph directories hosts: