]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon/OSDMonitor: validate set-require-min-compat-client against connected clients
authorSage Weil <sage@redhat.com>
Tue, 30 May 2017 22:29:03 +0000 (18:29 -0400)
committerSage Weil <sage@redhat.com>
Wed, 7 Jun 2017 03:11:31 +0000 (23:11 -0400)
commitb172605060f5a55ad217975c6f0a61ec557942df
tree0f7fcb3d862ee806fa9b4353f4cee73862a46a04
parent4c00be3428a54d1ad18ad9f9a09270b5f35ba2c5
mon/OSDMonitor: validate set-require-min-compat-client against connected clients

Prevent the user from setting a require_min_compat_client if a disallowed
client is currently connected to the mon cluster.  Instead, you'll get an
error like

Error EPERM: cannot set require_min_compat_client to luminous: 1 connected client(s) look like jewel (missing 0x800000000200000); add --yes-i-really-mean-it to do it anyway

Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/MonCommands.h
src/mon/OSDMonitor.cc