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: send updated monmap to its subscribers #11456

Merged
merged 1 commit into from Oct 21, 2016

Conversation

tchaikov
Copy link
Contributor

@tchaikov tchaikov commented Oct 13, 2016

prior to this change, we send monmap when serving the subscription
requests, but the updates are not sent to the subscribers anymore.
so we need to send latest monmap to subscribers and update the
subscription status accordingly when the monmap is updated.

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

prior to this change, we sends monmap when serving the subscription
requests, but the updates are not sent to the subscribers anymore.
so we need to send latest monmap to subscribes and update the
subscription status accordingly when the monmap is updated.

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

@jecluis do you mind taking a look?

@tchaikov
Copy link
Contributor Author

@gregsfortytwo could you take a look also?

@jecluis
Copy link
Member

jecluis commented Oct 13, 2016

LGTM. Must admit I'm a bit baffled this is a thing we were not doing.

@gregsfortytwo
Copy link
Member

This looks good, but since we apparently weren't doing this and think we should have, this needs a test before merging please.

@gregsfortytwo gregsfortytwo assigned tchaikov and unassigned jecluis Oct 14, 2016
@tchaikov
Copy link
Contributor Author

thanks for the reviews! i am preparing a test in ceph-qa-suite.

@tchaikov
Copy link
Contributor Author

@tchaikov tchaikov assigned gregsfortytwo and unassigned tchaikov Oct 20, 2016
@jazeltq
Copy link

jazeltq commented Oct 20, 2016

If the osd lose mon connection, it will hunt mon using old monmap. Why it won't connect for ever? Can u explain more about this? thanks a lot.

@tchaikov
Copy link
Contributor Author

Why it won't connect for ever?

i don't really understand what you mean.

@jazeltq
Copy link

jazeltq commented Oct 20, 2016

Oh, i view a little from the http://tracker.ceph.com/issues/17558, and
In number 4, it said that osd.0 will not be able to connect cluster any more.
I do not know why osd.0 can not connect cluster any more, so i ask for that ....

reproduce steps.

  1. create a cluster with 3 mon, 1 osd
  2. create another mon manually, wait until the quorum is formed. update the ceph.conf also, otherwise the "ceph" cli won't be able to get updated monmap
  3. "ceph mon remove a"
  4. osd.0 won't be able to connect to cluster anymore.

if the updated monmap is sent to osd.0, osd.0 will be able to switch to the new monitor, even it is not in its initial monmap.

@tchaikov
Copy link
Contributor Author

if the updated monmap is sent to osd.0, osd.0 will be able to switch to the new monitor, even it is not in its initial monmap.

but without this fix, the updated monmap won't be sent to osd.0. am i missing anything?

@jazeltq
Copy link

jazeltq commented Oct 20, 2016

I see. Thanks a lot....

@gregsfortytwo gregsfortytwo merged commit e677f0c into ceph:master Oct 21, 2016
@tchaikov tchaikov deleted the wip-17558 branch October 22, 2016 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants