]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
14 years agodo_autogen.sh: don't clear CFLAGS, CXXFLAGS
Colin Patrick McCabe [Thu, 21 Apr 2011 22:46:23 +0000 (15:46 -0700)]
do_autogen.sh: don't clear CFLAGS, CXXFLAGS

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agotestceph: add more tests
Colin Patrick McCabe [Thu, 21 Apr 2011 22:41:55 +0000 (15:41 -0700)]
testceph: add more tests

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agolibceph: fix some bugs
Colin Patrick McCabe [Thu, 21 Apr 2011 21:24:15 +0000 (14:24 -0700)]
libceph: fix some bugs

Fix some bugs in libceph and testceph.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agolibceph: avoid DIR*, combine connect and mount
Colin Patrick McCabe [Thu, 21 Apr 2011 18:43:42 +0000 (11:43 -0700)]
libceph: avoid DIR*, combine connect and mount

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agohadoop: whitespace fixes
Colin Patrick McCabe [Thu, 21 Apr 2011 00:29:23 +0000 (17:29 -0700)]
hadoop: whitespace fixes

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoClient: unmount should not be able to fail
Colin Patrick McCabe [Wed, 20 Apr 2011 18:55:24 +0000 (11:55 -0700)]
Client: unmount should not be able to fail

If unmount fails, what is the API users supposed to do?
The client needs to be able to clean up after itself.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agolibceph API change
Colin Patrick McCabe [Wed, 20 Apr 2011 18:45:31 +0000 (11:45 -0700)]
libceph API change

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agomkcephfs: Fail if there are no mons defined.
Tommi Virtanen [Mon, 25 Apr 2011 17:21:54 +0000 (10:21 -0700)]
mkcephfs: Fail if there are no mons defined.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agomkcephfs: Fail if a mon has no address set.
Tommi Virtanen [Mon, 25 Apr 2011 17:21:39 +0000 (10:21 -0700)]
mkcephfs: Fail if a mon has no address set.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agomkcephfs: Remove temp dir, not just its contents.
Tommi Virtanen [Mon, 25 Apr 2011 17:20:34 +0000 (10:20 -0700)]
mkcephfs: Remove temp dir, not just its contents.

Also fixes the case where no temp files were created in the dir.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agomon: consisder osd recovery state in health check
Sage Weil [Sun, 24 Apr 2011 04:05:12 +0000 (21:05 -0700)]
mon: consisder osd recovery state in health check

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agomon: include unfound count in pg recovery summary
Sage Weil [Sun, 24 Apr 2011 04:04:52 +0000 (21:04 -0700)]
mon: include unfound count in pg recovery summary

Fixes: #1003
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agomon: fix up osd health report
Sage Weil [Sat, 23 Apr 2011 23:02:13 +0000 (16:02 -0700)]
mon: fix up osd health report

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agomon: fix up pg health report
Sage Weil [Sat, 23 Apr 2011 22:08:39 +0000 (15:08 -0700)]
mon: fix up pg health report

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agomon: generalize health check a bit
Sage Weil [Sat, 23 Apr 2011 22:07:32 +0000 (15:07 -0700)]
mon: generalize health check a bit

Any PaxosService can return a status (or not).

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoMerge branch 'master' of ssh://ceph.newdream.net/home/sage/ceph.newdream.net/git...
Sage Weil [Sat, 23 Apr 2011 20:09:49 +0000 (13:09 -0700)]
Merge branch 'master' of ssh://ceph.newdream.net/home/sage/ceph.newdream.net/git/ceph

14 years agoMakefile.am: add -fno-strict-aliasing
Colin Patrick McCabe [Sat, 23 Apr 2011 00:22:18 +0000 (17:22 -0700)]
Makefile.am: add -fno-strict-aliasing

Until we audit every place we have a typecast to make sure it's safe,
this should be off.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoMakefile.am: Wpointer-arith, Wstrict-null-sentinel
Colin Patrick McCabe [Sat, 23 Apr 2011 00:16:29 +0000 (17:16 -0700)]
Makefile.am: Wpointer-arith, Wstrict-null-sentinel

Add Wpointer-arith, Wstrict-null-sentinel, Winit-self

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoclitests: fix osdmap unit test
Sage Weil [Fri, 22 Apr 2011 23:39:21 +0000 (16:39 -0700)]
clitests: fix osdmap unit test

Broken by removal of casdata in 8cd3f1cd2546a61bb5402fa374de7f37147dc3a0.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoMakefile: add some new warnings to CXXFLAGS
Colin Patrick McCabe [Fri, 22 Apr 2011 23:30:51 +0000 (16:30 -0700)]
Makefile: add some new warnings to CXXFLAGS

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agomds: don't daemonize when doing journal reset.
Greg Farnum [Fri, 22 Apr 2011 23:17:55 +0000 (16:17 -0700)]
mds: don't daemonize when doing journal reset.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agorbd: rename kernel add/remove to map/unmap
Josh Durgin [Fri, 22 Apr 2011 22:25:33 +0000 (15:25 -0700)]
rbd: rename kernel add/remove to map/unmap

Unmap takes a device now, and uses the major number
to find the right sequence number in sysfs.

Also updated the man page.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agoMerge remote branch 'origin/next'
Josh Durgin [Fri, 22 Apr 2011 20:39:07 +0000 (13:39 -0700)]
Merge remote branch 'origin/next'

14 years agorbd: add commands for manipulating the kernel sysfs interface
Josh Durgin [Fri, 15 Apr 2011 23:58:19 +0000 (16:58 -0700)]
rbd: add commands for manipulating the kernel sysfs interface

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agomount.ceph: use common implementations of secret handling and address resolving
Josh Durgin [Fri, 15 Apr 2011 22:28:01 +0000 (15:28 -0700)]
mount.ceph: use common implementations of secret handling and address resolving

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agoaddr_parsing: use strtok_r to be safe
Josh Durgin [Fri, 22 Apr 2011 20:25:08 +0000 (13:25 -0700)]
addr_parsing: use strtok_r to be safe

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agoaddr_parsing: rename mount_resolve_dest to resolve_addrs and don't modify its argument
Josh Durgin [Fri, 15 Apr 2011 22:19:26 +0000 (15:19 -0700)]
addr_parsing: rename mount_resolve_dest to resolve_addrs and don't modify its argument

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agoaddr_parsing: move implementation out of header
Josh Durgin [Fri, 15 Apr 2011 22:00:07 +0000 (15:00 -0700)]
addr_parsing: move implementation out of header

Also include missing headers and make it linkable with C,
since it's duplicated from mount.ceph.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agorbd: use rados' init_with_config because we already called common_init
Josh Durgin [Thu, 14 Apr 2011 17:44:24 +0000 (10:44 -0700)]
rbd: use rados' init_with_config because we already called common_init

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agocommon, mount.ceph: move functions for working with secrets into secret.h
Josh Durgin [Wed, 13 Apr 2011 21:48:45 +0000 (14:48 -0700)]
common, mount.ceph: move functions for working with secrets into secret.h

Use sprintf instead of safe_cat, since we're just writing a string once.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agoMerge remote branch 'origin/next'
Sage Weil [Fri, 22 Apr 2011 19:30:37 +0000 (12:30 -0700)]
Merge remote branch 'origin/next'

14 years agotestlibrbd: fix signed/unsigned comparisons
Sage Weil [Wed, 20 Apr 2011 19:05:10 +0000 (12:05 -0700)]
testlibrbd: fix signed/unsigned comparisons

testlibrbd.c: In function 'write_test_data':
testlibrbd.c:191: warning: comparison between signed and unsigned integer expressions
testlibrbd.c: In function 'aio_read_test_data':
testlibrbd.c:207: warning: comparison between signed and unsigned integer expressions
testlibrbd.c: In function 'read_test_data':
testlibrbd.c:222: warning: comparison between signed and unsigned integer expressions

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoosd: drop 'casdata' bucket by default
Sage Weil [Wed, 20 Apr 2011 19:03:47 +0000 (12:03 -0700)]
osd: drop 'casdata' bucket by default

