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

#15065: Add standby_for_fscid in MMDSBeacon and handle it #8257

Merged
merged 15 commits into from Mar 25, 2016

Conversation

jcsp
Copy link
Contributor

@jcsp jcsp commented Mar 22, 2016

This PR depends on #7998, the new stuff here starts at the "s/standby_for_ns/standby_for_fscid/" commit

John Spray added 15 commits March 22, 2016 12:08
Not used for anything currently, but let's make
this class pass through the features to FSMap's
encode method for the benefit of the future
generations.

Signed-off-by: John Spray <john.spray@redhat.com>
Signed-off-by: John Spray <john.spray@redhat.com>
Signed-off-by: John Spray <john.spray@redhat.com>
Coverity: CID 1355578:  Performance inefficiencies  (PASS_BY_VALUE)

Signed-off-by: John Spray <john.spray@redhat.com>
This got mangled somehow.

Signed-off-by: John Spray <john.spray@redhat.com>
This broke with 4ad8f72 ('features' gets
output as an item in the 'export_targets' list),
which wasn't the fsmap branch, but fix it while
I'm tidying.

Signed-off-by: John Spray <john.spray@redhat.com>
...from Filesystem.  This will prepare us for if
MDSMap gets any more feature-sensitive encoding
in the future.

Fixes: #15062
Signed-off-by: John Spray <john.spray@redhat.com>
Only for use in extremis, where we have encountered
a bug that generates an invalid FSMap, but the way
to resolve it might be to proceed anyway and stay
up long enough to use commands to fix it.

Fixes: #15063
Signed-off-by: John Spray <john.spray@redhat.com>
These were just dumping JSON as a placeholder.

Not strictly necessary to have the extra non-machine-readable
variants of these outputs, but some users will probably appreciate
it, so why not.

Signed-off-by: John Spray <john.spray@redhat.com>
Signed-off-by: John Spray <john.spray@redhat.com>
This is handy if you want to quickly create a cluster
with lots of filesystems, for playing with e.g. what
the ceph status output looks like when multiple filesystems
are in play.

This changes the default filesystem/pool names to be
e.g. cephfs_data_a instead of just `cephfs_data`, but anything
who relied on those names in a vstart environment houldn't have
been (this won't affect teuthology tests, of course, where we
still have a few annoying hardcoded pool names).

Signed-off-by: John Spray <john.spray@redhat.com>
Name dates from earlier version of multi-fs
where I was referring to filesystem IDs
as namespace IDs.

Signed-off-by: John Spray <john.spray@redhat.com>
For the MDS daemon to tell the mon which filesystem
it wants to a be a standby for, when it is expressing
a standby_for_rank.

Signed-off-by: John Spray <john.spray@redhat.com>
...and pass it through into MMDSBeacon.

Signed-off-by: John Spray <john.spray@redhat.com>
...so that an MDS can specify that it wants
to act within a particular filesystem without
having to be bound to a particular rank.

Signed-off-by: John Spray <john.spray@redhat.com>
@jcsp jcsp added the cephfs Ceph File System label Mar 22, 2016
@jcsp
Copy link
Contributor Author

jcsp commented Mar 22, 2016

The tests for this ceph/ceph-qa-suite#905

gregsfortytwo added a commit that referenced this pull request Mar 24, 2016
@gregsfortytwo
Copy link
Member

Looks good to me. I forget, did you want your standby-replay logic changes to go in here, or separately? (Perhaps post-jewel?)

@jcsp
Copy link
Contributor Author

jcsp commented Mar 24, 2016

The standby replay cleanup will be a separate PR

@gregsfortytwo gregsfortytwo merged commit ad0ad2d into master Mar 25, 2016
@gregsfortytwo gregsfortytwo deleted the wip-15065 branch March 25, 2016 01: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