]> 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 15:53:49 +0000 (15:53 +0000)
commit52d9d406b107c4926b582905b3d442feabf1fafc
treea664501e658a3b2ab8ce05326904c495d1059f7f
parent1164cdc002cccb9dc1c6f10fb6b4370eafda3c4b
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>
roles/ceph-defaults/templates/restart_osd_daemon.sh.j2