ceph: define and use a shell_scripts Makefile variable

Define a variable "shell_scripts" in the Makefile.in, and use it
along with some pattern rules to avoid some duplication and simplify
the addition of shell scripts to the ceph user space build.

Signed-off-by: Alex Elder <elder@dreamhost.com>
ceph-kdump-copy: add tools for saving kdumps

This puts in place an init script and a command it runs to save a
kernel core dump to a remote server when a panic or other kernel
failure occurs.  The content of a crash file generated by the
"kdump" init script (which uses the Ubuntu "apport" kernel_crashdump
command) is re-packaged and copied (via scp) to a remote server
specified by variables in /etc/default/ceph-kdump-copy.  This
packaging (as well as the work done by the apport script) is done
on the next boot of the kernel following a crash.


Note:  Although the init script, its config file, and shell script
are known to work, the packaging of these things should not be
expected to be.  I (now) know, for example, that the init script
belongs in src/init-ceph-kdump-copy.in if it is to follow the
pattern used by the ceph init script.  And there are likely other
problems with the build/install portions of this patch.

Signed-off-by: Alex Elder <elder@dreamhost.com>
osd: do not create localized pgs

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
run_seed_to.sh: rework the script, make it more flexible and broaden the tests.

Allow for '-h' and other options such as disabling the journal sync tests,
defining it is to be run on a btrfs FS, enabling exit on error (default is
now 'off'), and allow certain env variables to specify additional options
to each store.

Signed-off-by: Joao Eduardo Luis <jecluis@gmail.com>
osd: remove localized pgs from pg_pool_t

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
osd: ignore localized pgs

- do not load them on startup
- ignore any we hear about over the wire

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
osd: remove preferred from object_locator_t

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
osdmap: do not forcefeed preferred osd to crush

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
libcephfs: disable ceph_set_default_preferred_pg

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
client: rip out preferred_pg thing

This wasn't even named properly.  Blech.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
mds: remove preferred from ceph_file_layout

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
cephfs: remove preferred osd setting

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
test_ioctls: remove preferred osd

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
mon: ignore/remove localized pgs

This will trigger on the next OSDMap update.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
mon: set auid for mon-created pools to 0

Signed-off-by: Sage Weil <sage@newdream.net>
mon: load CompatSet features on startup

Signed-off-by: Sage Weil <sage@newdream.net>
osdmaptool: fix clitests for lack of localized pgs

Signed-off-by: Sage Weil <sage@newdream.net>
osdmap: add NOUP, NODOWN, NOIN, NOOUT flags

These prevent OSDs from being marked up, down, in, or out, respectively.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
mon: 'osd {set,unset} {noin,noout,noup,nodown}'

Move the set/unset flag code into a helper, and also use that for the
pause/unpause commands.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
mon: prevent osd from booting if NOUP

Do not add an osd attempting to boot to the map if NOUP is sent.  Instead,
send it the latest osdmap so it knows that it's not allowed to boot.

Signed-off-by: Sage Weil <sage@newdream.net>