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

mon: add MMonHealth back #20528

Merged
merged 1 commit into from Feb 28, 2018
Merged

mon: add MMonHealth back #20528

merged 1 commit into from Feb 28, 2018

Conversation

tchaikov
Copy link
Contributor

This partially reverts commit 7b4a741.

we need to at least decode MMonHealth sent from luminous monitors in
mimic. and in luminous, we could drop the support of this message, if we
can only upgrade from mimic.

Fixes: http://tracker.ceph.com/issues/22462
Signed-off-by: Kefu Chai kchai@redhat.com

@xiexingguo
Copy link
Member

The failure seems real:-)

@tchaikov tchaikov force-pushed the wip-22462 branch 2 times, most recently from 27a65d1 to be74d66 Compare February 22, 2018 09:55
@jecluis
Copy link
Member

jecluis commented Feb 22, 2018

Just to confirm, the objective here is to gracefully simply drop MMonHealth messages during the upgrade path from before-mimic to mimic, right?

@@ -159,6 +160,10 @@ bool HealthMonitor::prepare_update(MonOpRequestRef op)
dout(7) << "prepare_update " << *m
<< " from " << m->get_orig_source_inst() << dendl;
switch (m->get_type()) {
case MSG_MON_HEALTH:
Copy link
Member

Choose a reason for hiding this comment

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

you'll also need to handle the message in Monitor::dispatch_op(), to redirect it to the HealthMonitor.

@tchaikov
Copy link
Contributor Author

Just to confirm, the objective here is to gracefully simply drop MMonHealth messages during the upgrade path from before-mimic to mimic, right?

@jecluis exactly.

This partially reverts commit 7b4a741.

we need to at least decode MMonHealth sent from luminous monitors in
mimic. and in luminous, we could drop the support of this message, if we
can only upgrade from mimic.

Fixes: http://tracker.ceph.com/issues/22462
Signed-off-by: Kefu Chai <kchai@redhat.com>
@tchaikov
Copy link
Contributor Author

tchaikov commented Feb 22, 2018

@jecluis fixed and repushed. the message is now dropped in Monitor::dispatch_op() in the latest change.

Copy link
Member

@jecluis jecluis left a comment

Choose a reason for hiding this comment

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

lgtm

@tchaikov
Copy link
Contributor Author

@tchaikov tchaikov merged commit 3b77d35 into ceph:master Feb 28, 2018
@tchaikov tchaikov deleted the wip-22462 branch February 28, 2018 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants