]> git.apps.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 19:09:19 +0000 (19:09 +0000)
commit25b9dedd0dd86a1437ab3b09a95d648917deb2d5
treec489498a59f69f89f9703dcc51be85dc52e536b3
parent285170bb553a3c6b6f757ae3a3e586d7e7c9ca34
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