]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
12 years agorgw: stream obj into http request
Yehuda Sadeh [Thu, 6 Jun 2013 04:06:52 +0000 (21:06 -0700)]
rgw: stream obj into http request

still need to figure out curl handle polling, handle client
errors correctly.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: format put request auth
Yehuda Sadeh [Tue, 4 Jun 2013 03:25:10 +0000 (20:25 -0700)]
rgw: format put request auth

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: bucket metadata, ignore ENOENT on put
Yehuda Sadeh [Tue, 4 Jun 2013 02:31:03 +0000 (19:31 -0700)]
rgw: bucket metadata, ignore ENOENT on put

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: skeleton for obj copy across regions
Yehuda Sadeh [Tue, 4 Jun 2013 02:22:38 +0000 (19:22 -0700)]
rgw: skeleton for obj copy across regions

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: metadata lock/unlock implemented with test cases
Babu Shanmugam [Fri, 7 Jun 2013 03:14:26 +0000 (08:44 +0530)]
rgw: metadata lock/unlock implemented with test cases

metadata lock/unlock implemented with test cases
split Post operations to Lock and Unlock operations, and
checking for WRITE permission only for lock and unlock

Signed-off-by: Babu Shanmugam <anbu@enovance.com>
Conflicts:
src/rgw/rgw_rest_log.cc
src/rgw/rgw_rest_log.h

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agoRESTful APIs for data changes log implemented with test cases
Babu Shanmugam [Mon, 3 Jun 2013 06:38:12 +0000 (12:08 +0530)]
RESTful APIs for data changes log implemented with test cases

Signed-off-by: Babu Shanmugam <anbu@enovance.com>
12 years agorgw: some user metadata fixes
Yehuda Sadeh [Fri, 31 May 2013 21:35:49 +0000 (14:35 -0700)]
rgw: some user metadata fixes

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw_admin: modify mdlog functionality
Yehuda Sadeh [Fri, 31 May 2013 19:30:52 +0000 (12:30 -0700)]
rgw_admin: modify mdlog functionality

mdlog list, can handle cases where there is and there's no shard id
specified. mdlog trim requires shard if.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: set truncated as false if ENOENT when listing mdlog entries
Yehuda Sadeh [Fri, 31 May 2013 19:30:29 +0000 (12:30 -0700)]
rgw: set truncated as false if ENOENT when listing mdlog entries

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agoMerge branch 'wip-rgw-geo-enovance' into wip-rgw-geo-2
Yehuda Sadeh [Fri, 31 May 2013 19:22:09 +0000 (12:22 -0700)]
Merge branch 'wip-rgw-geo-enovance' into wip-rgw-geo-2

Conflicts:
src/Makefile.am
src/rgw/rgw_admin.cc

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: Do not assum rest connection to be established
Christophe Courtaut [Fri, 31 May 2013 07:55:27 +0000 (09:55 +0200)]
rgw: Do not assum rest connection to be established

Added a check to verify that rest connection is correctly initialized,
preventing a segmentation fault.

Signed-off-by: Christophe Courtaut <christophe.courtaut@gmail.com>
Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agoflushed the formatter after closing the primary section in MDLOG, BILOG and GETSHARDI...
Babu Shanmugam [Thu, 30 May 2013 04:58:23 +0000 (10:28 +0530)]
flushed the formatter after closing the primary section in MDLOG, BILOG and GETSHARDINFO :: list()

Signed-off-by: Babu Shanmugam <anbu@enovance.com>
12 years agorgw: verify bucket location only if exists
Yehuda Sadeh [Wed, 29 May 2013 20:50:50 +0000 (13:50 -0700)]
rgw: verify bucket location only if exists

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: forward delete_bucket to master region
Yehuda Sadeh [Wed, 29 May 2013 20:09:45 +0000 (13:09 -0700)]
rgw: forward delete_bucket to master region

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agoFixed default region creation issue
Christophe Courtaut [Mon, 27 May 2013 15:27:57 +0000 (17:27 +0200)]
Fixed default region creation issue

