Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

osd: print log when osd want to kill self #9288

Merged
merged 1 commit into from Nov 4, 2016

Conversation

yuyuyu101
Copy link
Member

Signed-off-by: Haomai Wang haomai@xsky.com

Signed-off-by: Haomai Wang <haomai@xsky.com>
@yuyuyu101
Copy link
Member Author

we want to know the reason make decision to shutdown, rebind failed or too much failure retries

@@ -6926,18 +6926,21 @@ 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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe print the class of messager will be better?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for qa, I think developers could know the messenger type from job describe. for user, it should definitely be one type defined in ceph.conf

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think it's aways MOSDMap?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, message type should always be MOSDMap

@liewegas liewegas changed the title OSD: print log when osd want to kill self osd: print log when osd want to kill self Nov 3, 2016
@liewegas liewegas added this to the kraken milestone Nov 3, 2016
@liewegas
Copy link
Member

liewegas commented Nov 3, 2016

retest this please

@liewegas liewegas merged commit 40d266d into ceph:master Nov 4, 2016
@yuyuyu101 yuyuyu101 deleted the wip-add-shutdown-log branch November 5, 2016 03:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants