]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
14 years agoceph_crypto: add assert_init
Colin Patrick McCabe [Fri, 20 May 2011 22:12:49 +0000 (15:12 -0700)]
ceph_crypto: add assert_init

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoconfig: delete after new
Sage Weil [Sat, 21 May 2011 01:16:49 +0000 (18:16 -0700)]
config: delete after new

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agocrush: fix signedness warnings
Sage Weil [Sat, 21 May 2011 00:10:15 +0000 (17:10 -0700)]
crush: fix signedness warnings

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agocrushtool: --remove-item name
Sage Weil [Fri, 20 May 2011 23:45:57 +0000 (16:45 -0700)]
crushtool: --remove-item name

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agocrush: fix tree bucket encoding
Sage Weil [Fri, 20 May 2011 23:41:16 +0000 (16:41 -0700)]
crush: fix tree bucket encoding

I wonder how long this has been broken!

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agocrush: fix tree weight accessor, decompile
Sage Weil [Fri, 20 May 2011 23:40:36 +0000 (16:40 -0700)]
crush: fix tree weight accessor, decompile

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agodout: reopen log files on SIGHUP
Colin Patrick McCabe [Fri, 20 May 2011 21:23:10 +0000 (14:23 -0700)]
dout: reopen log files on SIGHUP

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoAdd SignalSafeQueue
Colin Patrick McCabe [Fri, 20 May 2011 18:35:19 +0000 (11:35 -0700)]
Add SignalSafeQueue

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agomon: log mkfs as INFO with fs
Sage Weil [Fri, 20 May 2011 03:45:48 +0000 (20:45 -0700)]
mon: log mkfs as INFO with fs

The [ERR] log level is misleading.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agomds: kick linklock on revoke_stale_caps
Sage Weil [Fri, 20 May 2011 00:20:18 +0000 (17:20 -0700)]
mds: kick linklock on revoke_stale_caps

Also use the eval() method and issue caps instead of calling the individual
eval methods.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agodebian: no shlibs:Depends for obsync either
Sage Weil [Thu, 19 May 2011 23:15:59 +0000 (16:15 -0700)]
debian: no shlibs:Depends for obsync either

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agodebian: no shlibs:Depends for -dev packages
Sage Weil [Thu, 19 May 2011 23:15:26 +0000 (16:15 -0700)]
debian: no shlibs:Depends for -dev packages

So says dpkg-gencontrol, at least:

warning: dpkg-gencontrol: Depends field of package librados-dev: unknown substitution variable ${shlibs:Depends}
...

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agolibrbd: don't need to link against crypto libs
Sage Weil [Thu, 19 May 2011 23:13:34 +0000 (16:13 -0700)]
librbd: don't need to link against crypto libs

All that is done by librados.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoexpanding testceph to test open/readdir/telldir
Brian Chrisman [Thu, 19 May 2011 20:22:33 +0000 (13:22 -0700)]
expanding testceph to test open/readdir/telldir

Signed-off-by: Brian Chrisman <brchrisman@gmail.com>
Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoadd ceph_readdir() to libceph
Brian Chrisman [Thu, 19 May 2011 20:22:32 +0000 (13:22 -0700)]
add ceph_readdir() to libceph

Signed-off-by: Brian Chrisman <brchrisman@gmail.com>
Signed-off-by: Sage Weil <sage@newdream.net>
14 years agolibrados: add python bindings for getxattrs
Colin Patrick McCabe [Thu, 19 May 2011 21:27:19 +0000 (14:27 -0700)]
librados: add python bindings for getxattrs

Add python bindings for getxattrs. Test getxattr, getxattrs, and
setxattr.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoclient: hold FILE_BUFFER ref while waiting for dirty throttle
Sage Weil [Thu, 19 May 2011 22:03:13 +0000 (15:03 -0700)]
client: hold FILE_BUFFER ref while waiting for dirty throttle

We may block in the write path because we've reached out dirty data limit.
Hold a reference to the FILE_BUFFER cap during that interval so we don't
lose the cap and put new dirty buffers into the objectcacher out of turn.

(We could also recheck our ability to take the ref after blocking, but I
think this is cleaner.)

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoclient: clean up _flush callers
Sage Weil [Thu, 19 May 2011 22:01:50 +0000 (15:01 -0700)]
client: clean up _flush callers

Have _flush return true if there are no dirty buffers.  Clean up some
redundant conditionals in the callers

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoclient: assert(in) on _flush
Sage Weil [Thu, 19 May 2011 22:00:34 +0000 (15:00 -0700)]
client: assert(in) on _flush

We should never arrive in _flush() and not have a reference to the inode
in question, because the presence of dirty buffers pins the inode.  This
condition was introduced forever ago; clean it out.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoclient: be more careful with FILE_BUFFER cap refs
Sage Weil [Thu, 19 May 2011 21:50:41 +0000 (14:50 -0700)]
client: be more careful with FILE_BUFFER cap refs

We should either hold a ref or not; whether we release one can't depend on
whether one is held because we can't assume the ref belongs to us.

This changes the fix in cf6b1de4 so that the ObjectCacher just calls the
flush callback if it happens to trim all dirty buffers.

We also drop the (bogus) assert about the number of refs held.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoclient: _flush should no-op if nothing to flush
Sage Weil [Thu, 19 May 2011 19:21:51 +0000 (12:21 -0700)]
client: _flush should no-op if nothing to flush

If there are no FILE_BUFFER cap_refs, then we can bail out early.
Otherwise we will end up dropping refs we don't have.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoMerge remote branch 'origin/stable'
Sage Weil [Thu, 19 May 2011 22:04:19 +0000 (15:04 -0700)]
Merge remote branch 'origin/stable'

14 years agolibrados: add rados_getxattrs API for C bindings
Colin Patrick McCabe [Thu, 19 May 2011 01:37:12 +0000 (18:37 -0700)]
librados: add rados_getxattrs API for C bindings

Support getxattrs in the Rados C API.

Also add a test of getattrs to testrados.c

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agotestrados: retab with C-style tabs
Colin Patrick McCabe [Thu, 19 May 2011 18:49:50 +0000 (11:49 -0700)]
testrados: retab with C-style tabs

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agotestrados: more getxattr / setxattr tests
Colin Patrick McCabe [Thu, 19 May 2011 18:37:35 +0000 (11:37 -0700)]
testrados: more getxattr / setxattr tests

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoRemove libcrush from packaging
Colin Patrick McCabe [Thu, 19 May 2011 18:18:00 +0000 (11:18 -0700)]
Remove libcrush from packaging

This removes libcrush from the packaging system, now that it's been
merged into libcommon.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoclient: do not retake lock in sync_write_commit
Sage Weil [Thu, 19 May 2011 17:39:36 +0000 (10:39 -0700)]
client: do not retake lock in sync_write_commit

We already hold the lock from a few frames up the stack (ms_dispatch).

Reported-by: Simon Tian <aixt2006@gmail.com>
Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoceph.spec.in: fix obsync description
Colin Patrick McCabe [Thu, 19 May 2011 17:13:20 +0000 (10:13 -0700)]
ceph.spec.in: fix obsync description

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agojournaler: ENOENT is okay on trim
Sage Weil [Thu, 19 May 2011 17:11:56 +0000 (10:11 -0700)]
journaler: ENOENT is okay on trim

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomkcephfs: pick rdir based on whether current daemon is local or not
Sage Weil [Thu, 19 May 2011 16:29:11 +0000 (09:29 -0700)]
mkcephfs: pick rdir based on whether current daemon is local or not

We need to pick $rdir as local or remote inside the for name loop.

Fixes: #1094
Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoMerge branch 'move_crush_to_libcommon'
Colin Patrick McCabe [Wed, 18 May 2011 22:37:33 +0000 (15:37 -0700)]
Merge branch 'move_crush_to_libcommon'

14 years agoMove crush into libcommon
Colin Patrick McCabe [Wed, 18 May 2011 18:32:54 +0000 (11:32 -0700)]
Move crush into libcommon

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoMove crush into libcommon
Colin Patrick McCabe [Wed, 18 May 2011 18:32:54 +0000 (11:32 -0700)]
Move crush into libcommon

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoMerge branch 'stable'
Sage Weil [Wed, 18 May 2011 19:18:55 +0000 (12:18 -0700)]
Merge branch 'stable'

14 years agoman: update cosd man page
Sage Weil [Wed, 18 May 2011 18:45:46 +0000 (11:45 -0700)]
man: update cosd man page

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agov0.28 v0.28
Sage Weil [Wed, 18 May 2011 01:03:37 +0000 (18:03 -0700)]
v0.28

14 years agoRevert "Makefile.am: link some utils with libcrush"
Sage Weil [Wed, 18 May 2011 17:15:31 +0000 (10:15 -0700)]
Revert "Makefile.am: link some utils with libcrush"

This reverts commit c26649861e4c154b1bedf6801342d0a8461a2d0a.

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>
14 years agologclient: get rid of send_log; simplify monitor special casing
Sage Weil [Wed, 18 May 2011 17:09:34 +0000 (10:09 -0700)]
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>
14 years agomsgr: fix signedness in alloc_aligned_buffer
Sage Weil [Wed, 18 May 2011 17:06:44 +0000 (10:06 -0700)]
msgr: fix signedness in alloc_aligned_buffer

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agologclient: log synchronously to syslog
Sage Weil [Wed, 18 May 2011 17:01:12 +0000 (10:01 -0700)]
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>
14 years agologclient: send entries once per mon session
Sage Weil [Wed, 18 May 2011 16:58:46 +0000 (09:58 -0700)]
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>
14 years agocrush: fix clitest now that leading spaces are stripped
Sage Weil [Wed, 18 May 2011 16:26:51 +0000 (09:26 -0700)]
crush: fix clitest now that leading spaces are stripped

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoMakefile: don't clean up some files
Yehuda Sadeh [Wed, 18 May 2011 11:53:41 +0000 (04:53 -0700)]
Makefile: don't clean up some files

14 years agoMakefile.am: link some utils with libcrush
Yehuda Sadeh [Wed, 18 May 2011 12:25:46 +0000 (05:25 -0700)]
Makefile.am: link some utils with libcrush

14 years agoMakefile: don't clean up some files
Yehuda Sadeh [Wed, 18 May 2011 11:53:41 +0000 (04:53 -0700)]
Makefile: don't clean up some files

14 years agoMerge remote branch 'origin/stable' into next
Sage Weil [Wed, 18 May 2011 05:04:44 +0000 (22:04 -0700)]
Merge remote branch 'origin/stable' into next

14 years agopage: fix #ifdef guard
Sage Weil [Wed, 18 May 2011 05:00:03 +0000 (22:00 -0700)]
page: fix #ifdef guard

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agopage: redefine PAGE_* macros
Sage Weil [Wed, 18 May 2011 01:26:46 +0000 (18:26 -0700)]
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>
14 years agomds: do not shift to EXCL or MIX while rdlocked
Sage Weil [Wed, 18 May 2011 04:29:33 +0000 (21:29 -0700)]
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>
14 years agovstart: simplify mds keyring add
Sage Weil [Wed, 18 May 2011 04:08:32 +0000 (21:08 -0700)]
vstart: simplify mds keyring add

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoMerge branch 'next'
Sage Weil [Wed, 18 May 2011 04:08:00 +0000 (21:08 -0700)]
Merge branch 'next'

14 years agoosd: add --mkkey mkfs option
Sage Weil [Wed, 18 May 2011 01:46:38 +0000 (18:46 -0700)]
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>
14 years agomon: 'auth caps <name> [svc value [svc2 value2 [...]]]'
Sage Weil [Wed, 18 May 2011 01:32:03 +0000 (18:32 -0700)]
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>
14 years agoMerge remote branch 'origin/next'
Josh Durgin [Wed, 18 May 2011 00:45:45 +0000 (17:45 -0700)]
Merge remote branch 'origin/next'

14 years agoPG: update same_acting_since when acting or up changes
Josh Durgin [Wed, 18 May 2011 00:36:39 +0000 (17:36 -0700)]
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>
14 years agocrush: allow - and _ in crushmap type/item names
Sage Weil [Wed, 18 May 2011 00:27:39 +0000 (17:27 -0700)]
crush: allow - and _ in crushmap type/item names

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agocrushtool: strip leading spaces from identifiers
Sage Weil [Wed, 18 May 2011 00:27:16 +0000 (17:27 -0700)]
crushtool: strip leading spaces from identifiers

No idea where these are coming from!  Weird.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agomsgr: avoid clearing connection_state on pipe replacement
Sage Weil [Tue, 17 May 2011 17:10:45 +0000 (10:10 -0700)]
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>
14 years agomon: 'osd tree [epoch]'
Sage Weil [Tue, 17 May 2011 22:32:56 +0000 (15:32 -0700)]
mon: 'osd tree [epoch]'

Dump crush map + osd state, displayed as a tree.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoosdmaptool: print crush tree + osd state
Sage Weil [Tue, 17 May 2011 22:31:37 +0000 (15:31 -0700)]
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>
14 years agolibrgw: be quiet by default
Colin Patrick McCabe [Tue, 17 May 2011 23:29:46 +0000 (16:29 -0700)]
librgw: be quiet by default

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agopybind/rgw: fix python bindings for librgw
Colin Patrick McCabe [Tue, 17 May 2011 22:03:36 +0000 (15:03 -0700)]
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>
14 years agolibrgw: make API reentrant
Colin Patrick McCabe [Tue, 17 May 2011 18:18:52 +0000 (11:18 -0700)]
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>
14 years agoceph.spec.in: add obsync
Sage Weil [Tue, 17 May 2011 21:25:47 +0000 (14:25 -0700)]
ceph.spec.in: add obsync

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agodebian: obsync
Sage Weil [Mon, 16 May 2011 21:28:33 +0000 (14:28 -0700)]
debian: obsync

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoobsync: no .py
Sage Weil [Mon, 16 May 2011 21:28:28 +0000 (14:28 -0700)]
obsync: no .py

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoPG: Replicas send Notifies in response to queries
Samuel Just [Wed, 11 May 2011 18:56:34 +0000 (11:56 -0700)]
PG: Replicas send Notifies in response to queries

Replicas only send Infos during activate.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
14 years agoMerge branch 'wip-crush'
Sage Weil [Tue, 17 May 2011 21:12:45 +0000 (14:12 -0700)]
Merge branch 'wip-crush'

14 years agoPG: choose_log_location, fix error when scanning up set
Samuel Just [Wed, 11 May 2011 20:50:20 +0000 (13:50 -0700)]
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>
14 years agoosdmap: set type 0 to 'osd'
Sage Weil [Tue, 17 May 2011 20:58:26 +0000 (13:58 -0700)]
osdmap: set type 0 to 'osd'

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agocrushtool: fix error handling for adding devices
Sage Weil [Tue, 17 May 2011 20:58:17 +0000 (13:58 -0700)]
crushtool: fix error handling for adding devices

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agocrushtool: fix unittest map
Sage Weil [Tue, 17 May 2011 20:35:04 +0000 (13:35 -0700)]
crushtool: fix unittest map

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agocrushtool: fix usage
Sage Weil [Tue, 17 May 2011 20:33:42 +0000 (13:33 -0700)]
crushtool: fix usage

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoosdmap: use straw buckets everywhere by default
Sage Weil [Tue, 17 May 2011 20:29:30 +0000 (13:29 -0700)]
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>
14 years agocrush: add add_item and reweight functions
Sage Weil [Tue, 17 May 2011 20:04:24 +0000 (13:04 -0700)]
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>
14 years agocrushtool: include cumulative bucket weight in decompile
Sage Weil [Tue, 17 May 2011 20:03:38 +0000 (13:03 -0700)]
crushtool: include cumulative bucket weight in decompile

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agocrush: fix up constness some
Sage Weil [Tue, 17 May 2011 20:03:01 +0000 (13:03 -0700)]
crush: fix up constness some

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoAdd Python bindings for librgw
Colin Patrick McCabe [Fri, 13 May 2011 23:07:08 +0000 (16:07 -0700)]
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>
14 years agoPG: PG can receive a log in WaitActingChange requested in GetLog
Samuel Just [Tue, 17 May 2011 16:57:09 +0000 (09:57 -0700)]
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>
14 years agorgw: ahrm.. now really fix logging
Yehuda Sadeh [Tue, 17 May 2011 13:39:03 +0000 (06:39 -0700)]
rgw: ahrm.. now really fix logging

14 years agorgw: fix logging
Yehuda Sadeh [Tue, 17 May 2011 13:18:43 +0000 (06:18 -0700)]
rgw: fix logging

14 years agorgw: fix typo
Yehuda Sadeh [Tue, 17 May 2011 11:24:51 +0000 (04:24 -0700)]
rgw: fix typo

14 years agorgw: don't log operations on unexisting bucket
Yehuda Sadeh [Tue, 17 May 2011 11:15:10 +0000 (04:15 -0700)]
rgw: don't log operations on unexisting bucket

14 years agoobsync: preserve user-defined metadata
Colin Patrick McCabe [Tue, 17 May 2011 00:12:45 +0000 (17:12 -0700)]
obsync: preserve user-defined metadata

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoobsync: filestore: separate xattr metadata nspace
Colin Patrick McCabe [Mon, 16 May 2011 23:51:45 +0000 (16:51 -0700)]
obsync: filestore: separate xattr metadata nspace

