]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
switch: allow switch big clusters (more than 99 osds)
authorSébastien Han <seb@redhat.com>
Wed, 26 Sep 2018 12:24:26 +0000 (14:24 +0200)
committerSébastien Han <seb@redhat.com>
Mon, 15 Oct 2018 08:33:56 +0000 (10:33 +0200)
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>
(cherry picked from commit 9fccffa1cac2e2b527ad35e7398db6f20b79b835)
(cherry picked from commit d5e57af23df2c5155975bb7c693d7c2700d101da)

infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml

index 39f8e674e8ab6001654e8a3e1739ac0a509d5918..92214d1df9617d81b95b311d99a722dd8da7c717 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