Only unregister logger if it is non-NULL (and thus registered) to avoid
running afoul of the cct assertions.
Signed-off-by: Sage Weil <sage@newdream.net>
This avoids a Sphinx warning like this:
.../src/pybind/rbd.py:docstring of rbd.RBD.version:2: WARNING: Field list ends without a blank line; unexpected unindent.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
Stop saying "watch cluster state" so many times.
Don't say stdout, that's the assumption.
Don't call showing things on terminal "printing".
Don't show -C option here.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
We use did_bind as a flag on whether or not to stop the Accepter thread
and we should clear it when we do the stopping.
This fixes#1829.
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
This caused some discussions on the mailing list, so let's try to be clear
about the meaning of an OSD weight.
Signed-Off-By: Andre Noll <maan@systemlinux.org>
"osd pool set" was already documented, but the corresponding "get"
command was not. This patch adds the list of valid fields for this
command, together with short descriptions.
Thanks to Gregory Farnum for pointing out a flaw in the description
of lpl_num and lpgp_num in an earlier version of the patch.
Signed-Off-By: Andre Noll <maan@systemlinux.org>
This list was lacking a few fields: crash_replay_interval, pg_num,
pgp_num and crush_ruleset. Include these fields and add add short
descriptions.
Signed-Off-By: Andre Noll <maan@systemlinux.org>
The set of OSD commands which added by the previous commit is
incomplete. This patch adds documentation for the following
OSD commands which were previously missing: dump, tree, crush,
cluster_snap, lost, create, rm.
Signed-Off-By: Andre Noll <maan@systemlinux.org>
This adds the content of the wiki page at
http://ceph.newdream.net/wiki/Monitor_commands
to doc/control.rst in order to make it available at the new official
location for the ceph documentation. This first patch is just the
result of a cut-and-paste operation. There are no changes in content,
but the text was converted to rst format.
Signed-Off-By: Andre Noll <maan@systemlinux.org>
We should be setting this true when calling fault() from connect().
And rename it in the header -- it does produce less output when set,
but it's actually useful because it changes the shutdown logic
slightly.
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
This is causing issues since the Client's ack of the MClientSession
is somehow not getting back to the MDS. We should make the
Client/SimpleMessenger be better-behaved about shutdown, but for
now this solution matches how we're working elsewhere in our codebase.
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
If the (first) TAKE in the crush rule is not the root, see if they picked
a point somewhere beneath the appropriate part of the hierachy. If not,
continue with a normal mapping.
Previously we would simply error out in this case and map nothing.
Signed-off-by: Sage Weil <sage@newdream.net>
list_objects returns Object(). Object therefore now has an optional
locator_key parameter which will set up the object locator on Object()
methods to allow objects returned from list_objects with locator keys to
be used normally.
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>