Commit Graph

18884 Commits

Author SHA1 Message Date
Sage Weil
4313a2d8da crush: don't warn on skipped types
It's perfectly okay to skip some.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-04-03 17:02:46 -07:00
Sage Weil
56a6aa7a4b osdmap: set 'default' pool type correctly
Got this wrong in e85961167e

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-04-03 17:01:51 -07:00
Sage Weil
dd7b84a54a ceph-fuse: fix log reopen when -f is specified
Don't restart if it wasn't stopped.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-04-03 16:33:05 -07:00
Sage Weil
e85961167e osd: define more crush types
We don't use these by default, but this way they are there should someone
want to use them.

Signed-off-by: Sage Weil <sage@newdream.net>
2012-04-03 15:40:14 -07:00
Sage Weil
2dbdadbe48 test_rewrite_latency: check return value
Fixes warning

warning: test/test_rewrite_latency.cc:27:36: ignoring return value of ‘ssize_t pwrite(int, const void*, size_t, __off64_t)’, declared with attribute warn_unused_result [-Wunused-result]

Signed-off-by: Sage Weil <sage@newdream.net>
2012-04-03 15:35:26 -07:00
Sage Weil
493344fd5d Makefile: add mssing header
Signed-off-by: Sage Weil <sage@newdream.net>
2012-04-03 15:28:26 -07:00
Sage Weil
d57d8af736 rgw: throttle at num_threads * 2
If we throttle at num_threads, then nothing gets into the workqueue until
a worker thread is idle, which means you pay the latency of setting it up
and queueing it.  This way we keep some requests ready to go.

Signed-off-by: Sage Weil <sage@newdream.net>
2012-04-03 14:21:53 -07:00
Sage Weil
1ef37ab8cb Merge remote-tracking branch 'gh/msgr-api-changes'
Reviewed-by: Sage Weil <sage@newdream.net>
2012-04-03 13:44:29 -07:00
Sage Weil
a31efd9c99 filestore: print Sequencer name in debug output
And clean it up just a bit.

Signed-off-by: Sage Weil <sage@newdream.net>
2012-04-03 13:41:37 -07:00
Greg Farnum
756621d501 msgr: clean up Pipe::do_sendmsg.
Document it as with the tcp stuff, remove an if(0)'d debugging block,
and remove the useless "sd" parameter since it's always the same as
the Pipe's sd member.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-04-03 13:22:38 -07:00
Greg Farnum
9f10a99115 msgr: write minimal documentation for the tcp functions.
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-04-03 13:22:28 -07:00
Greg Farnum
e966c39df6 msgr: make a bunch of stuff private.
Why were all these data members public? They're accessed by Pipes
and the Accepter and stuff, so maybe that's why...but that's all
internal interface stuff.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-04-03 13:22:19 -07:00
Greg Farnum
096971d4c3 msg: update the Dispatcher and Messenger documentation
Clarify what mark_down() and mark_down_on_empty() actually do.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-04-03 13:22:02 -07:00
Greg Farnum
36ec8e930c dispatcher: fix documentation for ms_handle_reset
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-04-03 13:21:44 -07:00
Greg Farnum
cbe13ab292 msgr: rename set_ip() -> set_addr_unknowns()
The generic interface shouldn't reference specifics like that.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-04-03 13:21:25 -07:00
Greg Farnum
607f35e71f msgr: Remove _my_name and ms_addr, replace with direct access to my_inst.
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-04-03 13:13:33 -07:00
Greg Farnum
77f45667c0 msgr: store the entity_inst_t in the Messenger.
Convert ms_addr and _my_name to be references to their fields in
the entity_inst_t my_inst.
This way we can use const references for accessing all of them,
instead of the bizarre distinction we had before for get_myinst().

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-04-03 13:13:20 -07:00
Greg Farnum
6374d0645e buffer: implement a contents_equal function on bufferlists
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-04-03 13:11:29 -07:00
Greg Farnum
5681461bf4 msgr: change the signature of get_myaddr()
Return a const reference to the actual address, instead of copying it.
All current users are happy with this, and I can't see a good reason
to copy it instead.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-04-03 13:11:18 -07:00
Greg Farnum
45a76eafdd msgr: get_connection() is required to establish a connection if none exists.
Making an allowance for lossy server connections is silly. Just don't
ask for the Connection in that case. (There aren't any users who
rely on the previous behavior.)
Document that requirement in Messenger.h!

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-04-03 13:11:09 -07:00
Greg Farnum
e80126ea68 test: fix monmaptool help text
Broken by commit:15f0a3270fdcf09acce554313f2d0c0814a511e4

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-04-03 13:10:23 -07:00
Yehuda Sadeh
e06436e930 cls_rgw: guard decode
thee were few cases where decode wasn't guarded.

Signed-off-by: Yehuda Sadeh <yehuda.sadeh@dreamhost.com>
2012-04-03 11:32:44 -07:00
Yehuda Sadeh
ebb487a617 cls_rgw: reset return code in some cases
Beforehand the return code was ignored, so fixed the cases
where we erroneously return error instead of success.

Signed-off-by: Yehuda Sadeh <yehuda.sadeh@dreamhost.com>
2012-04-03 11:30:57 -07:00
Sage Weil
a8938422a4 librados: fix exec test
Return for read operations is now returned correctly.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-04-03 10:12:01 -07:00
Sage Weil
57f52479a9 doc: disable broken 'doxygenclass' class in librados c++ doc
This is the last remaining gitbuilder error.  Add it back when the C++
docs actually build.

Signed-off-by: Sage Weil <sage@newdream.net>
2012-04-03 09:06:37 -07:00
Sage Weil
9d4fcd0893 Merge remote-tracking branch 'gh/stable' 2012-04-03 08:58:13 -07:00
Sage Weil
e40cf8caff test_workload_gen: fix Sequencer ctor
Signed-off-by: Sage Weil <sage@newdream.net>
2012-04-03 08:44:46 -07:00
Sage Weil
b5ca2fe01a Merge remote-tracking branch 'gh/wip-name-sequencers' 2012-04-02 22:04:04 -07:00
Sage Weil
d70191a88e Merge remote-tracking branch 'gh/wip-2087' 2012-04-02 22:03:55 -07:00
Yehuda Sadeh
addc744692 rgw: check for subuser existence
This fixes #1856: looking up subuser that doesn't exist returns
user as long as subuser prefix defined existing user.

Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
2012-04-02 13:24:14 -07:00
Sage Weil
e792cd9388 filestore: fix ZERO fallback write
It helps if we write zeros!

Signed-off-by: Sage Weil <sage@newdream.net>
2012-04-01 17:04:58 -07:00
Sage Weil
8434caf589 qa: test_rewrite_latency
Tool to measure latency of overwriting a single block.

Signed-off-by: Sage Weil <sage@newdream.net>
2012-04-01 16:24:39 -07:00
Sage Weil
dbc70b9db5 Merge remote branch 'gh/wip-mon_setup'
Reviewed-by: Sage Weil <sage@newdream.net>
2012-03-30 20:31:30 -07:00
Sage Weil
f8a53869f6 osd: fix error code return from class methods
Don't shadow the result at function scope.

Fixes: #2148
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-03-30 20:18:55 -07:00
Greg Farnum
15f0a3270f monmaptool: make clear you can set the fsid when making a new map.
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-03-30 17:22:57 -07:00
Greg Farnum
208daeb3a4 ceph_mon: fix fsid parsing.
fsid is a field in the CephContext _conf structure and is parsed by
the standard options parsing library before it gets to the ceph_mon
custom parsing.
Instead do the standard parsing, and check that member directly
to decide if we want to (over)write the monmap's fsid.

Fixes one part of #2221.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-03-30 17:07:19 -07:00
Sage Weil
aa31035e55 osd: update_stats() on reads too
Update pg stats on any op completion (read or write), not just writes.  Do
the calls with log_op_stats() for consistency's sake.  Skip if the request
was an error.

Fixes: #2209
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Reviewed-by: Samuel Just <samuel.just@dreamhost.com>
2012-03-30 16:14:05 -07:00
Sage Weil
2878865463 log: dump_recent in fatal signal handler
Signed-off-by: Sage Weil <sage@newdream.net>
2012-03-30 16:11:31 -07:00
Sage Weil
f27acbc88e Merge remote-tracking branch 'gh/wip-log'
Conflicts:
	src/common/config_opts.h
2012-03-30 16:07:53 -07:00
Sage Weil
374bef9c97 Merge remote branch 'gh/wip-osd-hb' 2012-03-30 16:00:29 -07:00
Sage Weil
f7f65ebe34 osd: fix typo in debug message
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-03-30 15:37:34 -07:00
Sage Weil
75e3b9b309 Merge remote branch 'gh/wip-osd-recovery-sources' 2012-03-30 14:57:57 -07:00
Sage Weil
df5860fe8f objectstore: name Sequencers
Assign a (unique) name to each Sequencer.  This will aid in debugging, and
can be useful when dumping traces of FileStore workloads.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-03-30 14:23:25 -07:00
Tommi Virtanen
29c01f2511 ceph_common.sh: Remove dead code.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2012-03-30 11:57:51 -07:00
Tommi Virtanen
ba6bb4cfa3 man: Oops, update ceph-mon(8) for real. Sorry about that.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2012-03-30 11:27:47 -07:00
Tommi Virtanen
541a543c43 man: Update ceph-mon(8) after reStructuredText syntax fixes.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2012-03-30 11:26:19 -07:00
Tommi Virtanen
2c5424424c doc: Remove duplicate anchor from (unused) overview doc.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2012-03-30 11:16:57 -07:00
Tommi Virtanen
1ec47db1bd doc: Convert the mailing list mention to not be a section heading.
If toctree is inside a section, the subtree is inside the section too.
We don't want all of dev/* to be under "Mailing list".

I have not found a decent workaround for this. The toplevel toctree
avoids this purely by the fact that it is the topmost toctree. Right
now that means you should 1) avoid having more than a few paragraphs of
text before the toctree for that subtree (put most of the content after
the toctree; clumsy if the toctree is long), or 2) put the toptree
immediately after the document title, make it :hidden:, and let the
reader use links in the text or the ToC in the sidebar to navigate.
See start/index for an example of this.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2012-03-30 11:11:25 -07:00
Tommi Virtanen
b162696b32 doc: Fix reStructuredText syntax errors.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2012-03-30 11:11:12 -07:00
Sage Weil
2d1a96d3dd add include/stringify.h
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-03-30 10:52:23 -07:00