If the default region did not exist, it is created,
but the previously created RGWDefaultRegionInfo object is not updated.
This fix updates this objects after the default region creation.
It was also preventing vstart.sh script to start with -r option.

Signed-off-by: Christophe Courtaut <christophe.courtaut@gmail.com>
Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: user master region's version of bucket
Yehuda Sadeh [Wed, 29 May 2013 15:11:59 +0000 (08:11 -0700)]
rgw: user master region's version of bucket

When creating a bucket, retrieve the bucket object
version from the master region and use it.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: mdlog, bilog RESTful api cleanup
Yehuda Sadeh [Tue, 28 May 2013 20:39:18 +0000 (13:39 -0700)]
rgw: mdlog, bilog RESTful api cleanup

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agoWith mdlog lock and unlock functionality, listing and trimming base on shard_id
Babu Shanmugam [Tue, 28 May 2013 00:28:42 +0000 (05:58 +0530)]
With mdlog lock and unlock functionality, listing and trimming base on shard_id

Signed-off-by: Babu Shanmugam <anbu@enovance.com>
12 years agorgw: propagate region on bucket creation
Yehuda Sadeh [Sat, 25 May 2013 02:54:26 +0000 (19:54 -0700)]
rgw: propagate region on bucket creation

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: determine owner after effetctive user
Yehuda Sadeh [Sat, 25 May 2013 02:12:23 +0000 (19:12 -0700)]
rgw: determine owner after effetctive user

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: forward request params through upstream REST
Yehuda Sadeh [Sat, 25 May 2013 01:31:11 +0000 (18:31 -0700)]
rgw: forward request params through upstream REST

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: enable data sending via http client
Yehuda Sadeh [Fri, 24 May 2013 21:24:03 +0000 (14:24 -0700)]
rgw: enable data sending via http client

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: multiple fixes and cleanups
Yehuda Sadeh [Fri, 24 May 2013 06:14:35 +0000 (23:14 -0700)]
rgw: multiple fixes and cleanups

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agoutime: add asctime()
Yehuda Sadeh [Fri, 24 May 2013 06:12:35 +0000 (23:12 -0700)]
utime: add asctime()

dump time in a useful format

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: rest_client, forward requests
Yehuda Sadeh [Thu, 23 May 2013 20:09:08 +0000 (13:09 -0700)]
rgw: rest_client, forward requests

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: some code cleanup
Yehuda Sadeh [Thu, 23 May 2013 19:29:42 +0000 (12:29 -0700)]
rgw: some code cleanup

move s3 signing code to a different common file.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: separate certain request info into different structure
Yehuda Sadeh [Thu, 23 May 2013 18:39:13 +0000 (11:39 -0700)]
rgw: separate certain request info into different structure

This is needed for later request forwarding.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: clean up s3 signing code
Yehuda Sadeh [Wed, 22 May 2013 21:40:55 +0000 (14:40 -0700)]
rgw: clean up s3 signing code

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: add system users
Yehuda Sadeh [Wed, 22 May 2013 18:08:33 +0000 (11:08 -0700)]
rgw: add system users

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: pre-generate bucket object version before creating it
Yehuda Sadeh [Wed, 22 May 2013 17:34:16 +0000 (10:34 -0700)]
rgw: pre-generate bucket object version before creating it

Use this version when creating the bucket instead of letting the
objclass auto-generate it, so that we could return it to the slave
region when creating its bucket on the master.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: forward bucket creation to master region
Yehuda Sadeh [Tue, 21 May 2013 21:07:21 +0000 (14:07 -0700)]
rgw: forward bucket creation to master region

