summaryrefslogtreecommitdiffstats
path: root/src/mon/OSDMonitor.cc
diff options
context:
space:
mode:
authorYuri Weinstein <yweinste@redhat.com>2024-01-05 16:40:50 +0100
committerGitHub <noreply@github.com>2024-01-05 16:40:50 +0100
commitb67b33500ae6f3a7228ca714ae5d8adda2244092 (patch)
tree9adfcc8cea5a4fd6771d2c4a249c42d424156edc /src/mon/OSDMonitor.cc
parentMerge pull request #54708 from amathuria/wip-amathuria-bz-2134786-fix-norecover (diff)
parentsrc/mon/OSDMonitor.cc: more descriptive loggings for crc mismatch (diff)
downloadceph-b67b33500ae6f3a7228ca714ae5d8adda2244092.tar.xz
ceph-b67b33500ae6f3a7228ca714ae5d8adda2244092.zip
Merge pull request #54890 from kamoltat/wip-ksirivad-fix-63389
src/mon/OSDMonitor.cc: more descriptive loggings for crc mismatch Reviewed-by: Laura Flores <lflores@redhat.com> Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Diffstat (limited to 'src/mon/OSDMonitor.cc')
-rw-r--r--src/mon/OSDMonitor.cc11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc
index ae1f364fc65..f8e379326f2 100644
--- a/src/mon/OSDMonitor.cc
+++ b/src/mon/OSDMonitor.cc
@@ -847,6 +847,7 @@ void OSDMonitor::update_from_paxos(bool *need_bootstrap)
bufferlist orig_full_bl;
get_version_full(osdmap.epoch, orig_full_bl);
+ dout(20) << __func__ << " mon is running version: " << ceph_version_to_str() << dendl;
if (orig_full_bl.length()) {
// the primary provided the full map
ceph_assert(inc.have_crc);
@@ -857,8 +858,12 @@ void OSDMonitor::update_from_paxos(bool *need_bootstrap)
// sync with the primary for this and all future maps. OSDs
// will also be brought back into sync when they discover the
// crc mismatch and request a full map from a mon.
- derr << __func__ << " full map CRC mismatch, resetting to canonical"
- << dendl;
+ derr << __func__ << " full map CRC mismatch,"
+ << " might be because mons are running mixed versions ..."
+ << " resetting to canonical" << dendl;
+
+ dout(20) << __func__ << " canonical crc: " << inc.full_crc
+ << " my crc: " << osdmap.crc << dendl;
dout(20) << __func__ << " my (bad) full osdmap:\n";
JSONFormatter jf(true);
@@ -2023,6 +2028,8 @@ void OSDMonitor::encode_pending(MonitorDBStore::TransactionRef t)
bufferlist bl;
encode(pending_inc, bl, features | CEPH_FEATURE_RESERVED);
+ dout(20) << __func__ << " mon is running version: "
+ << ceph_version_to_str() << dendl;
dout(20) << " full_crc " << tmp.get_crc()
<< " inc_crc " << pending_inc.inc_crc << dendl;