]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: restart boot process if waiting for luminous mons 16341/head
authorSage Weil <sage@redhat.com>
Fri, 14 Jul 2017 14:53:14 +0000 (10:53 -0400)
committerSage Weil <sage@redhat.com>
Fri, 14 Jul 2017 14:53:14 +0000 (10:53 -0400)
commit7ec43396a28167255488867cafc2d43270dcaad1
tree79d11949b223bc8eb57e2374fab41db4c46521ad
parent1ac23e7893c64033997f7589374316443c02089a
osd: restart boot process if waiting for luminous mons

If we start_boot and see that we don't have luminous mons, we will stop.
But we don't currently reliably notice when the luminous upgrade completes.
If we happen to be connected to the last mon we will start_boot() because
of the trigger in ms_handle_connect(), but if we are not connected to the
last mon we'll eventually get a monmap update but not restart booting.

Fix by setting a flag if we are waiting, and restart boot if the flag is
set, we are in preboot, and we see we now have luminous mons.

Fixes: http://tracker.ceph.com/issues/20631
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/OSD.cc
src/osd/OSD.h