]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
Revert "mon/MonClient: disable ms_bind_msgr2 if NAUTILUS feature not set"
authorSage Weil <sage@redhat.com>
Wed, 6 Mar 2019 17:54:43 +0000 (11:54 -0600)
committerSage Weil <sage@redhat.com>
Thu, 7 Mar 2019 22:35:35 +0000 (16:35 -0600)
This reverts commit f3ddb1c9b88067b1a4b54d23d825ca4d62e10586.

That behavior complicated the process of moving to v1 -> v2+v1 (extra
daemon restart, for example).  Also, it wasn't sufficient: there are lots
of other reasons besides the mon version that could lead to a mismatch
between what we bind to locally and what is published in the cluster
maps.  Better to embrace that reality and address those other issues.

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

index e366805a9fb76dc6545bf56fb2cd8a8eef5a3749..bf4e12407594674b6f9a2967657e49b121a07b88 100644 (file)
@@ -380,15 +380,6 @@ void MonClient::handle_monmap(MMonMap *m)
   monmap.print(*_dout);
   *_dout << dendl;
 
-  if (monmap.get_epoch() > 0 &&
-      !monmap.get_required_features().contains_all(
-       ceph::features::mon::FEATURE_NAUTILUS) &&
-      cct->_conf.get_val<bool>("ms_bind_msgr2")) {
-    ldout(cct,1) << " disabling ms_bind_msgr2 because monmap does not have"
-                << " NAUTILUS feature set" << dendl;
-    cct->_conf.set_val("ms_bind_msgr2", "false");
-  }
-
   if (old_name.size() == 0) {
     ldout(cct,10) << " can't identify which mon we were connected to" << dendl;
     _reopen_session();