We don't use it for anything.  It just means we create a bunch of useless
PGs.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agocmds: make journal-check mode run in the foreground.
Greg Farnum [Fri, 22 Apr 2011 00:34:38 +0000 (17:34 -0700)]
cmds: make journal-check mode run in the foreground.

daemonize does a bunch of stuff we don't want to do.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agomds: massage handling of oneshot-replay.
Greg Farnum [Fri, 22 Apr 2011 00:10:46 +0000 (17:10 -0700)]
mds: massage handling of oneshot-replay.

We accidentally broke it in our last round of changes to support
standby-replay; patch it up again.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoOSDMon: make the defaults in reweight-by-utilization work.
Greg Farnum [Thu, 21 Apr 2011 20:18:51 +0000 (13:18 -0700)]
OSDMon: make the defaults in reweight-by-utilization work.

an oload <= 100 fails out; set the new default to 120.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agotestlibrbd: fix signed/unsigned comparisons
Sage Weil [Wed, 20 Apr 2011 19:05:10 +0000 (12:05 -0700)]
testlibrbd: fix signed/unsigned comparisons

testlibrbd.c: In function 'write_test_data':
testlibrbd.c:191: warning: comparison between signed and unsigned integer expressions
testlibrbd.c: In function 'aio_read_test_data':
testlibrbd.c:207: warning: comparison between signed and unsigned integer expressions
testlibrbd.c: In function 'read_test_data':
testlibrbd.c:222: warning: comparison between signed and unsigned integer expressions

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoosd: drop 'casdata' bucket by default
Sage Weil [Wed, 20 Apr 2011 19:03:47 +0000 (12:03 -0700)]
osd: drop 'casdata' bucket by default

We don't use it for anything.  It just means we create a bunch of useless
PGs.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoauth: const cleanup
Colin Patrick McCabe [Wed, 20 Apr 2011 21:26:48 +0000 (14:26 -0700)]
auth: const cleanup

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoobysnc: use python2.5 compatible exception syntax
Colin Patrick McCabe [Wed, 20 Apr 2011 21:33:03 +0000 (14:33 -0700)]
obysnc: use python2.5 compatible exception syntax

Apparently using "as" in "except" blocks is a new (and not
backwards-compatible) thing in Python 2.6.x. Who knew?

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoPGMonitor: unregister the config obs in ~PGMonitor
Colin Patrick McCabe [Wed, 20 Apr 2011 20:38:17 +0000 (13:38 -0700)]
PGMonitor: unregister the config obs in ~PGMonitor

Using the new unregister call, unregister the config observer in
~PGMonitor.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoconfig: add remove_observer
Colin Patrick McCabe [Wed, 20 Apr 2011 20:35:32 +0000 (13:35 -0700)]
config: add remove_observer

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoPGMon: use the config observer framework
Greg Farnum [Wed, 20 Apr 2011 20:54:56 +0000 (13:54 -0700)]
PGMon: use the config observer framework

We now register observers on mon_osd_full_ratio and nearfull_ratio
to update the OSD full/nearfull lists.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoProfLogger: add NULL to KEYS in the config observer.
Greg Farnum [Wed, 20 Apr 2011 20:51:50 +0000 (13:51 -0700)]
ProfLogger: add NULL to KEYS in the config observer.

I believe that without the null pointer it will overrun into
uninitialized memory.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoconfig: add comment clarifying virtual destructor.
Greg Farnum [Wed, 20 Apr 2011 20:51:01 +0000 (13:51 -0700)]
config: add comment clarifying virtual destructor.

Just in case anybody else is like me and gets confused.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoPGMap: fill in full OSD sets on decode.
Greg Farnum [Wed, 20 Apr 2011 17:58:23 +0000 (10:58 -0700)]
PGMap: fill in full OSD sets on decode.

Previously these sets were only modified when applying an incremental,
which might have caused problems when restarting monitors. Whoops!

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoMerge remote branch 'origin/classdist'
Sage Weil [Wed, 20 Apr 2011 04:55:50 +0000 (21:55 -0700)]
Merge remote branch 'origin/classdist'

