]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
14 years agorgw: separate bucket vs object owner tracking
Sage Weil [Fri, 30 Sep 2011 16:10:56 +0000 (09:10 -0700)]
rgw: separate bucket vs object owner tracking

- track bucket_owner in session
- separte bucket and object owner fields in log entries

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoradosgw-admin: fix acl vs content-length check
Sage Weil [Fri, 30 Sep 2011 06:17:12 +0000 (23:17 -0700)]
radosgw-admin: fix acl vs content-length check

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoradosgw-admin: rename clitest dir
Sage Weil [Fri, 30 Sep 2011 06:15:56 +0000 (23:15 -0700)]
radosgw-admin: rename clitest dir

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoMerge branch 'wip-pool-sharing' of github.com:NewDreamNetwork/ceph into wip-pool...
Greg Farnum [Thu, 29 Sep 2011 23:47:08 +0000 (16:47 -0700)]
Merge branch 'wip-pool-sharing' of github.com:NewDreamNetwork/ceph into wip-pool-sharing

Conflicts:
src/rgw/rgw_bucket.h

14 years agoradosgw-admin: fix help clitest
Sage Weil [Thu, 29 Sep 2011 23:48:12 +0000 (16:48 -0700)]
radosgw-admin: fix help clitest

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agorgw: set log entry owner to user if s->acl is not set
Sage Weil [Thu, 29 Sep 2011 23:36:35 +0000 (16:36 -0700)]
rgw: set log entry owner to user if s->acl is not set

This is probably wrong, but it fixes the immediate problem of the first
entry in the log not having the owner field set.  The 'log show' looks at
that first entry to spit out key bucket metadata.

A better approach is probably to put that bucket/log metadata (bucket_id,
owner) that doesn't change as an xattr on the object instead of dupilcating
it in every record.  Or something like that...

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agorgw: simplify bucket info storage
Sage Weil [Thu, 29 Sep 2011 23:35:02 +0000 (16:35 -0700)]
rgw: simplify bucket info storage

Use a single method to store bucket metadata.

Store it in both locations, so it never diverges.  (This can still be
cleaned up.. probably one object should just point to the other, so the
data is only in one place.)

Disable to 'pool create' thing for now, which is still confusing me...

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoradosgw-admin: pull 'log show' owner+bucket from first entry
Sage Weil [Thu, 29 Sep 2011 23:33:32 +0000 (16:33 -0700)]
radosgw-admin: pull 'log show' owner+bucket from first entry

Don't rely on the bucketinfo object for this, as it may be deleted.  Having
it there most of the time but not always is going to mean breakage for
users.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agorgw: fix RGWBucketInfo encoding of owner
Sage Weil [Thu, 29 Sep 2011 23:32:14 +0000 (16:32 -0700)]
rgw: fix RGWBucketInfo encoding of owner

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoradosgw: fix log retry after bucket creation
Sage Weil [Thu, 29 Sep 2011 21:09:17 +0000 (14:09 -0700)]
radosgw: fix log retry after bucket creation

We were clobbering the object name for some reason.. probably cruft from
some old change.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agorgw: store bucket information in the .rgw pool instead of .buckets
Greg Farnum [Thu, 29 Sep 2011 20:45:40 +0000 (13:45 -0700)]
rgw: store bucket information in the .rgw pool instead of .buckets

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoradosgw_admin: we do want to set markers on these buckets
Greg Farnum [Wed, 28 Sep 2011 21:33:55 +0000 (14:33 -0700)]
radosgw_admin: we do want to set markers on these buckets

Commit 25499b644b1c5a7b6f4c8876261334dda10fbec3 introduced the initial
work for pool sharing and markers, but didn't set radosgw_admin to
use that infrastructure. We definitely want to be doing so, though,
since radosgw_admin isn't creating system buckets. Do so.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoradosgw-admin: 'log list' and 'log rm'
Sage Weil [Thu, 29 Sep 2011 18:23:02 +0000 (11:23 -0700)]
radosgw-admin: 'log list' and 'log rm'

The normal object listing API seemed like a real poor match here so I
hacked in something that just lists the raw rados objects.  It also looks
like that may need some fixing.

This patch at least establishes a usable interface that is purely
radosgw-admin based for listing, fetching, and removing logs, so users can
avoid looking at rados pools directly.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoradosgw-admin: dump ints, not strings
Sage Weil [Thu, 29 Sep 2011 16:18:00 +0000 (09:18 -0700)]
radosgw-admin: dump ints, not strings

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoradosgw-admin: fix bucket stats
Sage Weil [Thu, 29 Sep 2011 16:16:54 +0000 (09:16 -0700)]
radosgw-admin: fix bucket stats

- 'usage' object instead of 'categories' array.
- dump ints, not strings.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agorgw: protect the id-based accesses from namespace collisions
Greg Farnum [Wed, 28 Sep 2011 21:37:06 +0000 (14:37 -0700)]
rgw: protect the id-based accesses from namespace collisions

Users can create buckets named "8", but they can't name them ".8". So
prepend the actual on-disk objects with a period.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agorgw: remove get_bucket_info and convert users.
Greg Farnum [Wed, 28 Sep 2011 21:26:17 +0000 (14:26 -0700)]
rgw: remove get_bucket_info and convert users.

This just lives in struct rgw_bucket now.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoradosgw-admin: fix 'bucket stats --uid='
Sage Weil [Thu, 29 Sep 2011 15:37:14 +0000 (08:37 -0700)]
radosgw-admin: fix 'bucket stats --uid='

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoradosgw-admin: include 'suspended' in user info output
Sage Weil [Thu, 29 Sep 2011 04:38:59 +0000 (21:38 -0700)]
radosgw-admin: include 'suspended' in user info output

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoradosgw-admin: clean up some cout usage
Sage Weil [Thu, 29 Sep 2011 04:38:50 +0000 (21:38 -0700)]
radosgw-admin: clean up some cout usage

Errors to stderr.  Avoid cout for commands with structured output.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoradosgw-admin: use formatter for 'bucket list'
Sage Weil [Thu, 29 Sep 2011 04:26:17 +0000 (21:26 -0700)]
radosgw-admin: use formatter for 'bucket list'

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoradosgw-admin: 'bucket stats --uid'
Sage Weil [Wed, 28 Sep 2011 22:56:09 +0000 (15:56 -0700)]
radosgw-admin: 'bucket stats --uid'

List stats for all buckets on for the given user.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoradosgw-admin: clean up 'bucket list' output
Sage Weil [Wed, 28 Sep 2011 22:37:05 +0000 (15:37 -0700)]
radosgw-admin: clean up 'bucket list' output

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agorgw_admin: rip out format.empty() special cases
Sage Weil [Wed, 28 Sep 2011 23:08:59 +0000 (16:08 -0700)]
rgw_admin: rip out format.empty() special cases

If we want a plain output, we should implement a PlainFormatter of some
sort.  For now, pretty json is good enough.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Conflicts:

src/rgw/rgw_admin.cc

14 years agorgw_admin: fix --pretty-format and --purge-data flag parsing
Sage Weil [Wed, 28 Sep 2011 23:08:23 +0000 (16:08 -0700)]
rgw_admin: fix --pretty-format and --purge-data flag parsing

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Conflicts:

src/rgw/rgw_admin.cc

14 years agorgw_admin: default to json output
Sage Weil [Wed, 28 Sep 2011 21:01:39 +0000 (14:01 -0700)]
rgw_admin: default to json output

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoradosgw-admin: use formatter for 'bucket list'
Sage Weil [Wed, 28 Sep 2011 21:58:17 +0000 (14:58 -0700)]
radosgw-admin: use formatter for 'bucket list'

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agordosgw_admin -> radosgw-admin
Sage Weil [Wed, 28 Sep 2011 21:33:03 +0000 (14:33 -0700)]
rdosgw_admin -> radosgw-admin

Be consistent with other binary tool naming.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agorgw: remove now-unused struct RGWPoolInfo
Greg Farnum [Wed, 28 Sep 2011 21:18:32 +0000 (14:18 -0700)]
rgw: remove now-unused struct RGWPoolInfo

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agorgw: remove rgw_[retrieve|store]_pool_info and ".pool" pool
Greg Farnum [Wed, 28 Sep 2011 20:51:20 +0000 (13:51 -0700)]
rgw: remove rgw_[retrieve|store]_pool_info and ".pool" pool

