From: Guillaume Abrioux Date: Tue, 31 Mar 2020 11:59:23 +0000 (+0200) Subject: purge-container: get *all* osds id X-Git-Tag: v4.0.18~9 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=32f879de3256aeba5898503146012c104369c71a;p=ceph-ansible.git purge-container: get *all* osds id Adding `--all` to the `systemctl list-units` command in order to get *all* osds id on the node (including stoppped osds). Otherwise, it will purge the cluster but there will be leftover after that. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1814542 Signed-off-by: Guillaume Abrioux (cherry picked from commit 5e7962ccf6c9fa35f5611888826131c4e9e8f043) --- diff --git a/infrastructure-playbooks/purge-container-cluster.yml b/infrastructure-playbooks/purge-container-cluster.yml index 4144c8ecc..61ac03906 100644 --- a/infrastructure-playbooks/purge-container-cluster.yml +++ b/infrastructure-playbooks/purge-container-cluster.yml @@ -258,7 +258,7 @@ - name: get all the running osds shell: | - systemctl list-units | grep 'loaded[[:space:]]\+active' | grep -oE "ceph-osd@([0-9]+).service" + systemctl list-units --all | grep -oE "ceph-osd@([0-9]+).service" register: osd_units ignore_errors: true