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>
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>
Use pgrep radosgw to determine if rados gateway is running.
Fixes: 7528
Signed-off-by: Warren Usui <warren.usui@inktank.com>
Merge pull request #1333 from ceph/wip-s3radoscheck-wusui

Use pgrep radosgw to determine if rados gateway is running.

Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
OSDMonitor: enable getting hit set parameters
We would like to get the hit set parameters: hit_set_type |
hit_set_period | hit_set_count | hit_set_fpp via OSDMonitor

Signed-off-by: Kai Zhang <zakir.exe@gmail.com>
Merge pull request #1334 from kazhang/wip-get-hit_set-parameter

OSDMonitor: enable getting hit set parameters

Reviewed-by: Sage Weil <sage@inktank.com>
Fix typo ceph-disk

Fix typo

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>