User-defined s3 metadata lives in a separate namespace from regular S3
metadata like Content-Type, etc.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoPG: Don't use exit to call proc_master_log
Samuel Just [Mon, 16 May 2011 23:24:02 +0000 (16:24 -0700)]
PG: Don't use exit to call proc_master_log

exit is also invoked when transitioning to Reset...

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
14 years agoobysnc: preserve Content-Type
Colin Patrick McCabe [Mon, 16 May 2011 18:50:21 +0000 (11:50 -0700)]
obysnc: preserve Content-Type

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoclient: update ctime for auth, xattr
Sage Weil [Mon, 16 May 2011 21:47:29 +0000 (14:47 -0700)]
client: update ctime for auth, xattr

This mirrors the kclient fix in d8672d64.  The client can have a newer
ctime due to auth or xattr excl caps.  This fixes cases where ctime goes
backwards due to the right sequence of local operations and replies
from the MDS.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoobsync: FileStore: test storing ACLs in xattrs
Colin Patrick McCabe [Mon, 16 May 2011 17:54:13 +0000 (10:54 -0700)]
obsync: FileStore: test storing ACLs in xattrs

Update unit tests now that we're storing ACLs in xattrs. Fix a bug.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agomon: health WARN if monitor quorum is incomplete
Sage Weil [Mon, 16 May 2011 20:42:31 +0000 (13:42 -0700)]
mon: health WARN if monitor quorum is incomplete

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoobsync: FileStore: store ACLs in xattrs
Colin Patrick McCabe [Mon, 16 May 2011 17:54:13 +0000 (10:54 -0700)]
obsync: FileStore: store ACLs in xattrs

Store the ACL XML in extended attributes rather than in side files.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoobsync: FileStore: test for xattr support
Colin Patrick McCabe [Mon, 16 May 2011 17:42:36 +0000 (10:42 -0700)]
obsync: FileStore: test for xattr support

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorados: don't force order on params
Yehuda Sadeh [Mon, 16 May 2011 13:24:02 +0000 (06:24 -0700)]
rados: don't force order on params

14 years agofix segfault introduced by commit de640d85fa3e0e5e5a31704eab5a8714a1ffe867
root [Sun, 15 May 2011 13:54:13 +0000 (08:54 -0500)]
fix segfault introduced by commit de640d85fa3e0e5e5a31704eab5a8714a1ffe867

That commit introduces the line 'cur_con->put()' which has the possibility
of being called while cur_con is not initialized.

14 years agoosd: lazily close connections to down peers
Sage Weil [Fri, 13 May 2011 20:01:52 +0000 (13:01 -0700)]
osd: lazily close connections to down peers

If we hear from a peer that should be dead, tell them, but mark our
connection so that it will close after that message is delivered or if
it encounters any errors.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agomsgr: mark_down_on_empty and mark_disposable
Sage Weil [Fri, 13 May 2011 20:01:08 +0000 (13:01 -0700)]
msgr: mark_down_on_empty and mark_disposable

Mark a connection to close when messages are sent, and to close on any
error.  We can use this to tell people who should be dead that they should
be dead, but not waste resources reconnecting to them.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoPG: Remove downed osds from peer_missing and peer_info
Sage Weil [Sat, 14 May 2011 20:46:09 +0000 (13:46 -0700)]
PG: Remove downed osds from peer_missing and peer_info

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoPG: Only pull the master log from a member of the prior_set
Samuel Just [Sat, 14 May 2011 00:30:50 +0000 (17:30 -0700)]
PG: Only pull the master log from a member of the prior_set

There must be a member of the prior_set such that no other
osd has a more recent last_update.  This way, prior_set_affected
will ensure that we reset peering if the master log source
goes down.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
14 years agorgw: Move rgw_log_level to md_config_t
Colin Patrick McCabe [Sat, 14 May 2011 00:19:20 +0000 (17:19 -0700)]
rgw: Move rgw_log_level to md_config_t

Need to do this to get librgw to be usable as a standalone library
without unresolved symbols. Also, this makes it consistent with the rest
of the log level settings.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoMakefile.am: add SimpleMessenger.cc to libcommon
Colin Patrick McCabe [Sat, 14 May 2011 00:16:04 +0000 (17:16 -0700)]
Makefile.am: add SimpleMessenger.cc to libcommon

libcommon depends on this file, and there's no other library that it
could go in. It is certainly silly to manually include it in every
application and library that uses libcommon.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>