gatherkeys: move get_file() to misc.py

Signed-off-by: Sage Weil <sage@inktank.com>
config: 'pull HOST...' or 'push HOST...'

Signed-off-by: Sage Weil <sage@inktank.com>
mon: remove mon from cluster before stopping daemon

This fixes a transition from 2->1 mons, where the second mon needs to be in
the quorum in order to remove itself.

Signed-off-by: Sage Weil <sage@inktank.com>
Merge remote-tracking branch 'gh/wip-config'
mon.py:  Use short hostname.

Depending on the system configuration, gethostname can return
either a short name or the fqdn.  Trim the return from
socket.gethostname() to just the hostname.

Signed-off-by: Gary Lowell  <gary.lowell@inktank.com>
gatherkeys.py: Require at least one argument.

Signed-off-by: Gary Lowell  <gary.lowell@inktank.com>