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
Conversation
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>
@jecluis do you mind taking a look? |
@gregsfortytwo could you take a look also? |
LGTM. Must admit I'm a bit baffled this is a thing we were not doing. |
This looks good, but since we apparently weren't doing this and think we should have, this needs a test before merging please. |
thanks for the reviews! i am preparing a test in ceph-qa-suite. |
@gregsfortytwo test posted at ceph/ceph-qa-suite#1217 a test passed at http://pulpito.ceph.com/kchai-2016-10-20_03:33:37-rados-wip-kefu-testing---basic-mira/ could you take a look again? |
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. |
i don't really understand what you mean. |
Oh, i view a little from the http://tracker.ceph.com/issues/17558, and reproduce steps.
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? |
I see. Thanks a lot.... |
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