]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon/Monitor: fail forwarded tell commands
authorSage Weil <sage@redhat.com>
Wed, 26 Feb 2020 00:08:22 +0000 (18:08 -0600)
committerSage Weil <sage@redhat.com>
Wed, 26 Feb 2020 19:57:59 +0000 (13:57 -0600)
commite6e3fa84d7ef1b4e31954cc787227977a301d6b8
tree44f00c3ff46c3b70b0a59e6a2f2f557afcfc91da
parente5841cefb424093bdf9b4043573649bee85b0660
mon/Monitor: fail forwarded tell commands

If we have a mix of pre-octopus and octopus+ mons, the old mon may forward
a tell command.  If we try to process it via the asok/tell queue, we will
assert out when we try to send a reply message (see AnonConnection
impl).  Instead, just reply with an error, and a hint that the command
is failing becuase the cluster is mid-upgrade.

Fixes: https://tracker.ceph.com/issues/44297
Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/Monitor.cc