Commit Graph

17397 Commits

Author SHA1 Message Date
Josh Durgin
739fd9fee4 man: clarify mount.ceph auth options
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-12-15 14:03:00 -08:00
Josh Durgin
e5a5ae12d7 man: update rule definition for ceph-rbdnamer
This is the rule we install since 891025e539.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-12-15 13:49:10 -08:00
Josh Durgin
4eb836546d authx -> cephx everywhere it's used
The term authx was in the mount.ceph man page, and got accidentally
copied into rbd help.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-12-15 13:43:43 -08:00
Sage Weil
da2860599a client: fix logger deregistration
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>
2011-12-14 17:43:18 -08:00
Tommi Virtanen
1430c8abaa doc: Make overview.rst valid reStructuredText, so I can stop seeing warnings.
It's still wrong, but now it won't clutter the output.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-12-14 11:38:08 -08:00
Tommi Virtanen
c119074055 pybind: Add a description to docstring.
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>
2011-12-14 11:33:15 -08:00
Tommi Virtanen
53f7323cdf doc: reStructuredText syntax fix.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-12-14 11:33:15 -08:00
Greg Farnum
18d996370e Merge branch 'wip-messenger' 2011-12-14 11:14:02 -08:00
Tommi Virtanen
d745ff8d89 doc: "ceph -w" clarification.
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>
2011-12-14 11:19:00 -08:00
Tommi Virtanen
bc16ac3b16 doc: Fix sentence that ended too abruptly.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-12-14 11:19:00 -08:00
Tommi Virtanen
f5cfdbb7a3 doc: Split intro to talk about the DFS separately. Mention petabytes.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-12-14 11:19:00 -08:00
Tommi Virtanen
034dd58f77 doc: Add more missing commands to control.
This is too unstructured, that will have to be fixed later.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-12-14 11:19:00 -08:00
Tommi Virtanen
81feae12e1 doc: Add misc explanations of Ceph internals from email.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-12-14 11:19:00 -08:00
Tommi Virtanen
75fd16a543 doc: Use todo directive, rescue list of missing commands from wiki.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-12-14 11:19:00 -08:00
Tommi Virtanen
196d427342 doc: Link to manpage when command is mentioned.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-12-14 11:19:00 -08:00
Tommi Virtanen
b7a5a6a605 doc: More consistency on formatting placeholder names.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2011-12-14 11:19:00 -08:00
Greg Farnum
55639dcd87 msgr: unset did_bind in stop().
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>
2011-12-14 11:11:37 -08:00
Sage Weil
41049f30b0 objecter: fix use-after-free
messenger consumes the m reference.  Yay valgrind.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-14 10:59:51 -08:00
Sage Weil
041d04563e client: move PerfCounter into Client
globals are evil.

Fixes: #1826
Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-14 10:51:23 -08:00
Yehuda Sadeh
e8e1e5dffb swift: auth response returns X-Auth-Token instead of X-Storage-Token 2011-12-14 10:50:30 -08:00
Sage Weil
c9d0e556c7 osd: fix build_incremental_map_msg
We keep both the inc and the full for our oldest osdmap.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-12-14 09:31:17 -08:00
Sage Weil
5804477b20 qa: trivial_libceph test
This currently fails... see #1827

Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-13 16:31:02 -08:00
Sage Weil
207c40b08a libceph: add missing #includes
Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-13 16:29:02 -08:00
Sage Weil
2f281d1ffd libceph: catch errors from Client::init()
And clean up error paths.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-13 16:29:02 -08:00
Sage Weil
c87f31e0a5 client: return errors from init
Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-13 16:29:02 -08:00
Sage Weil
7133a2faf0 filestore: dump transaction to log if we hit an error
This will let us see which operation in the transaction failed.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-13 09:15:23 -08:00
Sage Weil
6b4256763a objectstore: implement Transaction::dump()
Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-13 09:15:23 -08:00
Sage Weil
3d13f003e4 objectstore: create Transaction::iterator class
Remove iterator state from Transaction itself.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-13 09:05:10 -08:00
Sage Weil
6ff95e9d23 qa: rados load-gen workunits
Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-13 08:19:37 -08:00
Samuel Just
6d5e5bdb1a pybind/rados: add asynchronous write,append,read,write_full operations
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2011-12-12 16:00:06 -08:00
Andre Noll
fb8fd186aa doc: Clarify documentation of reweight command.
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>
2011-12-12 14:31:10 -08:00
Andre Noll
db30716b27 doc: Add missing documentation for osd pool get.
"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>
2011-12-12 14:31:10 -08:00
Andre Noll
7dce3e6fe2 doc: Update the list of fields for the pool set command.
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>
2011-12-12 14:31:10 -08:00
Andre Noll
1867a74584 doc: Document pause and unpause osd commands.
These two commands were undocumented so far. This patch adds a short
description.

Signed-Off-By: Andre Noll <maan@systemlinux.org>
2011-12-12 14:31:10 -08:00
Andre Noll
9aadd41b20 doc: Add documentation of missing osd commands.
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>
2011-12-12 14:31:10 -08:00
Andre Noll
78b7a25598 doc: Import the list of ceph subcommands from wiki.
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>
2011-12-12 14:31:10 -08:00
Greg Farnum
1dd173a2b6 messenger: fix up fault()'s "onconnect" parameter.
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>
2011-12-12 13:24:44 -08:00
Greg Farnum
e6e662320c mds: mark_disposable when closing a Client connection.
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>
2011-12-12 13:24:44 -08:00
Greg Farnum
06046470f1 SimpleMessenger: remove void send_keepalive.
Nobody uses this; they all call the version that returns an int.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2011-12-12 13:24:44 -08:00
Sage Weil
5e215c7ee3 Merge branch 'wip-mon-stats' 2011-12-12 09:29:36 -08:00
Sage Weil
711447d8d5 mon: add mds, mon info to cluster_logger
Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-12 09:27:17 -08:00
Sage Weil
808a851d6b mdsmap: rename get_num_*_mds() methods
Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-12 09:27:17 -08:00
Sage Weil
ac31d526d2 mon: report basic cluster stats via perfcounters
These are basic point-in-time cluster stats.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-12 09:24:27 -08:00
Sage Weil
1f1b5fdfdc crush: drop unused label
Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-12 09:22:49 -08:00
Sage Weil
62b78de70e Merge remote branch 'gh/stable' 2011-12-12 09:20:26 -08:00
Sage Weil
495307a1a4 crush: fix force to behave with non-root TAKE
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>
2011-12-12 09:18:46 -08:00
Sage Weil
14f8f00e57 crush: simplify force argument check
force isn't used past this point, only force_pos.  Collapse the if
conditions.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-12-12 09:17:33 -08:00
Josh Durgin
cf279a8b72 workunits: print tests pjd runs
This will tell us which ones actually failed within a test suite.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-12-09 16:31:42 -08:00
Samuel Just
8064440d90 Merge branch 'wip_pgls' 2011-12-09 15:23:32 -08:00
Samuel Just
864847b278 pybind: add object locator support to pybind pool listing
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>
2011-12-09 15:22:21 -08:00