switch: allow switch big clusters (more than 99 osds)

The current regex had a limitation of 99 OSDs, now this limit has been
removed and regardless the number of OSDs they will all be collected.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1630430
Signed-off-by: Sébastien Han <seb@redhat.com>
pull/3220/head v3.2.0beta5
Sébastien Han 2018-09-26 14:24:26 +02:00 committed by Guillaume Abrioux
parent 31a0438cb2
commit 9fccffa1ca
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@
pre_tasks: pre_tasks:
- name: collect running osds and ceph-disk unit(s) - name: collect running osds and ceph-disk unit(s)
shell: | shell: |
systemctl list-units | grep "loaded active" | grep -Eo 'ceph-osd@[0-9]{1,2}.service|ceph-disk@dev-[a-z]{3,4}[0-9]{1}.service' systemctl list-units | grep "loaded active" | grep -Eo 'ceph-osd@[0-9]+.service|ceph-disk@dev-[a-z]{3,4}[0-9]{1}.service'
register: running_osds register: running_osds
changed_when: false changed_when: false
failed_when: false failed_when: false