Skip to content

Commit

Permalink
ods: enhance logging for osd network error
Browse files Browse the repository at this point in the history
Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
  • Loading branch information
liuchang0812 committed Dec 13, 2016
1 parent 4006cde commit 048fa82
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/osd/OSD.cc
Expand Up @@ -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();
Expand Down

0 comments on commit 048fa82

Please sign in to comment.