14 years agoconf: reopen proflogger on conf change
Colin Patrick McCabe [Wed, 20 Apr 2011 00:51:33 +0000 (17:51 -0700)]
conf: reopen proflogger on conf change

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoconf: add observer framework
Colin Patrick McCabe [Tue, 19 Apr 2011 21:24:41 +0000 (14:24 -0700)]
conf: add observer framework

Objects can now register as configuration observers interested in a
subset of the configuration keys. The observers will be told exactly
which keys have changed.

The first user is dout, which now no longer needs the infamous SIGHUP
hack to know when to reopen the config file.

librados: Remove rados_reopen_log, which was basically a means for the
library user to trigger the SIGHUP behavior.

Changes are accumulated and applied all at once by apply_changes. This
function is called as part of common_init, and after every call to
injectargs.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agocauthtool: -C not -c in man page
Sage Weil [Tue, 19 Apr 2011 22:33:16 +0000 (15:33 -0700)]
cauthtool: -C not -c in man page

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agodout: make dout a member of md_config_t
Colin Patrick McCabe [Tue, 19 Apr 2011 21:24:41 +0000 (14:24 -0700)]
dout: make dout a member of md_config_t

Since logging options are per-config, logically DoutStreambuf instances
should also be per-config. This also allows us to eliminate the
"if (uninitialized)" checks at the beginning of every call to dout.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agodout: remove DOUTSB_FLAG_STDOUT
Colin Patrick McCabe [Tue, 19 Apr 2011 21:43:16 +0000 (14:43 -0700)]
dout: remove DOUTSB_FLAG_STDOUT

This was used to implement log_to_stdout, but that doesn't exist any
more. Instead of we have log_to_stderr and the other stuff.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoPGMap: add redo_full_sets() function for when ratios change.
Greg Farnum [Tue, 19 Apr 2011 22:02:58 +0000 (15:02 -0700)]
PGMap: add redo_full_sets() function for when ratios change.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoosdmon: Clean up debug output on map full flag.
Greg Farnum [Tue, 19 Apr 2011 21:30:38 +0000 (14:30 -0700)]
osdmon: Clean up debug output on map full flag.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoPGMap: add [near]full_ratio to the Incremental and encoding.
Greg Farnum [Tue, 19 Apr 2011 19:47:14 +0000 (12:47 -0700)]
PGMap: add [near]full_ratio to the Incremental and encoding.

This way these ratios can be distributed by map updates.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoPGMap: always decode pg_remove.
Greg Farnum [Tue, 19 Apr 2011 19:39:07 +0000 (12:39 -0700)]
PGMap: always decode pg_remove.

pg_remove has been included for longer than we've had versions
in the struct, so this check for end is useless -- if pg_remove
wasn't encoded we're already broken by decoding the version at
the beginning.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoosd: better debug output on replay completion
Sage Weil [Tue, 19 Apr 2011 21:32:56 +0000 (14:32 -0700)]
osd: better debug output on replay completion

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agomkcephfs: allow a prebuild osdmap to be specified
Sage Weil [Tue, 19 Apr 2011 21:13:02 +0000 (14:13 -0700)]
mkcephfs: allow a prebuild osdmap to be specified

Otherwise we'll create one with osdmaptool --createsimple with the default
generic settins.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agocfuse, mds, dout: Do not create "rank" symlinks for log files.
Tommi Virtanen [Tue, 19 Apr 2011 20:54:47 +0000 (13:54 -0700)]
cfuse, mds, dout: Do not create "rank" symlinks for log files.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agoRevert "Revert "autoconf: Complain if tcmalloc is not found.""
Sage Weil [Tue, 19 Apr 2011 19:05:36 +0000 (12:05 -0700)]
Revert "Revert "autoconf: Complain if tcmalloc is not found.""

This reverts commit 05c281bfa9e9d69ea3d0197590950c8e6845a13a.

This should be okay now.

14 years agodebian: Handle missing tcmalloc on Debian lenny.
Tommi Virtanen [Tue, 19 Apr 2011 18:20:24 +0000 (11:20 -0700)]
debian: Handle missing tcmalloc on Debian lenny.

lenny doesn't have a suitable libgoogle-perftools-dev, and
release.sh edits it out of build-deps. Detect that and tell
configure that not having tcmalloc is ok.

This should make 05c281bfa9e9d69ea3d0197590950c8e6845a13a
unnecessary.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agodebian: Build without tcmalloc on non-i386/amd64.
Tommi Virtanen [Tue, 19 Apr 2011 18:04:01 +0000 (11:04 -0700)]
debian: Build without tcmalloc on non-i386/amd64.

This is not strictly needed as of 05c281bfa9e9d69ea3d0197590950c8e6845a13a,
but that reverting is hopefully only temporary.

Without this, with 05c281 undone, non-mainstream architectures
would fail to build.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agoremove old debian build helper scripts.
Sage Weil [Tue, 19 Apr 2011 18:59:46 +0000 (11:59 -0700)]
remove old debian build helper scripts.

This is now handled by ceph-build.git

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomon: remove class distribution infrastructure
Sage Weil [Tue, 19 Apr 2011 18:33:34 +0000 (11:33 -0700)]
mon: remove class distribution infrastructure

This is now the admin's job.  Removes a lot of code with limited testing
and coverage.

We rev the internal monitor protocol because the state machine ids changed.
This should not affect the on-disk format. Just stop and restart all the
monitors at once during the upgrade.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoosd: move ClassHandler.{cc,h} to osd/
Sage Weil [Tue, 19 Apr 2011 18:11:51 +0000 (11:11 -0700)]
osd: move ClassHandler.{cc,h} to osd/

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoosd: load classes from a fixed location off disk
Sage Weil [Tue, 19 Apr 2011 18:09:54 +0000 (11:09 -0700)]
osd: load classes from a fixed location off disk

Simplify the class loading code to just load out of a local directory.
Do not request classes from the monitor.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agocommon: add environment.cc/environment.h
Colin Patrick McCabe [Tue, 19 Apr 2011 17:28:16 +0000 (10:28 -0700)]
common: add environment.cc/environment.h

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agomds: remove MDSlaveUpdate from list on deletion
Sage Weil [Tue, 19 Apr 2011 16:25:30 +0000 (09:25 -0700)]
mds: remove MDSlaveUpdate from list on deletion

These are added to the LogSegment list on the slaves, but also need to be
removed from that list when we replay a COMMIT|ROLLBACK or when the op's
fate is determined during the resolve stage.

This fixes a crash like

./include/elist.h: In function 'elist<T>::item::~item() [with T =
MDSlaveUpdate*]', in thread '0x7fb2004d5700'
./include/elist.h: 39: FAILED assert(!is_on_list())
 ceph version 0.26 (commit:9981ff90968398da43c63106694d661f5e3d07d5)
 1: (MDSlaveUpdate::~MDSlaveUpdate()+0x59) [0x4d9fe9]
 2: (ESlaveUpdate::replay(MDS*)+0x422) [0x4d2772]
 3: (MDLog::_replay_thread()+0xb90) [0x67f850]
 4: (MDLog::ReplayThread::entry()+0xd) [0x4b89ed]
 5: (()+0x7971) [0x7fb20564a971]
 6: (clone()+0x6d) [0x7fb2042e692d]
 ceph version 0.26 (commit:9981ff90968398da43c63106694d661f5e3d07d5)
 1: (MDSlaveUpdate::~MDSlaveUpdate()+0x59) [0x4d9fe9]
 2: (ESlaveUpdate::replay(MDS*)+0x422) [0x4d2772]
 3: (MDLog::_replay_thread()+0xb90) [0x67f850]
 4: (MDLog::ReplayThread::entry()+0xd) [0x4b89ed]
 5: (()+0x7971) [0x7fb20564a971]

Fixes: #1019
Signed-off-by: Sage Weil <sage@newdream.net>
14 years agocommon_init: move version printout to common_init
Colin Patrick McCabe [Tue, 19 Apr 2011 00:49:04 +0000 (17:49 -0700)]
common_init: move version printout to common_init

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agointerval_set: slightly better API for erase
Colin Patrick McCabe [Tue, 19 Apr 2011 00:32:16 +0000 (17:32 -0700)]
interval_set: slightly better API for erase

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoChange some global config options to env vars
Colin Patrick McCabe [Mon, 18 Apr 2011 22:45:54 +0000 (15:45 -0700)]
Change some global config options to env vars

Options that are inherently global, like malloc settings, and also
inherently debugging or profiling settings should be environment
variables.

tcmalloc_profiler_run, profiler_allocation_interval,
profiler_highwater_interval, and buffer_track_alloc fall into this
category.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoMerge commit '8038c491ba90a8cbcd569e84d4cafc8bbdff81d5' into next
Sage Weil [Mon, 18 Apr 2011 23:26:06 +0000 (16:26 -0700)]
Merge commit '8038c491ba90a8cbcd569e84d4cafc8bbdff81d5' into next

14 years agoMerge remote branch 'origin/stable' into next
Sage Weil [Mon, 18 Apr 2011 23:23:03 +0000 (16:23 -0700)]
Merge remote branch 'origin/stable' into next

14 years agojournaler: fix do_flush adjustment
Sage Weil [Mon, 18 Apr 2011 22:32:43 +0000 (15:32 -0700)]
journaler: fix do_flush adjustment

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoosd: assert on query on deleting pg
Sage Weil [Mon, 18 Apr 2011 22:30:50 +0000 (15:30 -0700)]
osd: assert on query on deleting pg

This shouldn't happen; assert if it does.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoosd: do not create pgs on query
Sage Weil [Mon, 18 Apr 2011 22:29:07 +0000 (15:29 -0700)]
osd: do not create pgs on query

We do not need to create the pg on query.  If we are a new replica we can
create it when we get the PGLog activate message.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agojournaler: truncate/zero ahead of write position
Sage Weil [Mon, 18 Apr 2011 22:06:25 +0000 (15:06 -0700)]
journaler: truncate/zero ahead of write position

Remove/zero objects N periods ahead of the journal write position.  This
ensures that when we reprobe the journal length, we will always detect the
end position as the correct write_pos, even when there is weird data
"ahead" of us that we may bump up against.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agofiler: remove whole objects on zero()
Sage Weil [Mon, 18 Apr 2011 21:48:34 +0000 (14:48 -0700)]
filer: remove whole objects on zero()

Make filer::zero() remove any whole objects.  This is required by the
Journaler, given the way it probes the journal length.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agointerval_set: implement erase(iterator)
Sage Weil [Mon, 18 Apr 2011 21:35:10 +0000 (14:35 -0700)]
interval_set: implement erase(iterator)

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoMerge branch 'next'
Sage Weil [Mon, 18 Apr 2011 22:06:47 +0000 (15:06 -0700)]
Merge branch 'next'

14 years agojournaler: check return code on _finish_write_head.
Greg Farnum [Mon, 18 Apr 2011 21:34:14 +0000 (14:34 -0700)]
journaler: check return code on _finish_write_head.

If we get an error code and assume we successfully wrote the head,
there are going to be all kinds of issues on replay!

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoosd: make ZERO on non-existent object a no-op
Sage Weil [Mon, 18 Apr 2011 20:55:16 +0000 (13:55 -0700)]
osd: make ZERO on non-existent object a no-op

