]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/MgrMonitor: show different error message when disabling a dne module 34143/head
authorKefu Chai <kchai@redhat.com>
Tue, 24 Mar 2020 13:14:43 +0000 (21:14 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 24 Mar 2020 13:24:53 +0000 (21:24 +0800)
commit4bb2566ef5ca5ac02a5e6efa301ae9aaa3a99ce1
tree8657443669aea32d53dae2701fbe0ea375c7dda3
parent3f5a801d972694750c8fce7cc8b5136a37c82b43
mon/MgrMonitor: show different error message when disabling a dne module

this is a regression introduced by
a7677c76a54bdbc68ea9ba60efe7cec013d5afda

per Sage, we can enable a module when the mgr is not started yet using
"--force" command, but we should be allowed to disable it if the
non-existent module is added. this change just changes the condition and
error message so that the error message is printed if the module is not
loaded at all. because the operation should be idempotent, so the
operation is always finished without returning an error.

Fixes: https://tracker.ceph.com/issues/44728
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mon/MgrMonitor.cc