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

mds: handle blacklisting during journal recovery #11138

Merged
merged 2 commits into from Sep 26, 2016
Merged

Conversation

jcsp
Copy link
Contributor

@jcsp jcsp commented Sep 19, 2016

EBLACKLISTED was being incorrectly handled as an
indication of metadata damage.

Fixes: http://tracker.ceph.com/issues/17236

John Spray added 2 commits September 19, 2016 20:31
The MDS is a client to the OSDs, and responds
to blacklists by respawning itself.  Usually
respawns of a daemonized process result in a PID
change, but it's not guaranteed, and it's definitely
not the case when someone runs in foreground (e.g.
teuthology).

Using a random nonce makes sure we won't match
against an existing blacklist entry from a failed
instance of an MDS daemon with the same name as us.

Related to: http://tracker.ceph.com/issues/17236
Signed-off-by: John Spray <john.spray@redhat.com>
EBLACKLISTED was being incorrectly handled as an
indication of metadata damage.

Fixes: http://tracker.ceph.com/issues/17236
Signed-off-by: John Spray <john.spray@redhat.com>
@jcsp jcsp added bug-fix cephfs Ceph File System labels Sep 19, 2016
@jcsp
Copy link
Contributor Author

jcsp commented Sep 23, 2016

@gregsfortytwo could you review please?

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.

Seems to still need testing, but otherwise,

Reviewed-by: Greg Farnum gfarnum@redhat.com

@jcsp
Copy link
Contributor Author

jcsp commented Sep 26, 2016

@jcsp jcsp merged commit 80b30ec into ceph:master Sep 26, 2016
@jcsp jcsp deleted the wip-17236 branch September 26, 2016 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants