]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd: improve Windows remap failure handling
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Fri, 29 Jan 2021 09:54:10 +0000 (09:54 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Fri, 5 Feb 2021 07:52:03 +0000 (07:52 +0000)
commitbc912ed39744f5e2dee6a4682fad6d85be10b7cf
treeeaeddf1838e7299d16182cac70300895e43662a6
parentde113141ad23ccc46730dcb3d4802b4a125aa6d3
rbd: improve Windows remap failure handling

At the moment, if an image can't be remapped when the centralized
RBD service starts, the service will stop and already started
daemons will continue running.

This change adds a new option: "--remap-failure-fatal". If set,
when an image can't be remmaped, the service stops AND cleans up
the running daemons. By default, an error will be logged and the
service will continue running.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
(cherry picked from commit 14b78e45383f77dc18de5d31a36e0220c8cd13ad)
src/common/win32/service.cc
src/common/win32/service.h
src/tools/rbd_wnbd/rbd_wnbd.cc
src/tools/rbd_wnbd/rbd_wnbd.h