Skip to content

osd: fix some osd beacon bugs#14274

Merged
tchaikov merged 2 commits intoceph:masterfrom
liewegas:wip-osd-beacon-fix
Apr 3, 2017
Merged

osd: fix some osd beacon bugs#14274
tchaikov merged 2 commits intoceph:masterfrom
liewegas:wip-osd-beacon-fix

Conversation

@liewegas
Copy link
Member

No description provided.

- && should have been ||
- change this to instead not send when monmap epoch==0,
  and only set last_sent_beacon if we actually send.  That
  way we'll send on the next tick after we get a real monmap.

Signed-off-by: Sage Weil <sage@redhat.com>
Otherwise the mon will just ignore it and we'll wait another
cycle.

Signed-off-by: Sage Weil <sage@redhat.com>
Copy link
Member

@gregsfortytwo gregsfortytwo left a comment

Choose a reason for hiding this comment

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

Reviewed-by: Greg Farnum gfarnum@redhat.com

@dmick
Copy link
Member

dmick commented Mar 31, 2017

Is there an ||-to-&& change somewhere here I'm not seeing?

@gregsfortytwo
Copy link
Member

"change this to instead not send when monmap epoch==0"
(emphasis mine)

@liewegas
Copy link
Member Author

liewegas commented Apr 1, 2017 via email

// send beacon to mon even if we are just connected, and the monmap is not
// initialized yet by then.
if (monmap.epoch == 0 &&
if (monmap.epoch > 0 &&
Copy link
Contributor

@tchaikov tchaikov Apr 1, 2017

Choose a reason for hiding this comment

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

right, || is what was intended. maybe we can remove the comment above, which will be confusing then.

@tchaikov
Copy link
Contributor

tchaikov commented Apr 3, 2017

@tchaikov tchaikov merged commit d79d85b into ceph:master Apr 3, 2017
@liewegas liewegas deleted the wip-osd-beacon-fix branch April 3, 2017 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants