Commit Graph

19345 Commits

Author SHA1 Message Date
Sage Weil
991c93ed27 mon: fix call to get_uuid() on non-existant osd
Didn't catch this with vstart.sh testing.

Signed-off-by: Sage Weil <sage@newdream.net>
2012-05-04 16:02:00 -07:00
Sage Weil
3e260aec72 librados: call safe callback on read operation
This avoids confusion for the user who isn't sure if they should wait for
complete or safe on a read aio.  It also means that you can always wait
for safe for both reads or writes, which can simplify some code.

Dup the roundtrip functional tests to verify this works.

Signed-off-by: Sage Weil <sage@newdream.net>
Reviewed-by: Yehuda Sadeh <yehuda.sadeh@inktank.com>
2012-05-04 15:26:33 -07:00
Sage Weil
edd73e2e41 crush: note that tree bucket size is tree size, not item count
Signed-off-by: Sage Weil <sage@newdream.net>
2012-05-04 14:51:15 -07:00
Sage Weil
4061fca545 Merge remote-tracking branch 'gh/wip-crush-forcefeed'
Reviewed-by: Sam Just <sam.just@inktank.com>
2012-05-04 14:16:49 -07:00
Sage Weil
ce60e1be21 OpRequest: ignore all ops while the oldest one is still young.
Signed-off-by: Joao Eduardo Luis <jecluis@gmail.com>
Reviewed-by: Sage Weil <sage@newdream.net>
2012-05-04 14:15:59 -07:00
Sage Weil
f3760da4fe crush: update_item() should pass an error back to the caller
If you give it a nonsensical loc, it will fail check_item_loc() (false) and
then error out on insert_item().

Reported-by: Sam Just <sam.just@inktank.com>
Signed-off-by: Sage Weil <sage@newdream.net>
2012-05-04 12:09:28 -07:00
Sage Weil
e0a636f907 crush: improve docs/comments for check_item_loc and insert_item semantics
We don't adjust the internal hierarchy structure (currently).  This is a
bit confusing, so describe the semantics in some detail.

Signed-off-by: Sage Weil <sage@newdream.net>
2012-05-04 11:06:27 -07:00
Sage Weil
878423f963 crush: comment and clean up checks for check_item_loc and insert_item
- drop useless cur for check_item_loc
- comment the checks we're doing so the code is understandable
- use name_exists instead of broken get_item_id != 0 check

Signed-off-by: Sage Weil <sage@newdream.net>
2012-05-04 11:05:34 -07:00
Sage Weil
845e2aa56d Merge branch 'wip-crush-update'
Reviewed-by: Greg Farnum <greg@inktank.com>
2012-05-03 20:44:20 -07:00
Sage Weil
720bea4a71 Merge branch 'wip-osd-uuid'
Reviewed-by: Greg Farnum <greg@inktank.com>
2012-05-03 20:43:54 -07:00
Sage Weil
72538c0f18 Makefile: fix $shell_scripts substution
No spaces here, apparently!

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-05-03 20:40:20 -07:00
Sage Weil
16461acf6a mon: simplify 'osd create <uuid>' command
Make the flow clearer for the three cases (exists, about to exist, new).

Signed-off-by: Sage Weil <sage@newdream.net>
2012-05-03 20:34:38 -07:00
Sage Weil
42f2d2fd65 crushtool: another simple test for update
If the weight doesn't change it should be a no-op.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-05-03 20:33:35 -07:00
Sage Weil
9772d13218 crush: document return values
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-05-03 20:28:27 -07:00
Sage Weil
1cd6f76420 crush: compare fixed-point weights in update_item
This is less ugly than converting the quantized value back to a float and
comparing that.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-05-03 20:28:21 -07:00
Sage Weil
c03b852187 thread: remove get_num_threads() static
This looks in /proc to count threads.  Kludgey and no longer needed.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
2012-05-03 20:01:02 -07:00
Sage Weil
e50932c204 global_init: do not count threads before daemonize()
We were verifying that there was only 1 thread (the presumably main()) when
we call daemonize.  However, with the new logging code, we stop a thread
right before the check, and /proc apparently updates asynchronously such
that our attempt to count running threads gives us a bad answer.

Just remove this kludgey check; we'll have to catch this class of bugs
the hard way.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
2012-05-03 20:00:36 -07:00
Sage Weil
684558ace9 crush: clean up check_item_loc() comments
Thanks Greg!

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2012-05-03 18:59:02 -07:00
Joao Eduardo Luis
27d98d2419 OpRequest: only show a small set of the oldest messages, instead of all.
Signed-off-by: Joao Eduardo Luis <jecluis@gmail.com>
Reviewed-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-05-03 15:49:51 -07:00
Yehuda Sadeh
3228643f1e rgw: update cache interface for put_obj_meta
This fixes issue #2381.
The method interface was different than the one needed in order
to override the one in RGWRados.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2012-05-03 12:52:31 -07:00
Sage Weil
b5a18ad8f9 doc: fix some underscores
Signed-off-by: Sage Weil <sage@newdream.net>
2012-05-03 12:26:17 -07:00
Sage Weil
5125daa6d7 osd: drop unused CEPH_OSDMAP*VERSION* #defines
It's easier to manage/rev/grok these inline.

Signed-off-by: Sage Weil <sage@newdream.net>
2012-05-03 12:19:44 -07:00
Sage Weil
1e7dc441ff Merge branch 'wip-doc-rebase-2' 2012-05-03 12:16:55 -07:00
John Wilkins
f15c0bba11 Fixed link to blog.
Signed-off-by: John Wilkins <john.wilkins@dreamhost.com>
2012-05-03 12:14:26 -07:00
John Wilkins
b2100ca04d Fixed another link to the blog.
Signed-off-by: John Wilkins <john.wilkins@dreamhost.com>
2012-05-03 11:49:22 -07:00
John Wilkins
5ac8b58843 Fixed link.
Signed-off-by: John Wilkins <john.wilkins@dreamhost.com>
2012-05-03 11:42:50 -07:00
John Wilkins
7eca0dd9a9 Clean up. Changed ceph.newdream.net to ceph.com.
Removed {ARCH} references.
Added link to Source.


Signed-off-by: John Wilkins <john.wilkins@dreamhost.com>
2012-05-03 11:31:37 -07:00
Sage Weil
91c30b3a1a doc: more fonts
Signed-off-by: Sage Weil <sage@newdream.net>
2012-05-03 11:25:12 -07:00
Ross Turk
cabe74b19e doc: new theme
Signed-off-by: Ross Turk <ross.turk@inktank.com>
2012-05-03 11:03:03 -07:00
Sage Weil
54991fff14 doc/install/debian: simplify more
Signed-off-by: Sage Weil <sage@newdream.net>
2012-05-03 10:51:02 -07:00
Sage Weil
c3dc54b0fc doc/install: reorg, simplify
Signed-off-by: Sage Weil <sage@newdream.net>
2012-05-03 10:45:08 -07:00
Sage Weil
dc894eee90 doc: clarify path names for mkcephfs
Signed-off-by: Sage Weil <sage@newdream.net>
2012-05-03 10:39:45 -07:00
Sage Weil
bd8577dd37 doc: simplify quick start
Remove dup items

Signed-off-by: Sage Weil <sage@newdream.net>
2012-05-03 10:38:50 -07:00
Tommi Virtanen
5465e81097 doc: Whitespace cleanup.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2012-05-03 10:15:21 -07:00
Tommi Virtanen
93dcc9886f doc: Rename to use dashes not underscores in URLs.
This makes the-separate-words in the url match as separate words in
searches, where this_way only matches an explicit "this_way" search.
http://www.mattcutts.com/blog/dashes-vs-underscores/

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2012-05-03 10:10:29 -07:00
Tommi Virtanen
715a69c1ed doc: Remove leading whitespace, that syntax means it's a definition list.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2012-05-03 10:02:29 -07:00
John Wilkins
3226722c83 Updated URLs for the new ceph.com site.
Signed-off-by: John Wilkins <john.wilkins@dreamhost.com>
2012-05-03 09:42:56 -07:00
Yehuda Sadeh
be855d8524 objecter: ping connections with lingering ops every tick()
Also, make sure that we initialize linger_op.session once
we have it.

Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
2012-05-02 23:01:42 -07:00
John Wilkins
d49c3d29a7 Removed "Ceph Development Status" per Bryan
Modified title syntax per Tommi
Modified paragraph width to 80-chars per Dan
Moved "Build from Source" out of Install
Renamed create_cluster to config-cluster
Added config-ref with configuration reference tables
Added a toc ref for man/1/obsync per Dan
Removed redundant sections from Ops
Deleted "Why use Ceph" and "Introduction to Storage Clusters"



Signed-off-by: John Wilkins <john.wilkins@dreamhost.com>
2012-05-02 20:31:35 -07:00
Sage Weil
606fdf4788 Merge branch 'stable'
Conflicts:
	src/common/config_opts.h
2012-05-02 16:50:14 -07:00
Sage Weil
d14b016d58 config: $cluster-whatever for admin_socket, log files
This is more consistent with /var/lib/ceph/$type/$cluster-$id.

Signed-off-by: Sage Weil <sage@newdream.net>
2012-05-02 16:49:06 -07:00
Tommi Virtanen
ad0330b717 config: Admin socket path had literal "name" in it instead of $name.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2012-05-02 15:56:38 -07:00
Tommi Virtanen
461e62fc08 config: Admin socket path had literal "name" in it instead of $name.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
2012-05-02 15:50:36 -07:00
Sage Weil
28b1fc80c4 mon: make 'osd map <poolname> <objectname>' return pg and osd mapping
This keeps coming up and is annoying to do manually.

Fixes: #2141
Signed-off-by: Sage Weil <sage@newdream.net>
Reviewed-by: Greg Farnum <gregory.farnum@dreamhost.com>
2012-05-02 15:32:17 -07:00
Sage Weil
4dab4acd2d ceph-object-corpus: a few instances of the newly encoded types
Signed-off-by: Sage Weil <sage@newdream.net>
2012-05-02 15:14:46 -07:00
Sage Weil
728463794b ceph-dencoder: ignore trailing goop after OSDMap and OSDMap::Incremental
All users pass around bufferlists and avoid encoding these structures
inline, but the dencoder tests are picky.  Disable that for these types so
that we can add new fields without noise.

Signed-off-by: Sage Weil <sage@newdream.net>
2012-05-02 15:13:20 -07:00
Sage Weil
69dcd28864 mon: drop 'osd crush add ...'
'osd crush set ...' is better, us that instead.

Signed-off-by: Sage Weil <sage@newdream.net>
2012-05-02 14:59:19 -07:00
Sage Weil
33e354782d vstart.sh: use 'osd crush set ...'
Signed-off-by: Sage Weil <sage@newdream.net>
2012-05-02 14:59:19 -07:00
Sage Weil
79edba2f1b mon: 'osd crush set ...' do an add or update
This operation will add/update/move the item to the specified location.
It is idempotent and much more useful than 'osd crush add ...'.

Signed-off-by: Sage Weil <sage@newdream.net>
2012-05-02 14:55:54 -07:00
Sage Weil
ee00095abb crushtool: extent cli test to include --remove-item and --update-item
Signed-off-by: Sage Weil <sage@newdream.net>
2012-05-02 14:55:53 -07:00