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

Commits on Mar 22, 2016

  1. messages: support features in MFSMap

    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>
    John Spray committed Mar 22, 2016
    Configuration menu
    Copy the full SHA
    122e0d3 View commit details
    Browse the repository at this point in the history
  2. mon: name cleanup s/mdsmap_bl/fsmap_bl/

    Signed-off-by: John Spray <john.spray@redhat.com>
    John Spray committed Mar 22, 2016
    Configuration menu
    Copy the full SHA
    980f684 View commit details
    Browse the repository at this point in the history
  3. tools: update naming s/handle_mds_map/handle_fs_map/

    Signed-off-by: John Spray <john.spray@redhat.com>
    John Spray committed Mar 22, 2016
    Configuration menu
    Copy the full SHA
    d4f2807 View commit details
    Browse the repository at this point in the history
  4. mds/FSMap: pass by ref in update_compat

    Coverity: CID 1355578:  Performance inefficiencies  (PASS_BY_VALUE)
    
    Signed-off-by: John Spray <john.spray@redhat.com>
    John Spray committed Mar 22, 2016
    Configuration menu
    Copy the full SHA
    94fd423 View commit details
    Browse the repository at this point in the history
  5. mds: fix whitespace in is_cluster_available

    This got mangled somehow.
    
    Signed-off-by: John Spray <john.spray@redhat.com>
    John Spray committed Mar 22, 2016
    Configuration menu
    Copy the full SHA
    401c186 View commit details
    Browse the repository at this point in the history
  6. mds: fix mds_info_t::dump

    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>
    John Spray committed Mar 22, 2016
    Configuration menu
    Copy the full SHA
    4fcb26d View commit details
    Browse the repository at this point in the history
  7. mds: pass features through to MDSMap::encode

    ...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>
    John Spray committed Mar 22, 2016
    Configuration menu
    Copy the full SHA
    99dd53d View commit details
    Browse the repository at this point in the history
  8. mon: config setting to skip FSMap::sanity

    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>
    John Spray committed Mar 22, 2016
    Configuration menu
    Copy the full SHA
    c6623c0 View commit details
    Browse the repository at this point in the history
  9. mds: plain text prints for FSMap/Filesystem

    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>
    John Spray committed Mar 22, 2016
    Configuration menu
    Copy the full SHA
    bb7a286 View commit details
    Browse the repository at this point in the history
  10. mon: s/mdsmap/fsmap/ in "ceph status"

    Signed-off-by: John Spray <john.spray@redhat.com>
    John Spray committed Mar 22, 2016
    Configuration menu
    Copy the full SHA
    ccef489 View commit details
    Browse the repository at this point in the history
  11. vstart: support creating multiple cephfs filesystems

    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>
    John Spray committed Mar 22, 2016
    Configuration menu
    Copy the full SHA
    d4503e9 View commit details
    Browse the repository at this point in the history
  12. mds: s/standby_for_ns/standby_for_fscid/

    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>
    John Spray committed Mar 22, 2016
    Configuration menu
    Copy the full SHA
    b9a1431 View commit details
    Browse the repository at this point in the history
  13. messages: add MMDSBeacon::standby_for_fscid

    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>
    John Spray committed Mar 22, 2016
    Configuration menu
    Copy the full SHA
    bcf4953 View commit details
    Browse the repository at this point in the history
  14. mds: add mds_standby_for_fscid config

    ...and pass it through into MMDSBeacon.
    
    Signed-off-by: John Spray <john.spray@redhat.com>
    John Spray committed Mar 22, 2016
    Configuration menu
    Copy the full SHA
    93d6c86 View commit details
    Browse the repository at this point in the history
  15. mds: enable standby_for_fscid without rank

    ...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>
    John Spray committed Mar 22, 2016
    Configuration menu
    Copy the full SHA
    ad0ad2d View commit details
    Browse the repository at this point in the history