]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commit
Fix in regular expression matching OSD ID on non-contenerized
authorArtur Fijalkowski <artur.fijalkowski@ing.com>
Thu, 2 Aug 2018 11:28:44 +0000 (13:28 +0200)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Mon, 6 Aug 2018 18:50:39 +0000 (18:50 +0000)
commit290035171fd27505a677c362a0068267aac7cc40
treee11c51aae5ecf7da999dcbc34af15ecfadb7924f
parent706d0b828937c0552e015a8cdf76764f08c43b5d
Fix in regular expression matching OSD ID on non-contenerized
deployment.
restart_osd_daemon.sh is used to discover and restart all OSDs on a
host. To do it the scripts loops the list of ceph-osd@ services in the
system. This commit fixes bug in the regular expression responsile for
extraction of OSDs - prior version uses `[0-9]{1,2}` expression
which is ignoring all OSDS which numbers are greater than 99 (thus
longer than 2 digits). Fix removed upper limit of digits in the number.
This problem existed in two places in the script.

Closes: #2964
Signed-off-by: Artur Fijalkowski <artur.fijalkowski@ing.com>
(cherry picked from commit 52d9d406b107c4926b582905b3d442feabf1fafc)
roles/ceph-defaults/templates/restart_osd_daemon.sh.j2