Commit Graph

14416 Commits

Author SHA1 Message Date
Sage Weil
d4588bae5b Merge branch 'stable' 2011-05-18 12:18:55 -07:00
Sage Weil
0d79f1dedc man: update cosd man page
Signed-off-by: Sage Weil <sage@newdream.net>
2011-05-18 11:45:46 -07:00
Sage Weil
071881d7e5 v0.28 2011-05-18 10:17:49 -07:00
Sage Weil
b060f5c892 Revert "Makefile.am: link some utils with libcrush"
This reverts commit c26649861e.

I'm not having any problems linking.  I suspect this was some automake
failure and that a 'make clean' is all that's needed to put everything
straight...

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-05-18 10:15:31 -07:00
Sage Weil
f1c82aaef0 logclient: get rid of send_log; simplify monitor special casing
Change the SYNC flag to MON and send the Mlog synchronously in the do_log
call.  This eliminates teh send_log vestigates completely.  Either we are
a monitor and queue for ourselves immediately, or log sending is handled
by MonClient.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-05-18 10:09:34 -07:00
Sage Weil
baba0a7ab3 msgr: fix signedness in alloc_aligned_buffer
Signed-off-by: Sage Weil <sage@newdream.net>
2011-05-18 10:07:02 -07:00
Sage Weil
bd1995c2d1 logclient: log synchronously to syslog
This is simpler.  And there is no reason to delay logging to syslog.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-05-18 10:01:12 -07:00
Sage Weil
4237da886e logclient: send entries once per mon session
We have a lossless session with the monitor!  Only send log entries once.
Otherwise, if the mon is down or something, we end up building up a HUGE
backlog of requests by resending the same messages over and over again.

To do this:
 - keep track of which entire we've sent.
 - reset when the session resets
 - let the MonClient control when log entries are sent, and reset

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-05-18 09:58:46 -07:00
Sage Weil
38ba4762da crush: fix clitest now that leading spaces are stripped
Signed-off-by: Sage Weil <sage@newdream.net>
2011-05-18 09:27:02 -07:00
Yehuda Sadeh
883a980a3c Makefile: don't clean up some files 2011-05-18 09:22:19 -07:00
Yehuda Sadeh
c26649861e Makefile.am: link some utils with libcrush 2011-05-18 05:25:46 -07:00
Yehuda Sadeh
e3841dc65e Makefile: don't clean up some files 2011-05-18 04:53:41 -07:00
Sage Weil
2b729875ed Merge remote branch 'origin/stable' into next 2011-05-17 22:04:44 -07:00
Sage Weil
09810cb29b page: fix #ifdef guard
Signed-off-by: Sage Weil <sage@newdream.net>
2011-05-17 22:00:19 -07:00
Sage Weil
2f9ff02258 page: redefine PAGE_* macros
Saw this on sid i386:

msg/SimpleMessenger.cc: In function 'void alloc_aligned_buffer(ceph::bufferlist&
, int, int)':
msg/SimpleMessenger.cc:1782:14: error: '__sysconf' was not declared in this scop
e
msg/SimpleMessenger.cc:1789:23: error: '__sysconf' was not declared in this scop

Some header is clobbering out PAGE_* macros.  Make our header more
forceful.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-05-17 22:00:19 -07:00
Sage Weil
ee7fa813ef mds: do not shift to EXCL or MIX while rdlocked
There was an old change in file_eval() that was allowing us to switch from
SYNC to MIX or EXCL while there were rdlocks, which either caused lots of
lock thrashing or could (I think) hang things up completely.  This was
from ea10a672, an ancient fix for something related that appears to have
taken out the rdlocked check by accident.

In my tests (one writer, one stat-er), this took things from long stalls
(up to 20 seconds) to very responsive stats.  Yay!

Fixes: #791
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-05-17 21:29:57 -07:00
Sage Weil
9be719387f vstart: simplify mds keyring add
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-05-17 21:08:32 -07:00
Sage Weil
812ce6e96d Merge branch 'next' 2011-05-17 21:08:00 -07:00
Sage Weil
bfca7ac58b osd: add --mkkey mkfs option
Optionally generate a new key as part of the mkfs step.  This makes life
a bit easier for the admin.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-05-17 18:49:39 -07:00
Sage Weil
8ad346a3a9 mon: 'auth caps <name> [svc value [svc2 value2 [...]]]'
Avoid having to futz with cauthtool if possible.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-05-17 18:49:39 -07:00
Josh Durgin
660e6d529f Merge remote branch 'origin/next' 2011-05-17 17:45:45 -07:00
Josh Durgin
a22511db22 PG: update same_acting_since when acting or up changes
This is a hack since we currently use same_up_since to denote the beginning of an interval.
We should probably change this usaged or rename it to same_interval since.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-05-17 17:30:02 -07:00
Sage Weil
50be4c464b crush: allow - and _ in crushmap type/item names
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-05-17 17:27:56 -07:00
Sage Weil
45494b4d0a crushtool: strip leading spaces from identifiers
No idea where these are coming from!  Weird.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-05-17 17:27:56 -07:00
Sage Weil
73b99163ab msgr: avoid clearing connection_state on pipe replacement
read_message and write_message both dereference connection-state, so avoid
clearing it when replacing a pipe.

read_message still uses it to find rx_buffers in ways that may interfere
when two Pipes reference the connection, but currently that is only used
for lossy pipes.  We could still take pipe_lock in that case, but it is
only an optimization (we copy the data if the buffers don't get used
directly) and probably not worth bothering with.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-05-17 17:27:56 -07:00
Sage Weil
ec63ec3e53 mon: 'osd tree [epoch]'
Dump crush map + osd state, displayed as a tree.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-05-17 17:05:55 -07:00
Sage Weil
108b2a69c1 osdmaptool: print crush tree + osd state
Output osd state combined with crush tree placement.  Note osds in tree
that do not exist and list osds that exist that are not included in the
tree.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-05-17 17:05:54 -07:00
Colin Patrick McCabe
0e3f09238b librgw: be quiet by default
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-05-17 16:29:46 -07:00
Colin Patrick McCabe
d4c4fe810d pybind/rgw: fix python bindings for librgw
Use string_at to convert between librgw buffers and Python strings.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-05-17 15:04:18 -07:00
Colin Patrick McCabe
b5726e111b librgw: make API reentrant
By passing in the configuration, we can use multiple librgw instances in
parallel-- or will be able to, once g_conf is de-globalized.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-05-17 15:04:18 -07:00
Sage Weil
34ffe73816 ceph.spec.in: add obsync
Signed-off-by: Sage Weil <sage@newdream.net>
2011-05-17 14:26:30 -07:00
Sage Weil
28e175d640 debian: obsync
Signed-off-by: Sage Weil <sage@newdream.net>
2011-05-17 14:26:30 -07:00
Sage Weil
6d56c20f4c obsync: no .py
Signed-off-by: Sage Weil <sage@newdream.net>
2011-05-17 14:26:29 -07:00
Samuel Just
bbb1747a0e PG: Replicas send Notifies in response to queries
Replicas only send Infos during activate.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2011-05-17 14:19:50 -07:00
Sage Weil
4320cb15d4 Merge branch 'wip-crush' 2011-05-17 14:12:45 -07:00
Samuel Just
9c8f30f16e PG: choose_log_location, fix error when scanning up set
++up.begin() does not skip the primary. Primary might not be up[0].

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2011-05-17 14:09:37 -07:00
Sage Weil
d90458a933 osdmap: set type 0 to 'osd'
Signed-off-by: Sage Weil <sage@newdream.net>
2011-05-17 13:58:26 -07:00
Sage Weil
f6dc19e344 crushtool: fix error handling for adding devices
Signed-off-by: Sage Weil <sage@newdream.net>
2011-05-17 13:58:17 -07:00
Sage Weil
c73e37b0c8 crushtool: fix unittest map
Signed-off-by: Sage Weil <sage@newdream.net>
2011-05-17 13:35:04 -07:00
Sage Weil
c9a257e362 crushtool: fix usage
Signed-off-by: Sage Weil <sage@newdream.net>
2011-05-17 13:33:42 -07:00
Sage Weil
e46804bbf8 osdmap: use straw buckets everywhere by default
We were using uniform for the leaf buckets. Use straw instead.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-05-17 13:30:49 -07:00
Sage Weil
d40010bd55 crush: add add_item and reweight functions
Insert a device at a particular point in the hierarchy, and adjust weights
as appropriate.

Signed-off-by: Sage Weil <sage@newdream.net>
2011-05-17 13:30:49 -07:00
Sage Weil
042139d1ac crushtool: include cumulative bucket weight in decompile
Signed-off-by: Sage Weil <sage@newdream.net>
2011-05-17 13:03:38 -07:00
Sage Weil
9a2def6e5a crush: fix up constness some
Signed-off-by: Sage Weil <sage@newdream.net>
2011-05-17 13:03:01 -07:00
Colin Patrick McCabe
36fb0846a8 Add Python bindings for librgw
Add some Python bindings for librgw.
Also add some more verbose error logging to librgw.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-05-17 11:04:12 -07:00
Samuel Just
b13bbb064c PG: PG can receive a log in WaitActingChange requested in GetLog
Discard logs requested during GetLog once we are in WaitActingChange.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
2011-05-17 09:58:06 -07:00
Yehuda Sadeh
8ed372c903 rgw: ahrm.. now really fix logging 2011-05-17 06:39:03 -07:00
Yehuda Sadeh
0b6cb47d1c rgw: fix logging 2011-05-17 06:18:43 -07:00
Yehuda Sadeh
b7b47a02b9 rgw: fix typo 2011-05-17 04:24:51 -07:00
Yehuda Sadeh
8836b8447a rgw: don't log operations on unexisting bucket 2011-05-17 04:15:10 -07:00