plus many fixes.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: infrastructure to send requests to different region
Yehuda Sadeh [Tue, 21 May 2013 17:56:53 +0000 (10:56 -0700)]
rgw: infrastructure to send requests to different region

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agoAdded send_response implementation for MDLOG and BILOG list APIs so that periodic...
Babu Shanmugam [Tue, 21 May 2013 05:11:05 +0000 (10:41 +0530)]
Added send_response implementation for MDLOG and BILOG list APIs so that periodic flushing can happend in execute()

Signed-off-by: Babu Shanmugam <anbu@enovance.com>
12 years agorgw: add access key to zone info
Yehuda Sadeh [Mon, 20 May 2013 19:13:31 +0000 (12:13 -0700)]
rgw: add access key to zone info

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agoMDLOG and BILOG REST Apis implemented along with some bug fixes
Babu Shanmugam [Sat, 18 May 2013 05:02:21 +0000 (10:32 +0530)]
MDLOG and BILOG REST Apis implemented along with some bug fixes

Signed-off-by: Babu Shanmugam <anbu@enovance.com>
12 years agorgw: store region in bucket info
Yehuda Sadeh [Fri, 17 May 2013 20:07:24 +0000 (13:07 -0700)]
rgw: store region in bucket info

only handle requests that come to buckets stored in correct
region.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: parse location constraint on bucket creation
Yehuda Sadeh [Wed, 15 May 2013 05:05:31 +0000 (22:05 -0700)]
rgw: parse location constraint on bucket creation

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: a function to read all request input
Yehuda Sadeh [Wed, 15 May 2013 05:04:08 +0000 (22:04 -0700)]
rgw: a function to read all request input

Factor out this useful function. Also make sure that
we never read more than a specified (large enough) max.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: update json encode/decode for new bucket info
Yehuda Sadeh [Wed, 15 May 2013 04:35:03 +0000 (21:35 -0700)]
rgw: update json encode/decode for new bucket info

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: add region to bucket info
Yehuda Sadeh [Wed, 15 May 2013 01:26:37 +0000 (18:26 -0700)]
rgw: add region to bucket info

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agoModified PutMetadata::get_data() to handle chunked transfers
Babu Shanmugam [Tue, 7 May 2013 08:18:13 +0000 (13:48 +0530)]
Modified PutMetadata::get_data() to handle chunked transfers

Signed-off-by: Babu Shanmugam <anbu@enovance.com>
12 years agoceph_json: don't try to parse NULL buffer
Yehuda Sadeh [Thu, 2 May 2013 19:41:57 +0000 (12:41 -0700)]
ceph_json: don't try to parse NULL buffer

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agoRemoved the check for parameter validation in op_get()
Babu Shanmugam [Tue, 30 Apr 2013 03:45:34 +0000 (09:15 +0530)]
Removed the check for parameter validation in op_get()

Signed-off-by: Babu Shanmugam <anbu@enovance.com>
12 years agoFixed certain bugs on rest admin APIs
Babu Shanmugam [Mon, 29 Apr 2013 04:16:46 +0000 (09:46 +0530)]
Fixed certain bugs on rest admin APIs

Signed-off-by: Babu Shanmugam <anbu@enovance.com>
12 years agorgw: modify metadata RESTful implementation
Yehuda Sadeh [Fri, 26 Apr 2013 23:07:21 +0000 (16:07 -0700)]
rgw: modify metadata RESTful implementation

REST handler should derive from RGWHandler_Auth_S3,
other changes.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agoWith admin metadata rest API implementation and unit test cases for it
Babu Shanmugam [Fri, 26 Apr 2013 13:14:16 +0000 (18:44 +0530)]
With admin metadata rest API implementation and unit test cases for it

Signed-off-by: Babu Shanmugam <anbu@enovance.com>
12 years agoceph_json: fix bool decoding
Yehuda Sadeh [Tue, 14 May 2013 19:43:54 +0000 (12:43 -0700)]
ceph_json: fix bool decoding

"false" means false.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: json_encode json a bit differently
Yehuda Sadeh [Tue, 14 May 2013 19:25:17 +0000 (12:25 -0700)]
rgw: json_encode json a bit differently

