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: fix dropping mgr metadata for active mgr (#21260) #17571

Merged
merged 2 commits into from Sep 10, 2017

Conversation

jcsp
Copy link
Contributor

@jcsp jcsp commented Sep 7, 2017

No description provided.

Copy link
Contributor

@tchaikov tchaikov left a comment

Choose a reason for hiding this comment

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

aside from the nit, lgtm.

id_to_meta = dict([(i['id'], i) for i in meta])
self.assertIn(original_active, id_to_meta)
self.assertIn('ceph_version', id_to_meta[original_active])
for i in original_standbys:
Copy link
Contributor

Choose a reason for hiding this comment

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

nit, could put:

for i in [original_active] + original_standbys:
    self.assertIn(i, id_to_meta)
    self.assertIn('ceph_version', id_to_meta[i])

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

John Spray added 2 commits September 8, 2017 15:45
drop_standby() was killing it and it was only getting added
back in certain locations.  Instead, make the metadata
drop conditional and only do it in the places we're
really dropping the daemon, not when we're promoting
it to active.

Fixes: http://tracker.ceph.com/issues/21260
Signed-off-by: John Spray <john.spray@redhat.com>
@liewegas liewegas merged commit 14e783c into ceph:master Sep 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants