]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
14 years agoobsync: implement RadosStore
Colin Patrick McCabe [Tue, 26 Apr 2011 18:23:18 +0000 (11:23 -0700)]
obsync: implement RadosStore

Implement RadosStore, a storage backend which accesses librados
directly, without going through RGW (Rados GateWay).

This version is still very preliminary because ACLs aren't supported.
We need ACLs even to do things like properly create buckets.
Instead, this version has ACL_HACK, which is just for testing purposes.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoradostool: fix getxattr / setxattr return code
Colin Patrick McCabe [Mon, 25 Apr 2011 18:52:45 +0000 (11:52 -0700)]
radostool: fix getxattr / setxattr return code

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorbd: make showmapped output a bit prettier
Sage Weil [Tue, 26 Apr 2011 18:04:28 +0000 (11:04 -0700)]
rbd: make showmapped output a bit prettier

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agorbd: showmapped
Sage Weil [Tue, 26 Apr 2011 17:55:43 +0000 (10:55 -0700)]
rbd: showmapped

Show mapped rbd devices.

Fixes: #1024
Signed-off-by: Sage Weil <sage@newdream.net>
14 years agopybind-rados: fix Ioctx::close
Colin Patrick McCabe [Tue, 26 Apr 2011 17:49:02 +0000 (10:49 -0700)]
pybind-rados: fix Ioctx::close

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agotest-obsync.py: add tests with --no-preserve-acls
Colin Patrick McCabe [Tue, 26 Apr 2011 17:06:54 +0000 (10:06 -0700)]
test-obsync.py: add tests with --no-preserve-acls

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoobjectstore: drop decode support for <= v0.19 encoded transactions
Sage Weil [Tue, 26 Apr 2011 04:06:18 +0000 (21:06 -0700)]
objectstore: drop decode support for <= v0.19 encoded transactions

This only affects online upgrade or journal replay of v0.19 generated
transactions.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agomon: fix pg stat summary
Sage Weil [Mon, 25 Apr 2011 23:27:38 +0000 (16:27 -0700)]
mon: fix pg stat summary

Had the pg state counts in there twice.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomds: undump-journal
Sage Weil [Tue, 26 Apr 2011 16:40:15 +0000 (09:40 -0700)]
mds: undump-journal

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agobuffer: break out read_fd method
Sage Weil [Tue, 26 Apr 2011 16:40:03 +0000 (09:40 -0700)]
buffer: break out read_fd method

Read N bytes from the provided fd into the bufferlist.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agorgw: check if bucket is empty before removing it
Yehuda Sadeh [Tue, 26 Apr 2011 00:15:05 +0000 (17:15 -0700)]
rgw: check if bucket is empty before removing it

14 years agoobsync: another fix for --no-preserve-acls
Colin Patrick McCabe [Mon, 25 Apr 2011 23:39:57 +0000 (16:39 -0700)]
obsync: another fix for --no-preserve-acls

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoobsync: fix bug in --no-preserve-acls
Colin Patrick McCabe [Mon, 25 Apr 2011 23:03:19 +0000 (16:03 -0700)]
obsync: fix bug in --no-preserve-acls

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agomds: Don't twiddle lock states in the middle of an import.
Greg Farnum [Mon, 25 Apr 2011 21:40:09 +0000 (14:40 -0700)]
mds: Don't twiddle lock states in the middle of an import.

This should have gone in a028c8954ca240ec9a12682678aaee02eb507ae3.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoMerge branch 'stable'
Sage Weil [Mon, 25 Apr 2011 21:34:49 +0000 (14:34 -0700)]
Merge branch 'stable'

Conflicts:
src/mds/MDLog.cc
src/osdc/Journaler.cc
src/osdc/Journaler.h

14 years agorgw: send content length on put operation
Yehuda Sadeh [Mon, 25 Apr 2011 21:31:25 +0000 (14:31 -0700)]
rgw: send content length on put operation

14 years agomds: only move the journaler expire_pos forward
Sage Weil [Mon, 25 Apr 2011 18:44:14 +0000 (11:44 -0700)]
mds: only move the journaler expire_pos forward

We were seeing weird trim errors because expire_pos was getting moved
backwards after a standby-replay -> replay transition.  Make sure the two
places that update the expire_pos only move it forward--never backward.

Fixes: #1023
Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomds: always trim standby segments after rereading the head
Sage Weil [Mon, 25 Apr 2011 18:42:31 +0000 (11:42 -0700)]
mds: always trim standby segments after rereading the head

When we re-read the head we may get an expire_pos that has moved forward in
time.  That is the appropriate time to trim segments during standby-replay.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomds: only write head once after expiring logsegments
Sage Weil [Mon, 25 Apr 2011 18:31:24 +0000 (11:31 -0700)]
mds: only write head once after expiring logsegments

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomds: small journaler cleanups
Sage Weil [Mon, 25 Apr 2011 18:25:05 +0000 (11:25 -0700)]
mds: small journaler cleanups

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agojournaler: separate out trimmed_pos setter
Sage Weil [Mon, 25 Apr 2011 18:24:22 +0000 (11:24 -0700)]
journaler: separate out trimmed_pos setter

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomds: wait for blacklisting osdmap on standby-replay -> replay final pass
Sage Weil [Mon, 25 Apr 2011 17:15:26 +0000 (10:15 -0700)]
mds: wait for blacklisting osdmap on standby-replay -> replay final pass

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agolibrados python binding: always use 64-bit offsets
Colin Patrick McCabe [Mon, 25 Apr 2011 17:29:12 +0000 (10:29 -0700)]
librados python binding: always use 64-bit offsets

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agopybind-rados: fix read API
Colin Patrick McCabe [Mon, 25 Apr 2011 18:02:10 +0000 (11:02 -0700)]
pybind-rados: fix read API

Read should have the arguments in the same order as pread.
Add a test for reading from a nonzero offset.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agohypertable: update bindings to use new libceph API
Colin Patrick McCabe [Fri, 22 Apr 2011 23:07:45 +0000 (16:07 -0700)]
hypertable: update bindings to use new libceph API

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agohadoop: re-add ceph_set_default_preferred_pg
Colin Patrick McCabe [Fri, 22 Apr 2011 22:43:55 +0000 (15:43 -0700)]
hadoop: re-add ceph_set_default_preferred_pg

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agolibceph: re-add set_default_preferred_pg
Sage Weil [Fri, 22 Apr 2011 22:51:44 +0000 (15:51 -0700)]
libceph: re-add set_default_preferred_pg

Hadoop needs it.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agohadoop: get hadoop bindings to build again
Colin Patrick McCabe [Fri, 22 Apr 2011 22:10:57 +0000 (15:10 -0700)]
hadoop: get hadoop bindings to build again

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoClient.cc: fix mode/flags confusion
Colin Patrick McCabe [Fri, 22 Apr 2011 22:02:53 +0000 (15:02 -0700)]
Client.cc: fix mode/flags confusion

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agolibceph: Remove *_precise
Colin Patrick McCabe [Fri, 22 Apr 2011 19:53:04 +0000 (12:53 -0700)]
libceph: Remove *_precise

In Linux, struct stat includes nanosecond resolution already. No need to
create a separate stat structure that duplicates the fields of struct stat.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoclient, libceph: clean up layout methods
Sage Weil [Fri, 22 Apr 2011 20:15:50 +0000 (13:15 -0700)]
client, libceph: clean up layout methods

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoCephFSInterface: don't include Timer.h
Colin Patrick McCabe [Fri, 22 Apr 2011 00:48:15 +0000 (17:48 -0700)]
CephFSInterface: don't include Timer.h

We don't use it.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agohadoop: convert to new libceph interface
Colin Patrick McCabe [Thu, 21 Apr 2011 00:33:28 +0000 (17:33 -0700)]
hadoop: convert to new libceph interface

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agodo_autogen: add -H for --with-hadoop
Colin Patrick McCabe [Thu, 21 Apr 2011 22:47:47 +0000 (15:47 -0700)]
do_autogen: add -H for --with-hadoop

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
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 agojournaler: fix flush completion when nothing to flush
Sage Weil [Mon, 25 Apr 2011 17:01:31 +0000 (10:01 -0700)]
journaler: fix flush completion when nothing to flush

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agojournaler: default to readonly; fix asserts
Sage Weil [Mon, 25 Apr 2011 16:44:17 +0000 (09:44 -0700)]
journaler: default to readonly; fix asserts

Previously were were never in a readonly state, which made all the existing
asserts meaningless.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agovstart.sh: fix -s
Sage Weil [Mon, 25 Apr 2011 16:14:09 +0000 (09:14 -0700)]
vstart.sh: fix -s

Signed-off-by: Sage Weil <sage@newdream.net>
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 agov0.27 v0.27
Sage Weil [Fri, 22 Apr 2011 23:52:04 +0000 (16:52 -0700)]
v0.27

Signed-off-by: Sage Weil <sage@newdream.net>
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>