]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
12 years agocls_statelog: add client api functions
Yehuda Sadeh [Tue, 18 Jun 2013 04:06:42 +0000 (21:06 -0700)]
cls_statelog: add client api functions

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agocls_statelog: fixes and changes to api
Yehuda Sadeh [Tue, 18 Jun 2013 04:06:19 +0000 (21:06 -0700)]
cls_statelog: fixes and changes to api

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agocls_statelog: introducing new objclass to handle state tracking
Yehuda Sadeh [Tue, 18 Jun 2013 03:10:14 +0000 (20:10 -0700)]
cls_statelog: introducing new objclass to handle state tracking

Somewhat similar to the log objclass, but uses different data for
indexing. Also keeps a dual index. In general an entry has 3
identifiers:
 - object: the object id on which the operation is made
 - client_id: client's unique identifier
 - op_id: operation's unique identifier

An entry is indexed by both client_id+op_id, and by
object+op_id, make it possible to list operations
either by client_id, or by object id.
We also keep state per each entry and the new check_state request
can be used as a guard.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: object mtime the same for both object and bucket index
Yehuda Sadeh [Tue, 18 Jun 2013 00:41:41 +0000 (17:41 -0700)]
rgw: object mtime the same for both object and bucket index

Make sure object mtime that's passed to bucket index is the
same as the one set on the object.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: fix inter-region copy (ofs wasn't correct)
Yehuda Sadeh [Tue, 18 Jun 2013 00:14:22 +0000 (17:14 -0700)]
rgw: fix inter-region copy (ofs wasn't correct)

Fixing an issue with data read. Since inter-region copy uses
embedded metadata within the data input, we need to fix the ofs
accordingly.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: intra-region copy, preserve mtime
Yehuda Sadeh [Mon, 17 Jun 2013 22:39:11 +0000 (15:39 -0700)]
rgw: intra-region copy, preserve mtime

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: system user get obj returns JSON encoded metadata
Yehuda Sadeh [Mon, 17 Jun 2013 21:46:32 +0000 (14:46 -0700)]
rgw: system user get obj returns JSON encoded metadata

instead of binary encoded metadata

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: get / set user & bucket meta mtime
Yehuda Sadeh [Sun, 16 Jun 2013 05:06:33 +0000 (22:06 -0700)]
rgw: get / set user & bucket meta mtime

also update infrastructure to be able to set mtime on objects

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: preserve bucket creation time across different zones / regions
Yehuda Sadeh [Sun, 16 Jun 2013 01:41:21 +0000 (18:41 -0700)]
rgw: preserve bucket creation time across different zones / regions

Keep bucket creation time in RGWBucketInfo, and make use
of it where necessary.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: show mtime for metadata entries
Yehuda Sadeh [Sat, 15 Jun 2013 23:55:13 +0000 (16:55 -0700)]
rgw: show mtime for metadata entries

currently only shows for buckets

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: fixes for intra-zone object copy
Yehuda Sadeh [Sat, 15 Jun 2013 06:35:58 +0000 (23:35 -0700)]
rgw: fixes for intra-zone object copy

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: set bucket marker and bucket obj version from master
Yehuda Sadeh [Sat, 15 Jun 2013 05:58:08 +0000 (22:58 -0700)]
rgw: set bucket marker and bucket obj version from master

Make sure that bucket that's created gets the same marker as
the one that the master region generated. Also, for some reason
we weren't passing in the metadata obj version for the bucket.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: multiple changes for intra-zone object copy
Yehuda Sadeh [Sat, 15 Jun 2013 04:57:25 +0000 (21:57 -0700)]
rgw: multiple changes for intra-zone object copy

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: when setting bucket metadata key, don't override placement
Yehuda Sadeh [Sat, 15 Jun 2013 04:56:34 +0000 (21:56 -0700)]
rgw: when setting bucket metadata key, don't override placement

Bucket placement also contains data and index pools locations in
the source zone. However, we might be applying it on a different
zone, so we need to be careful not to use the source location here.
We generate a new placement if a new bucket is detected, otherwise
we keep the old one.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: forward amz headers of copy request to remote rgw
Yehuda Sadeh [Sat, 15 Jun 2013 01:20:41 +0000 (18:20 -0700)]
rgw: forward amz headers of copy request to remote rgw

So that if request has any special conditions, it'll be processed
on the remote gateway

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: cleanup, move init_meta_info() into req_info
Yehuda Sadeh [Sat, 15 Jun 2013 01:06:12 +0000 (18:06 -0700)]
rgw: cleanup, move init_meta_info() into req_info

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: remove unused variable
Yehuda Sadeh [Fri, 14 Jun 2013 22:39:57 +0000 (15:39 -0700)]
rgw: remove unused variable

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: bucket marker contains zone name
Yehuda Sadeh [Fri, 14 Jun 2013 22:01:33 +0000 (15:01 -0700)]
rgw: bucket marker contains zone name

(issue 5347)
We need this so that raw object names on different zones within
the same region don't collide.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: pass original object attrs through extra request data
Yehuda Sadeh [Fri, 14 Jun 2013 04:59:37 +0000 (21:59 -0700)]
rgw: pass original object attrs through extra request data

introduce a new mechanism that sends extra data with object
info, and use it to encode source object metadata.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: a few fixes to copy object across region
Yehuda Sadeh [Thu, 13 Jun 2013 06:59:49 +0000 (23:59 -0700)]
rgw: a few fixes to copy object across region

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: move most of object put processors implementation
Yehuda Sadeh [Thu, 13 Jun 2013 06:19:58 +0000 (23:19 -0700)]
rgw: move most of object put processors implementation

move code from rgw_op.cc to rgw_rados.cc, so that we could
use it in the lower layer.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: separate req_state from object put processors
Yehuda Sadeh [Thu, 13 Jun 2013 06:08:25 +0000 (23:08 -0700)]
rgw: separate req_state from object put processors

At least, for most of them. We'll move this code to rgw_rados.cc,
and we don't want it to have req_state.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: organize get_obj handling for copy a bit different
Yehuda Sadeh [Thu, 13 Jun 2013 05:39:15 +0000 (22:39 -0700)]
rgw: organize get_obj handling for copy a bit different

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: generate read request if source rgw is remote
Yehuda Sadeh [Thu, 13 Jun 2013 04:29:23 +0000 (21:29 -0700)]
rgw: generate read request if source rgw is remote

in a copy operation

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: propagate mtime from remote rgw on copy
Yehuda Sadeh [Wed, 12 Jun 2013 01:51:14 +0000 (18:51 -0700)]
rgw: propagate mtime from remote rgw on copy

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: propagate error from remote gateway when copying object
Yehuda Sadeh [Tue, 11 Jun 2013 17:43:08 +0000 (10:43 -0700)]
rgw: propagate error from remote gateway when copying object

Also make sure that we don't continue iterating locally through
the object.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: pass grant headers to target when writeing object
Yehuda Sadeh [Tue, 11 Jun 2013 04:59:15 +0000 (21:59 -0700)]
rgw: pass grant headers to target when writeing object

When writing object to remote gateway.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: head acls target can be quoted
Yehuda Sadeh [Tue, 11 Jun 2013 04:58:02 +0000 (21:58 -0700)]
rgw: head acls target can be quoted

when passing x-amz-grant-* headers, the target (id, email,
group) may be quoted.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: send meta headers with remote PUT request
Yehuda Sadeh [Mon, 10 Jun 2013 21:27:36 +0000 (14:27 -0700)]
rgw: send meta headers with remote PUT request

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: don't busy wait for outgoing rest requests
Yehuda Sadeh [Mon, 10 Jun 2013 18:20:06 +0000 (11:20 -0700)]
rgw: don't busy wait for outgoing rest requests

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: don't send redirect if copy object has a local source
Yehuda Sadeh [Sat, 8 Jun 2013 05:16:17 +0000 (22:16 -0700)]
rgw: don't send redirect if copy object has a local source

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: link bucket to owner on metadata update
Yehuda Sadeh [Fri, 7 Jun 2013 01:50:57 +0000 (18:50 -0700)]
rgw: link bucket to owner on metadata update

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: fix logic related to operations on different region
Yehuda Sadeh [Fri, 7 Jun 2013 01:50:27 +0000 (18:50 -0700)]
rgw: fix logic related to operations on different region

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: minor logging change
Yehuda Sadeh [Thu, 6 Jun 2013 20:45:18 +0000 (13:45 -0700)]
rgw: minor logging change

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: fix json decoding for swift keys
Yehuda Sadeh [Thu, 6 Jun 2013 20:44:47 +0000 (13:44 -0700)]
rgw: fix json decoding for swift keys

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
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>