init-ceph: iterate/locate local sysvinit-tagged directories

Search /var/lib/ceph/$type/ceph-$id and start/stop those daemons if
present and tagged with the sysvinit file.

Signed-off-by: Sage Weil <sage@inktank.com>
debian: implement purge postrm script for ceph, ceph-mds

Signed-off-by: Sage Weil <sage@inktank.com>
ceph-disk-activate: factor mounting out of activate

The activate stuff is generic for any OSD, regardless of whether we want
to mount it or not.  Pull that part out.

Signed-off-by: Sage Weil <sage@inktank.com>
upstart/ceph-hotplug: drop -- in ceph-disk-activate args

We would like to transition to

 ceph-disk-activate --mount DEV

and away from a generic multi-definition PATH argument.

Signed-off-by: Sage Weil <sage@inktank.com>
ceph-disk-activate: some verbosity

Signed-off-by: Sage Weil <sage@inktank.com>
ceph-dir-prepare: mark a dir as consumable by a ceph OSD

Signed-off-by: Sage Weil <sage@inktank.com>
ceph-disk-prepare: more verbose, cleanup

Signed-off-by: Sage Weil <sage@inktank.com>
ceph-disk-activate: add --mark-init INITSYSTEM option

Do not assume we will manage via upstart; let that be passed down via the
command line.

Signed-off-by: Sage Weil <sage@inktank.com>
ceph-disk-activate: add --dir DIR option

Instantiate and symlink a dir into place.

Signed-off-by: Sage Weil <sage@inktank.com>
upstart/ceph-hotplug: tell activate to start via upstart

This will mark the OSD data dir as upstart-managed.

Signed-off-by: Sage Weil <sage@inktank.com>
upstart: ceph-hotplug -> ceph-osd-activate

This is a more meaningful name.

Signed-off-by: Sage Weil <sage@inktank.com>
ceph-disk-prepare: add (more thorough) --zap-disk option

Still called implicitly by prepare()... we may want to change that.

Signed-off-by: Sage Weil <sage@inktank.com>
ceph-disk-prepare: allow a prepare on a dir

If we get passed a dir, prepare it, and skip all the device nonsense.

FIXME: maybe should still create a journal?

Signed-off-by: Sage Weil <sage@inktank.com>
ceph-disk-active: fix --dir DIR behavior

Various typos.  Safely update the symlink.

Signed-off-by: Sage Weil <sage@inktank.com>
ceph-disk-prepare: handle any combination of file/partition/blkdev for data/journal

Signed-off-by: Sage Weil <sage@inktank.com>
ceph-disk-activate: remove in-the-way symlinks in /var/lib/ceph/osd

Signed-off-by: Sage Weil <sage@inktank.com>
ceph-disk-activate: be marginally more helpful

Either --dir or --mount is required.

Signed-off-by: Sage Weil <sage@inktank.com>
ceph-disk-activate: detect whether PATH is mount or dir

This is simpler.  Just detect what the path is and Do The Right Thing.

Closes #3341 (which wanted to make --mount the default)

Signed-off-by: Sage Weil <sage@inktank.com>