Convert these to rgw_[get|store]_bucket_info, add the owner field
to bucket info, and store both lookup formats in the ".bucket" pool.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agorgw: remove references to pool_id and replace with new bucket_id.
Greg Farnum [Wed, 28 Sep 2011 17:50:48 +0000 (10:50 -0700)]
rgw: remove references to pool_id and replace with new bucket_id.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agorgw: don't encode the bucket name twice in RGWPoolInfo!
Greg Farnum [Tue, 27 Sep 2011 21:09:36 +0000 (14:09 -0700)]
rgw: don't encode the bucket name twice in RGWPoolInfo!

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agorgw: put bucketid allocator object in root (.rgw) pool
Sage Weil [Tue, 27 Sep 2011 21:07:50 +0000 (14:07 -0700)]
rgw: put bucketid allocator object in root (.rgw) pool

This keeps the .rgw.control pool disposable.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agorgw: use same prefix for locator key as for oid
Sage Weil [Tue, 27 Sep 2011 20:56:42 +0000 (13:56 -0700)]
rgw: use same prefix for locator key as for oid

If the bucket has a prefix for oids, prepend the same prefix to the
locator key.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agorgw: list buckets using bucket objects
Sage Weil [Tue, 27 Sep 2011 16:47:25 +0000 (09:47 -0700)]
rgw: list buckets using bucket objects

Don't assume the pools == buckets.  List the bucket objects in the .rgw
pool.

Fixes: #1560
Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoMerge remote branch 'origin/master' into wip-pool-sharing
Greg Farnum [Tue, 27 Sep 2011 15:28:02 +0000 (08:28 -0700)]
Merge remote branch 'origin/master' into wip-pool-sharing

Conflicts:
src/osd/OSD.cc
src/rgw/rgw_rados.cc

14 years agoMerge branch 'stable'
Sage Weil [Tue, 27 Sep 2011 04:49:12 +0000 (21:49 -0700)]
Merge branch 'stable'

14 years agoradosgw: fix content-length checks
Sage Weil [Tue, 27 Sep 2011 04:46:39 +0000 (21:46 -0700)]
radosgw: fix content-length checks

Ignore content-length check if the REQUEST_URI has a trailing ?acl.

(The object_str.find() check was wrong because object_str has the ?whatever
stripped off, and because it returns std::string::npos on failure.)

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoradosgw: tolerate race creating .rgw* metadata pools
Sage Weil [Tue, 27 Sep 2011 04:35:52 +0000 (21:35 -0700)]
radosgw: tolerate race creating .rgw* metadata pools

There may be multiple people trying to create these pools.  That's just
fine.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agolibrbd: fix end_block calculation for read_iterate
Josh Durgin [Mon, 26 Sep 2011 21:13:44 +0000 (14:13 -0700)]
librbd: fix end_block calculation for read_iterate

All end block calculations match now.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agotest_rbd.py: Add large read and write tests
Josh Durgin [Mon, 26 Sep 2011 17:35:37 +0000 (10:35 -0700)]
test_rbd.py: Add large read and write tests

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agolibrbd: don't zero negative lengths
Josh Durgin [Fri, 23 Sep 2011 21:04:14 +0000 (14:04 -0700)]
librbd: don't zero negative lengths

They are past the end of the buffer (and wrap around).

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agorados.py: be paranoid about strings
Josh Durgin [Fri, 23 Sep 2011 01:26:34 +0000 (18:26 -0700)]
rados.py: be paranoid about strings

This prevents bad conversions (i.e. from int to char *).

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agorbd.py: remove useless version object
Josh Durgin [Sat, 24 Sep 2011 00:02:29 +0000 (17:02 -0700)]
rbd.py: remove useless version object

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agorbd.py: be paranoid about strings
Josh Durgin [Fri, 23 Sep 2011 01:26:16 +0000 (18:26 -0700)]
rbd.py: be paranoid about strings

This prevents bad conversions (i.e. from int to char *).

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agorbd.py: explicitly cast strings to c_char_p for type clarity
Josh Durgin [Thu, 22 Sep 2011 23:06:57 +0000 (16:06 -0700)]
rbd.py: explicitly cast strings to c_char_p for type clarity

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agorbd.py: pass 0 for the default order, not NULL
Josh Durgin [Thu, 22 Sep 2011 21:51:43 +0000 (14:51 -0700)]
rbd.py: pass 0 for the default order, not NULL

