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

DNM: adding rmfs etc (wip-nullfs) #1852

Closed
wants to merge 24 commits into from
Closed

DNM: adding rmfs etc (wip-nullfs) #1852

wants to merge 24 commits into from

Commits on Jun 6, 2014

  1. doc: RPM instructions correction

    Signed-off-by: John Spray <john.spray@inktank.com>
    John Spray authored and John Spray committed Jun 6, 2014
    Copy the full SHA
    04496aa View commit details
    Browse the repository at this point in the history
  2. mds: add 'enabled' flag to MDSMap

    When 'enabled' is false, the MDSMap is effectively
    null.  This allows Ceph clusters with no filesystem
    or filesystem data/metadata pools.
    
    Signed-off-by: John Spray <john.spray@inktank.com>
    John Spray authored and John Spray committed Jun 6, 2014
    Copy the full SHA
    d1a46bf View commit details
    Browse the repository at this point in the history
  3. mds: no initial filesystem

    Because not everyone uses CephFS, we would
    like to avoid initially creating any data/metadata
    pools for CephFS.
    
    To avoid creating those pools, we must avoid initially
    populating the MDSMap.
    
    Signed-off-by: John Spray <john.spray@inktank.com>
    John Spray authored and John Spray committed Jun 6, 2014
    Copy the full SHA
    9072333 View commit details
    Browse the repository at this point in the history
  4. osdmap: Don't create FS pools by default

    Because many Ceph users don't use the filesystem,
    don't create the 'data' and 'metadata' pools by
    default -- they will be created by newfs if
    they are needed.
    
    Signed-off-by: John Spray <john.spray@inktank.com>
    John Spray authored and John Spray committed Jun 6, 2014
    Copy the full SHA
    fb5967f View commit details
    Browse the repository at this point in the history
  5. mon: don't require 'sure' flag for new fs

    Only prompt for --yes-i-really-mean-it if there
    is an existing FS.
    
    Signed-off-by: John Spray <john.spray@inktank.com>
    John Spray authored and John Spray committed Jun 6, 2014
    Copy the full SHA
    b654c82 View commit details
    Browse the repository at this point in the history
  6. mon: validate pools exist in newfs

    Previously we trusted user implicitly: now check
    input against OSDMap to validate that the
    pools really exist.
    
    Signed-off-by: John Spray <john.spray@inktank.com>
    John Spray authored and John Spray committed Jun 6, 2014
    Copy the full SHA
    8696476 View commit details
    Browse the repository at this point in the history
  7. mon: warn in newfs if crash_replay_interval=0

    This is the setting we would apply to data pools
    created automatically, so notify the user if they're
    failing to use it for data pools they have created
    by hand.
    
    Signed-off-by: John Spray <john.spray@inktank.com>
    John Spray authored and John Spray committed Jun 6, 2014
    Copy the full SHA
    592618b View commit details
    Browse the repository at this point in the history
  8. mon: enable deleting pools when FS disabled

    Signed-off-by: John Spray <john.spray@inktank.com>
    John Spray authored and John Spray committed Jun 6, 2014
    Copy the full SHA
    d1c48fc View commit details
    Browse the repository at this point in the history
  9. mon: stop MDSMonitor when FS disabled

    Where 'stopped' means ignoring beacons and
    not performing 'tick' activities.
    
    Signed-off-by: John Spray <john.spray@inktank.com>
    John Spray authored and John Spray committed Jun 6, 2014
    Copy the full SHA
    0a2e3a0 View commit details
    Browse the repository at this point in the history
  10. mon: add ceph mds rmfs

    Sets enabled=false on the mds map so that an
    administrator can remove the filesystem pools
    if he wishes.
    
    Signed-off-by: John Spray <john.spray@inktank.com>
    John Spray authored and John Spray committed Jun 6, 2014
    Copy the full SHA
    2f5939e View commit details
    Browse the repository at this point in the history
  11. mon: refactor MDSMonitor cmd handler

    MDS commands are now divided into two handler functions,
    one for create/remove of the filesystem, and one for
    operations on the filesystem itself.
    
    Signed-off-by: John Spray <john.spray@inktank.com>
    John Spray authored and John Spray committed Jun 6, 2014
    Copy the full SHA
    1fbfba6 View commit details
    Browse the repository at this point in the history
  12. mon: forbid 'mds rmfs' while daemons are running

    This avoids the need to do anything clever about kicking
    out MDS daemons during a rmfs: we push that responsibility
    onto the admin to run 'mds stop' or somestuch first.
    
    Signed-off-by: John Spray <john.spray@inktank.com>
    John Spray authored and John Spray committed Jun 6, 2014
    Copy the full SHA
    67a7097 View commit details
    Browse the repository at this point in the history
  13. mon/MDSMonitor: add fs_name

    newfs and rmfs commands now refer to the
    filesystem by name, so that in future these
    commands can support a multi-filesystem
    model.
    
    rmfs when no filesystem exists is now a
    warning rather than an error.
    
    Signed-off-by: John Spray <john.spray@inktank.com>
    jcsp authored and John Spray committed Jun 6, 2014
    Copy the full SHA
    3b91508 View commit details
    Browse the repository at this point in the history
  14. vstart: update for newfs/rmfs changes

    Signed-off-by: John Spray <john.spray@inktank.com>
    John Spray authored and John Spray committed Jun 6, 2014
    Copy the full SHA
    cf4f90c View commit details
    Browse the repository at this point in the history
  15. qa: update for newfs/rmfs changes

    Signed-off-by: John Spray <john.spray@inktank.com>
    John Spray authored and John Spray committed Jun 6, 2014
    Copy the full SHA
    5daaf8f View commit details
    Browse the repository at this point in the history
  16. test/cli: Update for only 1 default pool

    Tests for osdmaptool previously assumed that --createsimple
    would always result in at least 3 pools.
    
    Signed-off-by: John Spray <john.spray@inktank.com>
    John Spray authored and John Spray committed Jun 6, 2014
    Copy the full SHA
    02859b9 View commit details
    Browse the repository at this point in the history
  17. mon: hide mdsmap in 'ceph status' if not enabled

    Previously we checked if the MDS map had ever been
    updated (epoch > 1), now we have an explicit flag
    for whether it's enabled.
    
    Signed-off-by: John Spray <john.spray@inktank.com>
    John Spray authored and John Spray committed Jun 6, 2014
    Copy the full SHA
    46132eb View commit details
    Browse the repository at this point in the history
  18. test: update test_ceph_argparse for newfs/rmfs

    Signed-off-by: John Spray <john.spray@inktank.com>
    John Spray authored and John Spray committed Jun 6, 2014
    Copy the full SHA
    da1f521 View commit details
    Browse the repository at this point in the history
  19. test: update tests that used 'data' pool

    Signed-off-by: John Spray <john.spray@inktank.com>
    John Spray authored and John Spray committed Jun 6, 2014
    Copy the full SHA
    1c36797 View commit details
    Browse the repository at this point in the history
  20. test/TestOSDMap: create EC pool cleanly

    Previously assumed that a pool with ID 2
    existed in the default OSD map.
    
    Signed-off-by: John Spray <john.spray@inktank.com>
    John Spray authored and John Spray committed Jun 6, 2014
    Copy the full SHA
    8ae3f14 View commit details
    Browse the repository at this point in the history
  21. mon: implement "fs [new|rm|ls]"

    Signed-off-by: John Spray <john.spray@redhat.com>
    John Spray committed Jun 6, 2014
    Copy the full SHA
    2a53359 View commit details
    Browse the repository at this point in the history
  22. test: add "fs [new|ls|rm]" argparse tests

    Signed-off-by: John Spray <john.spray@redhat.com>
    John Spray committed Jun 6, 2014
    Copy the full SHA
    11a6daf View commit details
    Browse the repository at this point in the history
  23. qa: update 'newfs' -> 'fs new'

    & also catch some more tests that were assuming
    a 'data' pool existed.
    
    Signed-off-by: John Spray <john.spray@redhat.com>
    John Spray committed Jun 6, 2014
    Copy the full SHA
    550b4fb View commit details
    Browse the repository at this point in the history
  24. vstart: update from newfs to 'fs new'

    Signed-off-by: John Spray <john.spray@redhat.com>
    John Spray committed Jun 6, 2014
    Copy the full SHA
    e3500eb View commit details
    Browse the repository at this point in the history