mds: Add encode/decode/dump for use with dencoder

This is for the MDSTable subclasses: AnchorServer,
SnapServer, InoTable.  AnchorServer was partially there
but didn't work in practice dumped objects because of
the version prefix on the object.

This adds a skip argument to ceph-dencoder for getting
past fixed size prefixes.  The encode_server_state method
is also made const to avoid the need for const_casting (and
because it really is const)

Signed-off-by: John Spray <john.spray@inktank.com>
mon/MDSMonitor: Cope with failures during creation

Previously an MDS which failed in state CREATING could be
assigned the sequence BOOT->STANDBY->REPLAY at its next
startup, which fails to re-try the creation.

Fixes: #7485

Signed-off-by: John Spray <john.spray@inktank.com>
compat: avoid unused warn with TEMP_FAILURE_RETRY

The version of TEMP_FAILURE_RETRY found on Linux has a GNU extension
that squashes the unused return value warning where applicable. This
adds a VOID_TEMP_FAILURE_RETRY to make the case explicit, casting the
expression value to void to avoid the warning.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
Merge pull request #1303 from ceph/port/temp-failure-retry

compat: avoid unused warn with TEMP_FAILURE_RETRY

Reviewed-by: Sage Weil <sage@inktank.com>
mds: add mds_kill_create_at for testing

Signed-off-by: John Spray <john.spray@inktank.com>
Fix get_status() to find client.rados text inside of ps command results.
Added port (fixed value for right now in teuthology) to hostname.
Fixes: 7374
Signed-off-by: Warren Usui <warren.usui@inktank.com>
Fixed get_status() to find client.radosgw fields inside of ps output.
Fixes: 7375
Signed-off-by: Warren Usui <warren.usui@inktank.com>
Merge pull request #1279 from ceph/wip-7375-wusui

Fixed sub check() to say okay if rgw is running.

Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
Merge pull request #1280 from ceph/wip-7374-wusui

Fix sub check() to not exit if rgw is running.

Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
Merge pull request #1264 from ceph/wip-mds-dencoder

mds: Add encode/decode/dump for use with dencoder

Reviewed-by: Greg Farnum <greg@inktank.com>
Merge pull request #1283 from ceph/wip-7485

mon/MDSMonitor: Cope with failures during creation

Reviewed-by: Greg Farnum <greg@inktank.com
mds: Fix Dumper shutdown

It was shutting down messenger before monclient.  This
caused a sometimes-assertion when monclient tried to
reconnect in response to ms_handle_reset.

Signed-off-by: John Spray <john.spray@inktank.com>
mds: Create MDSUtility as base for Dumper/Resetter

These classes has lots of similar functionality and we may
want to add more similar things in the future.

Also, get a copy of the MDS map at startup
to learn the ID of the metadata pool instead of
assuming it's the default.

Signed-off-by: John Spray <john.spray@inktank.com>
mds: Add dump-journal-entries

This adds a somewhat-human-readable peer to
the 'dump-journal' command.

Signed-off-by: John Spray <john.spray@inktank.com>
Merge pull request #1263 from ceph/wip-mds-dumper

mds: Dumper improvements

Reviewed-by: Greg Farnum <greg@inktank.com>
Fix python-requests package dependencies.

python-ceph does not require requests, but ceph-common does (for ceph-brag).

Signed-off-by: Dan Mick <dan.mick@inktank.com>
Merge pull request #1323 from ceph/wip-requests-dependencies

Fix python-requests package dependencies.

Backport: firefly
Reviewed-by: Sage Weil <sage@inktank.com>