librbd expects the order pointer to be valid - if it points to 0, the
default order is used.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agorados.py: make exceptions inherit from a base class
Josh Durgin [Thu, 22 Sep 2011 00:56:40 +0000 (17:56 -0700)]
rados.py: make exceptions inherit from a base class

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agorados.py: allow configuring rados through constructor options
Josh Durgin [Wed, 21 Sep 2011 22:50:30 +0000 (15:50 -0700)]
rados.py: allow configuring rados through constructor options

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agorbd.py: make Image a context manager
Josh Durgin [Wed, 21 Sep 2011 22:44:16 +0000 (15:44 -0700)]
rbd.py: make Image a context manager

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agorados.py: make Rados and Ioctx objects context managers
Josh Durgin [Wed, 21 Sep 2011 22:44:04 +0000 (15:44 -0700)]
rados.py: make Rados and Ioctx objects context managers

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agorbd.py: make exceptions inherit from a base class
Josh Durgin [Wed, 21 Sep 2011 22:43:36 +0000 (15:43 -0700)]
rbd.py: make exceptions inherit from a base class

This way you can catch them all.
Also remove the unused NoData exceptions
- this was just useful for xattrs in librados.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agoUse cpp_strerror or strerror_r when appropriate.
Josh Durgin [Wed, 21 Sep 2011 17:47:47 +0000 (10:47 -0700)]
Use cpp_strerror or strerror_r when appropriate.

The only remaining uses of strerror are in single-threaded programs
that don't depend on libcommon.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agorbd.py: add partial bindings for librbd
Josh Durgin [Wed, 21 Sep 2011 00:26:02 +0000 (17:26 -0700)]
rbd.py: add partial bindings for librbd

This is all the basic operations, but nothing with callbacks yet.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agorados.py: raise specific error when write is too long
Josh Durgin [Wed, 21 Sep 2011 00:24:24 +0000 (17:24 -0700)]
rados.py: raise specific error when write is too long

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agorbd: init counter to 0 so errors don't say '-1% done'
Josh Durgin [Wed, 21 Sep 2011 00:23:27 +0000 (17:23 -0700)]
rbd: init counter to 0 so errors don't say '-1% done'

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agoReplicatedPG, tmap: return -ENOENT if the key to remove does not exist
Josh Durgin [Wed, 21 Sep 2011 00:22:35 +0000 (17:22 -0700)]
ReplicatedPG, tmap: return -ENOENT if the key to remove does not exist

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agolibrbd: use pre-existing helper methods for tmap operations
Josh Durgin [Tue, 20 Sep 2011 20:09:53 +0000 (13:09 -0700)]
librbd: use pre-existing helper methods for tmap operations

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agolibrbd: add debugging for failing to remove a header object
Josh Durgin [Tue, 20 Sep 2011 19:52:11 +0000 (12:52 -0700)]
librbd: add debugging for failing to remove a header object

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agorbd: improve error messages
Josh Durgin [Tue, 20 Sep 2011 19:50:09 +0000 (12:50 -0700)]
rbd: improve error messages

One of these was accidentally not negated.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
14 years agomon: fix it again
Sage Weil [Mon, 26 Sep 2011 23:36:54 +0000 (16:36 -0700)]
mon: fix it again

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomon: fix dup pool creation race
Sage Weil [Mon, 26 Sep 2011 23:25:04 +0000 (16:25 -0700)]
mon: fix dup pool creation race

Fixes: #1574
Signed-off-by: Sage Weil <sage@newdream.net>
14 years agorgw: get bucket markers from the same object at all times
Greg Farnum [Mon, 26 Sep 2011 22:11:25 +0000 (15:11 -0700)]
rgw: get bucket markers from the same object at all times

We use an object in the control pool here, rather than an object
local to each pool. This gives us a single value which can be used
for tracking data at all times.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoinit-ceph: more c* -> ceph-* cleanup
Sage Weil [Mon, 26 Sep 2011 21:25:54 +0000 (14:25 -0700)]
init-ceph: more c* -> ceph-* cleanup

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoosd: fix warning more
Sage Weil [Mon, 26 Sep 2011 21:08:19 +0000 (14:08 -0700)]
osd: fix warning more

Argh

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoradosgw_admin: 'bucket list' or 'buckets list'
Sage Weil [Mon, 26 Sep 2011 21:03:12 +0000 (14:03 -0700)]
radosgw_admin: 'bucket list' or 'buckets list'

The plural looks weird to me.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoMakefile: include init-radosgw in tarball
Sage Weil [Mon, 26 Sep 2011 20:30:43 +0000 (13:30 -0700)]
Makefile: include init-radosgw in tarball

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoradosgw: shut down threadpool
Sage Weil [Mon, 26 Sep 2011 20:28:01 +0000 (13:28 -0700)]
radosgw: shut down threadpool

Don't crash when run as a non-daemon without apache.. e.g. 'radosgw' with
no args.

Fixes: #1572
Signed-off-by: Sage Weil <sage@newdream.net>
14 years agorgw: pass POD c-string instead of string to formatter
Greg Farnum [Mon, 26 Sep 2011 20:24:08 +0000 (13:24 -0700)]
rgw: pass POD c-string instead of string to formatter

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoosd: fix warning more
Greg Farnum [Mon, 26 Sep 2011 20:23:45 +0000 (13:23 -0700)]
osd: fix warning more

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoMerge remote branch 'origin/master' into wip-pool-sharing
Greg Farnum [Mon, 26 Sep 2011 20:18:15 +0000 (13:18 -0700)]
Merge remote branch 'origin/master' into wip-pool-sharing

14 years agoosd: fix warning
Sage Weil [Mon, 26 Sep 2011 20:10:33 +0000 (13:10 -0700)]
osd: fix warning

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agodebian: include radosgw init script in package
Sage Weil [Mon, 26 Sep 2011 18:04:25 +0000 (11:04 -0700)]
debian: include radosgw init script in package

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoradosgw: init script
Sage Weil [Mon, 26 Sep 2011 18:03:33 +0000 (11:03 -0700)]
radosgw: init script

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoMerge branch 'stable'
Sage Weil [Sun, 25 Sep 2011 20:54:26 +0000 (13:54 -0700)]
Merge branch 'stable'

14 years agofilejournal: improve debug error messge
Sage Weil [Sun, 25 Sep 2011 20:54:05 +0000 (13:54 -0700)]
filejournal: improve debug error messge

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoosd/mon: make max maps per MOSDMap message tunable
Sage Weil [Sat, 24 Sep 2011 22:49:32 +0000 (15:49 -0700)]
osd/mon: make max maps per MOSDMap message tunable

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoosd: limit size of osdmap messages
Sage Weil [Sat, 24 Sep 2011 22:49:16 +0000 (15:49 -0700)]
osd: limit size of osdmap messages

Limit size of MOSDMap messages sent from OSDs.  Send many smaller
messages instead of a single large one.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoosd: drop map_cache_keep_from
Sage Weil [Sat, 24 Sep 2011 22:19:31 +0000 (15:19 -0700)]
osd: drop map_cache_keep_from

The purpose here was to avoid trimming cached maps prior to what we have
on disk.  However, now that we have the map_bl cache, this isn't needed:
anything after that epoch will come out of that cache.

Also, it was broken anyway--the value was never read.  So clean it out!

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoosd: limit size of OSDMap cache
Sage Weil [Sat, 24 Sep 2011 22:16:53 +0000 (15:16 -0700)]
osd: limit size of OSDMap cache

If we get way way behind on our maps, we may end up with a really large
OSDMap cache because we currently on trim old maps based on
oldest_last_clean, which may be way in the past.  Avoid eating up gobs of
RAM by putting a ceiling on the cache size.  It'll mean more disk IO in
those situations, but it also means that we'll only load up the old maps
that we actually need (not every single one).

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agorgw: only require content-length to be set on non-acl puts
Greg Farnum [Fri, 23 Sep 2011 22:43:09 +0000 (15:43 -0700)]
rgw: only require content-length to be set on non-acl puts

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoosd: don't finish boot unless instance in map is really us
Sage Weil [Sat, 24 Sep 2011 21:45:32 +0000 (14:45 -0700)]
osd: don't finish boot unless instance in map is really us

