Added python wrapper to rados_cluster_stat

The new get_cluster_stats() method on the rados.Rados object calls
the rados_cluster_stat() function in the librados library.

Signed-off-by: Christopher Glass <christopher.glass@canonical.com>
Merge pull request #31 from chrisglass/expose_cluster_stats_to_python

Added python wrapper to rados_cluster_stat
Revert "rgw: fix handler leak in handle_request"

This reverts commit eba314a811cd98a79f483dc7a9128fe76c722c78.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
ReplicatedPG: fix snapdir trimming

The previous logic was both complicated and not correct.  Consequently,
we have been tending to drop snapcollection links in some cases.  This
has resulted in clones incorrectly not being trimmed.  This patch
replaces the logic with something less efficient but hopefully a bit
clearer.

Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
config_opts.h: default osd_recovery_delay_start to 0

This setting was intended to prevent recovery from overwhelming peering traffic
by delaying the recovery_wq until osd_recovery_delay_start seconds after pgs
stop being added to it.  This should be less necessary now that recovery
messages are sent with strictly lower priority then peering messages.

Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Gregory Farnum <greg@inktank.com>
rados: add truncate support

Signed-off-by: Samuel Just <sam.just@inktank.com>
Revewed-by: Greg Farnum <greg@inktank.com>
Merge branch 'next'
doc: Normalized to term "drive" rather than disk. Changed "(Manual)" entry on remove OSD.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
doc: Added -a option. Should work without from server, as described.

fixes: #3750

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
messages: add MTimeCheck

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
mon: Monitor: add timecheck infrastructure to detect clock skews

Fixes: #3633
Fixes: #3695

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
mon: Monitor: reduce indentation level; make code more readable

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
mon: Monitor: move a couple of if's together on handle_command()

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
mon: Monitor: use 'else if' on handle_command instead of bunches of 'if'

... when the options are mutually exclusive.

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
mon: Monitor: unify 'ceph health' and 'ceph status'; add json output

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Merge remote-tracking branch 'gh/wip-3633'

Reviewed-by: Sage Weil <sage@inktank.com>
mon: Monitor: only schedule a timecheck after election if we are not alone

Fixes: #3790

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Correct typo in mon docs 'ceph.com' to 'ceph.conf'
Merge pull request #32 from imjustmatthew/imjustmatthew_docs

Correct typo in mon docs 'ceph.com' to 'ceph.conf'
OSD: check for empty command in do_command

Fixes: #3878
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: David Zafman <david.zafman@inktank.com>