Encode map as a list, it's a more friendly representation.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: tie bucket/user removal to mdlog differently
Yehuda Sadeh [Mon, 13 May 2013 23:58:28 +0000 (16:58 -0700)]
rgw: tie bucket/user removal to mdlog differently

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: slightly simplify metadata abstraction
Yehuda Sadeh [Mon, 13 May 2013 21:26:19 +0000 (14:26 -0700)]
rgw: slightly simplify metadata abstraction

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: read bucket metadata before writing it
Yehuda Sadeh [Mon, 13 May 2013 20:29:15 +0000 (13:29 -0700)]
rgw: read bucket metadata before writing it

In order to keep track of version.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: cache obj version
Yehuda Sadeh [Sat, 11 May 2013 05:02:20 +0000 (22:02 -0700)]
rgw: cache obj version

Also keep bucket objv_tracker on the request state.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: op->PutACLs uses the correct set_attr for buckets
Yehuda Sadeh [Fri, 10 May 2013 23:12:41 +0000 (16:12 -0700)]
rgw: op->PutACLs uses the correct set_attr for buckets

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: rados->set_attr() just calls rados->set_attrs()
Yehuda Sadeh [Fri, 10 May 2013 22:55:01 +0000 (15:55 -0700)]
rgw: rados->set_attr() just calls rados->set_attrs()

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: metadata handler for bucket set_attr operations
Yehuda Sadeh [Fri, 10 May 2013 21:42:52 +0000 (14:42 -0700)]
rgw: metadata handler for bucket set_attr operations

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: don't handle ECANCELLED anymore
Yehuda Sadeh [Fri, 10 May 2013 04:07:43 +0000 (21:07 -0700)]
rgw: don't handle ECANCELLED anymore

Simplify, remove obsolete logic.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: bucket metadata operations go through metadata handler
Yehuda Sadeh [Thu, 9 May 2013 21:13:24 +0000 (14:13 -0700)]
rgw: bucket metadata operations go through metadata handler

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agoarmor: don't break lines by default
Yehuda Sadeh [Thu, 9 May 2013 18:04:44 +0000 (11:04 -0700)]
armor: don't break lines by default

Added a new function that breaks the lines, but by default
don't do it.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: implement metadata hander for buckets data
Yehuda Sadeh [Thu, 9 May 2013 03:40:48 +0000 (20:40 -0700)]
rgw: implement metadata hander for buckets data

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agoceph_json: dump timestamp in utc
Yehuda Sadeh [Wed, 8 May 2013 23:26:55 +0000 (16:26 -0700)]
ceph_json: dump timestamp in utc

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: datalog trim
Yehuda Sadeh [Wed, 8 May 2013 21:54:54 +0000 (14:54 -0700)]
rgw: datalog trim

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: bucket index log trim
Yehuda Sadeh [Wed, 8 May 2013 21:22:19 +0000 (14:22 -0700)]
rgw: bucket index log trim

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agoosd: don't assert if get_omap_iterator() returns NULL
Yehuda Sadeh [Wed, 8 May 2013 19:18:49 +0000 (12:18 -0700)]
osd: don't assert if get_omap_iterator() returns NULL

Fixes: #4949
This can happen if the object does not exist and it's
a write operation. Just return -ENOENT.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: metadata log trim
Yehuda Sadeh [Wed, 8 May 2013 17:52:26 +0000 (10:52 -0700)]
rgw: metadata log trim

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: resend data log entry if took too long
Yehuda Sadeh [Mon, 6 May 2013 21:41:10 +0000 (14:41 -0700)]
rgw: resend data log entry if took too long

If took too long, we want to resend. Also, fix issue with
renew.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: more data changes log implementation
Yehuda Sadeh [Mon, 6 May 2013 20:41:29 +0000 (13:41 -0700)]
rgw: more data changes log implementation

