]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
switch: allow switch big clusters (more than 99 osds) v3.2.0beta5
authorSébastien Han <seb@redhat.com>
Wed, 26 Sep 2018 12:24:26 +0000 (14:24 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 10 Oct 2018 20:35:30 +0000 (16:35 -0400)
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>
infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml

index 296edd446b38aab7539920ba4a1f7d2cd4ffb62b..4d9a565308941108423a99654ed63b4929375e3b 100644 (file)
   pre_tasks:
     - name: collect running osds and ceph-disk unit(s)
       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
       changed_when: false
       failed_when: false