]>
git.apps.os.sepia.ceph.com Git - ceph.git/log
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Yehuda Sadeh [Wed, 8 May 2013 21:54:54 +0000 (14:54 -0700)]
rgw: datalog trim
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Yehuda Sadeh [Fri, 15 Mar 2013 19:52:25 +0000 (12:52 -0700)]
rgw: initialize meta_mgr earlier
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Yehuda Sadeh [Fri, 15 Mar 2013 19:51:58 +0000 (12:51 -0700)]
test_cls_log: remove warning
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Yehuda Sadeh [Fri, 15 Mar 2013 18:14:02 +0000 (11:14 -0700)]
cls_log: extend unitest
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Yehuda Sadeh [Fri, 15 Mar 2013 18:02:10 +0000 (11:02 -0700)]
cls_log: more fixes
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Yehuda Sadeh [Thu, 14 Mar 2013 20:42:44 +0000 (13:42 -0700)]
cls_log: unitest
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Yehuda Sadeh [Thu, 14 Mar 2013 20:42:29 +0000 (13:42 -0700)]
cls_log: fixes, other adjustments
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Yehuda Sadeh [Thu, 14 Mar 2013 17:32:00 +0000 (10:32 -0700)]
objclass: provide new api for unique subop versioning
We need to be able to generate a unique identifier for
each subop. This can be useful e.g., if we want to keep multiple
omap data entries indexed by the same key. The unique id
is being generated by the current object id and the current
osd subop count. For write operations it's unique.
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Yehuda Sadeh [Thu, 14 Mar 2013 17:28:54 +0000 (10:28 -0700)]
osd: keep track of current osd subop num
This can be used later to generate unique subop versions
in compound write operations.
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Yehuda Sadeh [Tue, 12 Mar 2013 21:31:27 +0000 (14:31 -0700)]
cls_log: trim works in chunks, returns -ENODATA when done
Also created a higher level interface that iterates until
done.
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Yehuda Sadeh [Fri, 8 Mar 2013 23:30:31 +0000 (15:30 -0800)]
cls_log: a class to handle info sorted by timestamp
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Yehuda Sadeh [Wed, 6 Mar 2013 18:25:52 +0000 (10:25 -0800)]
rgw: metadata list user, only show uids
don't show unrelated object names
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Yehuda Sadeh [Wed, 6 Mar 2013 06:00:43 +0000 (22:00 -0800)]
rgw: user metadata updates also key version
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Yehuda Sadeh [Tue, 5 Mar 2013 22:43:00 +0000 (14:43 -0800)]
rgw: add top level metadata handler
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Yehuda Sadeh [Tue, 5 Mar 2013 22:08:21 +0000 (14:08 -0800)]
rgw: put metadata, other cleanups
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Yehuda Sadeh [Mon, 4 Mar 2013 20:25:34 +0000 (12:25 -0800)]
rgw: metadata manager, api to list keys
Also, implement key listing for user metadata.
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Yehuda Sadeh [Fri, 1 Mar 2013 21:01:18 +0000 (13:01 -0800)]
rgw: metadata set/get infrastructure
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Yehuda Sadeh [Fri, 1 Mar 2013 00:48:57 +0000 (16:48 -0800)]
rgw: rgw_get_system_obj() can return obj_version
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Yehuda Sadeh [Fri, 1 Mar 2013 00:08:30 +0000 (16:08 -0800)]
cls_version: add cls_version_read(ObjectReadOpeation&)
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Yehuda Sadeh [Thu, 28 Feb 2013 17:56:43 +0000 (09:56 -0800)]
librados: add two more ObjectOperation::exec()
- one that also gets out bufferlist and ret value pointer
- one that gets a callback context
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Yehuda Sadeh [Thu, 28 Feb 2013 18:14:21 +0000 (10:14 -0800)]
rgw: start tying metadata objs to version objclass
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Yehuda Sadeh [Wed, 27 Feb 2013 02:01:46 +0000 (18:01 -0800)]
cls_version: unitest
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Yehuda Sadeh [Wed, 27 Feb 2013 02:00:59 +0000 (18:00 -0800)]
cls_version: various fixes
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Yehuda Sadeh [Tue, 26 Feb 2013 22:53:49 +0000 (14:53 -0800)]
cls_version: create a new objclass
New objclass to track and modify objects versions.
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Yehuda Sadeh [Sat, 23 Feb 2013 00:19:37 +0000 (16:19 -0800)]
rgw: fix json decoding of rgw_bucket
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Yehuda Sadeh [Fri, 22 Feb 2013 20:42:18 +0000 (12:42 -0800)]
rgw: regionmap update
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Yehuda Sadeh [Fri, 22 Feb 2013 01:46:24 +0000 (17:46 -0800)]
rgw: get/set region map
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Yehuda Sadeh [Thu, 21 Feb 2013 23:37:57 +0000 (15:37 -0800)]
rgw: zone list, setup changes
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Yehuda Sadeh [Thu, 21 Feb 2013 22:56:11 +0000 (14:56 -0800)]
common/ceph_parser.cc: cleanup
remove extra logging to stdout
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Yehuda Sadeh [Thu, 21 Feb 2013 01:03:10 +0000 (17:03 -0800)]
rgw: set region info, default region
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Yehuda Sadeh [Thu, 21 Feb 2013 00:22:40 +0000 (16:22 -0800)]
rgw: can list regions, show default region info
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Yehuda Sadeh [Wed, 20 Feb 2013 01:57:06 +0000 (17:57 -0800)]
rgw: some region/zone related cleanups/fixes
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>