Remove a bunch of hard coded stuff. Make renew thread updates
expiration. Only renew if there was more than one request through the
current window.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agoRefCounteCond: keep return val, wait() returns it
Yehuda Sadeh [Mon, 6 May 2013 20:39:43 +0000 (13:39 -0700)]
RefCounteCond: keep return val, wait() returns it

It is necessary in some cases to notify waiters of the
actual return value for the action they were waiting on.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: changed data log renew thread
Yehuda Sadeh [Thu, 2 May 2013 04:34:38 +0000 (21:34 -0700)]
rgw: changed data log renew thread

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: limit num of buckets in data changes log
Yehuda Sadeh [Thu, 2 May 2013 01:10:54 +0000 (18:10 -0700)]
rgw: limit num of buckets in data changes log

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: use shared_ptr instead of RefCountedObject
Yehuda Sadeh [Wed, 1 May 2013 22:40:44 +0000 (15:40 -0700)]
rgw: use shared_ptr instead of RefCountedObject

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agolru_map: infrastructure for a bounded map
Yehuda Sadeh [Wed, 1 May 2013 20:28:43 +0000 (13:28 -0700)]
lru_map: infrastructure for a bounded map

Useful for cache-like maps, where we want to control
the max number of entries in the map.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: data changes log, don't always send new requests
Yehuda Sadeh [Wed, 1 May 2013 20:32:10 +0000 (13:32 -0700)]
rgw: data changes log, don't always send new requests

We may piggy back on older entries that hasn't expired yet.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: data changes log, naive implementation
Yehuda Sadeh [Fri, 26 Apr 2013 02:06:08 +0000 (19:06 -0700)]
rgw: data changes log, naive implementation

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: decouple bucket data pool from bucket index pool
Yehuda Sadeh [Thu, 18 Apr 2013 21:31:50 +0000 (14:31 -0700)]
rgw: decouple bucket data pool from bucket index pool

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: fix get_obj() with zero sized obj
Yehuda Sadeh [Thu, 18 Apr 2013 20:30:45 +0000 (13:30 -0700)]
rgw: fix get_obj() with zero sized obj

Now that even zero sized objs have manifest a
test had to be modified.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: don't set shadow obj attr in object metadata
Yehuda Sadeh [Wed, 17 Apr 2013 19:54:28 +0000 (12:54 -0700)]
rgw: don't set shadow obj attr in object metadata

This is incorrect, was only right for pre-manifest objects.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw-admin: object stat also decodes policy
Yehuda Sadeh [Wed, 17 Apr 2013 19:49:01 +0000 (12:49 -0700)]
rgw-admin: object stat also decodes policy

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: update cli test for radosgw-admin
Yehuda Sadeh [Wed, 17 Apr 2013 18:47:54 +0000 (11:47 -0700)]
rgw: update cli test for radosgw-admin

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agoMakefile.am: add missing header file
Yehuda Sadeh [Wed, 17 Apr 2013 18:21:56 +0000 (11:21 -0700)]
Makefile.am: add missing header file

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw-admin: add object stat command
Yehuda Sadeh [Wed, 17 Apr 2013 02:20:59 +0000 (19:20 -0700)]
rgw-admin: add object stat command

for retrieving object metadata.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw-admin: bucket list also specifies object namespace
Yehuda Sadeh [Wed, 17 Apr 2013 00:44:46 +0000 (17:44 -0700)]
rgw-admin: bucket list also specifies object namespace

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: copy_obj uses req_id as tag
Yehuda Sadeh [Tue, 16 Apr 2013 23:58:31 +0000 (16:58 -0700)]
rgw: copy_obj uses req_id as tag

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: radosgw-admin bucket list --bucket lists bucket objects
Yehuda Sadeh [Tue, 16 Apr 2013 05:49:26 +0000 (22:49 -0700)]
rgw: radosgw-admin bucket list --bucket lists bucket objects

