From 7ceadba31dca3203a652d12af3e56ce6b9358175 Mon Sep 17 00:00:00 2001 From: liuchang0812 Date: Tue, 13 Dec 2016 16:06:14 +0800 Subject: [PATCH] ods: enhance logging for osd network error Signed-off-by: liuchang0812 --- src/osd/OSD.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index eb8f5a753ec41..7127d965c510e 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -7134,21 +7134,24 @@ void OSD::_committed_osd_maps(epoch_t first, epoch_t last, MOSDMap *m) if (r != 0) { do_shutdown = true; // FIXME: do_restart? network_error = true; - dout(0) << __func__ << " marked down: rebind failed" << dendl; + dout(0) << __func__ << " marked down:" + << " rebind cluster_messenger failed" << dendl; } r = hb_back_server_messenger->rebind(avoid_ports); if (r != 0) { do_shutdown = true; // FIXME: do_restart? network_error = true; - dout(0) << __func__ << " marked down: rebind failed" << dendl; + dout(0) << __func__ << " marked down:" + << " rebind hb_back_server_messenger failed" << dendl; } r = hb_front_server_messenger->rebind(avoid_ports); if (r != 0) { do_shutdown = true; // FIXME: do_restart? network_error = true; - dout(0) << __func__ << " marked down: rebind failed" << dendl; + dout(0) << __func__ << " marked down:" + << " rebind hb_front_server_messenger failed" << dendl; } hbclient_messenger->mark_down_all(); -- 2.39.5