Fixes bug where oi.size gets out of sync with the object size because we
actually write zeros.  (This explains #933.)

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agodout: remove references to g_conf
Colin Patrick McCabe [Mon, 18 Apr 2011 20:10:36 +0000 (13:10 -0700)]
dout: remove references to g_conf

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agovstart tests: specify ceph.conf
Colin Patrick McCabe [Mon, 18 Apr 2011 20:10:16 +0000 (13:10 -0700)]
vstart tests: specify ceph.conf

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorgw: return appropriate error for unresolvable email in acl
Yehuda Sadeh [Mon, 18 Apr 2011 19:54:02 +0000 (12:54 -0700)]
rgw: return appropriate error for unresolvable email in acl

14 years agoconfig: reorder config_option struct members
Colin Patrick McCabe [Mon, 18 Apr 2011 18:53:30 +0000 (11:53 -0700)]
config: reorder config_option struct members

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoclitests: fix radosgw_admin test
Colin Patrick McCabe [Mon, 18 Apr 2011 18:43:45 +0000 (11:43 -0700)]
clitests: fix radosgw_admin test

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoconfig: remove unused OPT_NONE type
Colin Patrick McCabe [Mon, 18 Apr 2011 18:44:00 +0000 (11:44 -0700)]
config: remove unused OPT_NONE type

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoclitests: eliminate use of old-style section name
Colin Patrick McCabe [Mon, 18 Apr 2011 18:43:23 +0000 (11:43 -0700)]
clitests: eliminate use of old-style section name

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoMDS: move slave rename xlock handling before finish_export_inode.
Greg Farnum [Sat, 16 Apr 2011 01:00:57 +0000 (18:00 -0700)]
MDS: move slave rename xlock handling before finish_export_inode.

finish_export_inode changes states! That's not good for our checks,
so just handle unpinning and stuff before we finish_export_inode.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoimprove debug printing
Greg Farnum [Fri, 15 Apr 2011 22:49:46 +0000 (15:49 -0700)]
improve debug printing

14 years agomds: Unify migration-handling code in _commit_slave_rename.
Greg Farnum [Thu, 14 Apr 2011 22:53:09 +0000 (15:53 -0700)]
mds: Unify migration-handling code in _commit_slave_rename.

We need to handle locks and pins on exported inodes but we
were using a separate if block with its own (non-matching!) check
for no good reason.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agomds: _commit_slave_rename needs to drop auth_pins for exported xlocks.
Greg Farnum [Mon, 11 Apr 2011 23:55:09 +0000 (16:55 -0700)]
mds: _commit_slave_rename needs to drop auth_pins for exported xlocks.

Otherwise these pins are never dropped from the inode since we
don't go through our normal xlock teardown code. Now we do!

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoMDS: Make _rename_apply inode import auth_pinning more intelligent.
Greg Farnum [Thu, 7 Apr 2011 00:05:26 +0000 (17:05 -0700)]
MDS: Make _rename_apply inode import auth_pinning more intelligent.

We don't want auth_pins on the locallocks (they're never auth_pinned)
and we only want new auth_pins that are for locks on the inode that we
imported -- not for each xlock that the mdr has everywhere (like,
say, on the srcdn)!

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agomds: If we're a slave, clean up xlocks when we export an inode.
Greg Farnum [Thu, 31 Mar 2011 21:02:48 +0000 (14:02 -0700)]
mds: If we're a slave, clean up xlocks when we export an inode.

Because we can do an inode import during a rename that skips the usual
channels, we were getting into an odd state with the xlocks (which we
did as a slave for an inode that we exported away). Clean up the
record of these xlocks for inodes before we get into the request
cleanup (at which point we are labeled as no-longer-auth, and the
standard cleanup routines will break).

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agomds: properly drop imported xlocks.
Greg Farnum [Thu, 31 Mar 2011 00:10:05 +0000 (17:10 -0700)]
mds: properly drop imported xlocks.

Because we can do an inode import during a rename that skips the usual
channels, we were getting into an odd state with the xlocks (which
were formerly remote and are now local). Clean up the record of
those remote xlocks.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoMDS: Server takes auth_pins for xlocks on imported inodes.
Greg Farnum [Fri, 25 Mar 2011 23:41:49 +0000 (16:41 -0700)]
MDS: Server takes auth_pins for xlocks on imported inodes.

Should fix #934.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoobjecter: resub ops on full->nonfull transition
Sage Weil [Mon, 18 Apr 2011 17:15:07 +0000 (10:15 -0700)]
objecter: resub ops on full->nonfull transition

This was broken a while ago during the last refactor.  Whoops!  Clean it
up to be smarter (and work at all).

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoosd: show "full" or "nearfull" in osdmap summary line
Sage Weil [Mon, 18 Apr 2011 16:57:55 +0000 (09:57 -0700)]
osd: show "full" or "nearfull" in osdmap summary line

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoMerge remote branch 'origin/stable'
Sage Weil [Mon, 18 Apr 2011 16:58:15 +0000 (09:58 -0700)]
Merge remote branch 'origin/stable'

Conflicts:
src/osdc/Journaler.cc