Also lists tag for each object.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: call rgw_store_user_info() with objv_tracker
Yehuda Sadeh [Tue, 16 Apr 2013 04:40:11 +0000 (21:40 -0700)]
rgw: call rgw_store_user_info() with objv_tracker

another rebase casualty

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw-admin: fix some more merge issues
Yehuda Sadeh [Tue, 16 Apr 2013 02:08:47 +0000 (19:08 -0700)]
rgw-admin: fix some more merge issues

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw-admin: fix user_id initialization
Yehuda Sadeh [Tue, 16 Apr 2013 01:51:35 +0000 (18:51 -0700)]
rgw-admin: fix user_id initialization

broken due to rebase

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: share object tag and index tag
Yehuda Sadeh [Mon, 15 Apr 2013 19:32:48 +0000 (12:32 -0700)]
rgw: share object tag and index tag

object tag is now being written to the index, so that both
object and index hold the same tag. This is needed so that we
could know whether object and index refer to the same instance.

Also cleanup old legacy code that did atomic ops through cloning
objects.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: bucket index log fixes
Yehuda Sadeh [Fri, 12 Apr 2013 21:12:38 +0000 (14:12 -0700)]
rgw: bucket index log fixes

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agoradosgw-admin: bilog list gets marker and max-entries params
Yehuda Sadeh [Fri, 12 Apr 2013 17:15:06 +0000 (10:15 -0700)]
radosgw-admin: bilog list gets marker and max-entries params

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agoradosgw-admin, cls_rgw: list bucket index log
Yehuda Sadeh [Thu, 11 Apr 2013 21:43:35 +0000 (14:43 -0700)]
radosgw-admin, cls_rgw: list bucket index log

a new radosgw-admin command to list bucket index log.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agocls_rgw: bucket index versioning
Yehuda Sadeh [Thu, 11 Apr 2013 18:33:27 +0000 (11:33 -0700)]
cls_rgw: bucket index versioning

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: fix broken radosgw-admin user * commands
Yehuda Sadeh [Thu, 11 Apr 2013 06:00:28 +0000 (23:00 -0700)]
rgw: fix broken radosgw-admin user * commands

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agocls_rgw, rgw: bucket index logs modifications
Yehuda Sadeh [Wed, 10 Apr 2013 21:49:34 +0000 (14:49 -0700)]
cls_rgw, rgw: bucket index logs modifications

Add a log to the bucket index.

This commit also ties the "epoch" version that is kept
per index entry to the relevant ceph pool id. This fixes
the dependency on the specific pool where the object was
created, and makes it possible to copy rgw data pools.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: metadata rm
Yehuda Sadeh [Fri, 22 Mar 2013 18:01:02 +0000 (11:01 -0700)]
rgw: metadata rm

Still needs to fix the way we remove user entries; need to take
different path, similar to put_entry())

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: cls_log_trim boundary change
Yehuda Sadeh [Fri, 22 Mar 2013 17:54:47 +0000 (10:54 -0700)]
rgw: cls_log_trim boundary change

end_time is not inclusive

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: show metadata log through radosgw-admin
Yehuda Sadeh [Wed, 20 Mar 2013 22:47:14 +0000 (15:47 -0700)]
rgw: show metadata log through radosgw-admin

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: use new cls_log listing interface
Yehuda Sadeh [Wed, 20 Mar 2013 17:38:30 +0000 (10:38 -0700)]
rgw: use new cls_log listing interface

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agocls_log: adjust listing api
Yehuda Sadeh [Wed, 20 Mar 2013 17:37:42 +0000 (10:37 -0700)]
cls_log: adjust listing api

Listing api now also gets end time and a marker.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: log user operations
Yehuda Sadeh [Tue, 19 Mar 2013 21:52:47 +0000 (14:52 -0700)]
rgw: log user operations

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: track object versions between reads and writes
Yehuda Sadeh [Tue, 19 Mar 2013 14:32:16 +0000 (07:32 -0700)]
rgw: track object versions between reads and writes

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>