We were going BOOTING->ACTIVE as soon as we showed up in the map with the
same client_addr.  Also verify that we were up_from an epoch after when
we started or rebound, to avoid the case where we rebind to the same
ports for client_addr (but maybe not others) and get caught in a rebind
loop.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoinit-ceph: don't umount btrfs by default
Sage Weil [Sat, 24 Sep 2011 21:08:07 +0000 (14:08 -0700)]
init-ceph: don't umount btrfs by default

As an admin I find this very annoying, even though it isn't strictly
symmetrical with the mount behavior.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years ago- Fix atomic set.
Stanislav Sedov [Tue, 20 Sep 2011 05:16:48 +0000 (22:16 -0700)]
- Fix atomic set.

14 years agorgw: user async exec for index completion op
Yehuda Sadeh [Sat, 24 Sep 2011 06:13:20 +0000 (23:13 -0700)]
rgw: user async exec for index completion op

14 years agolibrados: add async exec
Yehuda Sadeh [Sat, 24 Sep 2011 06:13:08 +0000 (23:13 -0700)]
librados: add async exec

14 years agorgw: tmp objects can be removed async
Yehuda Sadeh [Sat, 24 Sep 2011 05:36:26 +0000 (22:36 -0700)]
rgw: tmp objects can be removed async

14 years agorgw: fix bucket stats
Yehuda Sadeh [Sat, 24 Sep 2011 04:32:53 +0000 (21:32 -0700)]
rgw: fix bucket stats

14 years agorgw: fix header encoding
Yehuda Sadeh [Sat, 24 Sep 2011 04:21:51 +0000 (21:21 -0700)]
rgw: fix header encoding

14 years agorgw: fix compilation warning
Yehuda Sadeh [Sat, 24 Sep 2011 00:26:10 +0000 (17:26 -0700)]
rgw: fix compilation warning

14 years agorgw: fix compilation
Yehuda Sadeh [Sat, 24 Sep 2011 00:22:17 +0000 (17:22 -0700)]
rgw: fix compilation

14 years agocls_rgw: substract obj stats only if obj exists
Yehuda Sadeh [Sat, 24 Sep 2011 00:19:27 +0000 (17:19 -0700)]
cls_rgw: substract obj stats only if obj exists

14 years agorgw: integrate index categories
Yehuda Sadeh [Sat, 24 Sep 2011 00:11:49 +0000 (17:11 -0700)]
rgw: integrate index categories

14 years agorgw: only require content-length to be set on non-acl puts
Greg Farnum [Fri, 23 Sep 2011 22:43:09 +0000 (15:43 -0700)]
rgw: only require content-length to be set on non-acl puts

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoRevert "rgw: tolerate missing content-length header on canned ACL puts"
Greg Farnum [Fri, 23 Sep 2011 22:41:56 +0000 (15:41 -0700)]
Revert "rgw: tolerate missing content-length header on canned ACL puts"

This reverts commit 05b06e807ef20c7fe1bd7c7abbeecd656d2280c0.

Don't be stupid when an empty content-length can only be on ACL puts!

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoMerge remote branch 'gh/stable'
Sage Weil [Fri, 23 Sep 2011 23:00:24 +0000 (16:00 -0700)]
Merge remote branch 'gh/stable'

14 years agoman: c* -> ceph-* rename: Regenerate manpages.
Tommi Virtanen [Fri, 23 Sep 2011 22:54:46 +0000 (15:54 -0700)]
man: c* -> ceph-* rename: Regenerate manpages.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agodoc: Fix reStructuredText formatting warnings.
Tommi Virtanen [Fri, 23 Sep 2011 22:52:49 +0000 (15:52 -0700)]
doc: Fix reStructuredText formatting warnings.

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agoMakefile: c* -> ceph-* rename: missed cdebugpack in CLEANFILES.
Tommi Virtanen [Fri, 23 Sep 2011 22:46:29 +0000 (15:46 -0700)]
Makefile: c* -> ceph-* rename: missed cdebugpack in CLEANFILES.

make distcheck said:

  ERROR: files left in build directory after distclean:
  ./src/ceph-debugpack
  make[1]: *** [distcleancheck] Error 1

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
14 years agoMakefile: Add missing header test/unit.h
Tommi Virtanen [Fri, 23 Sep 2011 22:36:26 +0000 (15:36 -0700)]
Makefile: Add missing header test/unit.h

Used to fail "make distcheck".

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>