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 <gabrioux@redhat.com>
(cherry picked from commit 5e7962ccf6)
pull/5221/head
Guillaume Abrioux 2020-03-31 13:59:23 +02:00 committed by Dimitri Savineau
parent 5860335ebe
commit 32f879de32
1 changed files with 1 additions and 1 deletions

View File

@ -258,7 +258,7 @@
- name: get all the running osds - name: get all the running osds
shell: | 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 register: osd_units
ignore_errors: true ignore_errors: true