]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
9 years agorgw: add period_map to period dump and encode_json
Orit Wasserman [Mon, 12 Oct 2015 09:12:38 +0000 (11:12 +0200)]
rgw: add period_map to period dump and encode_json

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: fix whitespace and remove debug messages
Orit Wasserman [Mon, 12 Oct 2015 09:08:13 +0000 (11:08 +0200)]
rgw: fix whitespace and remove debug messages

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: add backward support for old regionmap format
Orit Wasserman [Wed, 23 Sep 2015 18:33:50 +0000 (20:33 +0200)]
rgw: add backward support for old regionmap format

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: add RGWRegionMap for backward support
Orit Wasserman [Thu, 24 Sep 2015 10:48:09 +0000 (12:48 +0200)]
rgw: add RGWRegionMap for backward support

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: remove debug message from decode_zones
Orit Wasserman [Wed, 23 Sep 2015 17:48:13 +0000 (19:48 +0200)]
rgw: remove debug message from decode_zones

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoradosgw-admin: remove extra print from zonegroup set command
Orit Wasserman [Wed, 23 Sep 2015 17:39:39 +0000 (19:39 +0200)]
radosgw-admin: remove extra print from zonegroup set command

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: rgwzone decode_json should handle empty id for backward compatabiltiy
Orit Wasserman [Wed, 23 Sep 2015 17:31:08 +0000 (19:31 +0200)]
rgw: rgwzone decode_json should handle empty id for backward compatabiltiy

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: systemmetaobj::create don't generate random id if id is provided
Orit Wasserman [Wed, 23 Sep 2015 15:09:55 +0000 (17:09 +0200)]
rgw: systemmetaobj::create don't generate random id if id is provided

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoradosgw-admin: zone set should handle old format json (without name or id)
Orit Wasserman [Wed, 23 Sep 2015 14:40:47 +0000 (16:40 +0200)]
radosgw-admin: zone set should handle old format json (without name or id)

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: add id to RGWZone dump and decode_json functions
Orit Wasserman [Wed, 23 Sep 2015 14:10:10 +0000 (16:10 +0200)]
rgw: add id to RGWZone dump and decode_json functions

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoradosgw-admin: zone create should update zonegroupmap for non standalone zones
Orit Wasserman [Wed, 23 Sep 2015 13:50:13 +0000 (15:50 +0200)]
radosgw-admin: zone create should update zonegroupmap for non standalone zones

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoradosgw-admin: fix zonegroup default
Orit Wasserman [Wed, 23 Sep 2015 13:20:34 +0000 (15:20 +0200)]
radosgw-admin: fix zonegroup default

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoradosgw-admin: add --rgw-zonegroup for backward compatability
Orit Wasserman [Wed, 23 Sep 2015 13:21:46 +0000 (15:21 +0200)]
radosgw-admin: add --rgw-zonegroup for backward compatability

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoradosgw-admin: zone set command should update zonegroupmap
Orit Wasserman [Wed, 23 Sep 2015 13:15:38 +0000 (15:15 +0200)]
radosgw-admin: zone set command should update zonegroupmap

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoradosgw-admin: realm set should update zonegroup map
Orit Wasserman [Wed, 23 Sep 2015 12:26:34 +0000 (14:26 +0200)]
radosgw-admin: realm set should update zonegroup map

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoradosgw-admin: zonegroup set needs to update zonegroupmap
Orit Wasserman [Wed, 23 Sep 2015 12:08:44 +0000 (14:08 +0200)]
radosgw-admin: zonegroup set needs to update zonegroupmap

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoradosgw-admin: fix zonegroupmap update
Orit Wasserman [Wed, 23 Sep 2015 11:59:43 +0000 (13:59 +0200)]
radosgw-admin: fix zonegroupmap update

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: backward compatabilty for zone set command
Orit Wasserman [Wed, 23 Sep 2015 11:41:45 +0000 (13:41 +0200)]
rgw: backward compatabilty for zone set command

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoradosgw-admin: add --rgw-zone for backward compatability
Orit Wasserman [Wed, 23 Sep 2015 11:06:38 +0000 (13:06 +0200)]
radosgw-admin: add --rgw-zone for backward compatability

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoradosgw-admin: update zonegroupmap when activating a period
Orit Wasserman [Wed, 23 Sep 2015 10:46:05 +0000 (12:46 +0200)]
radosgw-admin: update zonegroupmap when activating a period

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: fix zonegroupmap initialization in init_complete
Orit Wasserman [Wed, 23 Sep 2015 08:28:32 +0000 (10:28 +0200)]
rgw: fix zonegroupmap initialization in init_complete

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: use realm provided in the command line
Orit Wasserman [Wed, 23 Sep 2015 09:42:10 +0000 (11:42 +0200)]
rgw: use realm provided in the command line

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoradosgw-admin: use the correct realm id when creating a new zonegroup
Orit Wasserman [Wed, 23 Sep 2015 08:08:39 +0000 (10:08 +0200)]
radosgw-admin: use the correct realm id when creating a new zonegroup

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoradosgw-admin: use zonegroup realm id in zone add command
Orit Wasserman [Tue, 22 Sep 2015 20:08:57 +0000 (22:08 +0200)]
radosgw-admin: use zonegroup realm id in zone add command

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: add realm_id to zonegroup
Orit Wasserman [Tue, 22 Sep 2015 20:05:00 +0000 (22:05 +0200)]
rgw: add realm_id to zonegroup

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoradosgw-admin: update zonegroupmap when adding a zone
Orit Wasserman [Tue, 22 Sep 2015 19:55:38 +0000 (21:55 +0200)]
radosgw-admin: update zonegroupmap when adding a zone

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: use encode_map for zonegroups
Orit Wasserman [Tue, 22 Sep 2015 19:47:28 +0000 (21:47 +0200)]
rgw: use encode_map for zonegroups

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: fix zonegroup create
Orit Wasserman [Tue, 22 Sep 2015 19:46:27 +0000 (21:46 +0200)]
rgw: fix zonegroup create

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: fix realm create
Orit Wasserman [Tue, 22 Sep 2015 15:31:56 +0000 (17:31 +0200)]
rgw: fix realm create

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: fix init_complete when there is no realm
Orit Wasserman [Tue, 22 Sep 2015 14:26:16 +0000 (16:26 +0200)]
rgw: fix init_complete when there is no realm

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoradosgw-admin: fix error messages for zonegroup create
Orit Wasserman [Tue, 22 Sep 2015 14:24:30 +0000 (16:24 +0200)]
radosgw-admin: fix error messages for zonegroup create

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: fix zonegroup update
Orit Wasserman [Tue, 22 Sep 2015 12:40:51 +0000 (14:40 +0200)]
rgw: fix zonegroup update

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: update zonegroupmap when creating new realm
Orit Wasserman [Tue, 22 Sep 2015 07:47:08 +0000 (09:47 +0200)]
rgw: update zonegroupmap when creating new realm

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: add period_map to encode/decode
Orit Wasserman [Tue, 22 Sep 2015 19:30:41 +0000 (21:30 +0200)]
rgw: add period_map to encode/decode

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: add zonegroup_map period update
Orit Wasserman [Mon, 21 Sep 2015 15:32:06 +0000 (17:32 +0200)]
rgw: add zonegroup_map period update

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: add zonegroupmap realm update
Orit Wasserman [Mon, 21 Sep 2015 15:28:25 +0000 (17:28 +0200)]
rgw: add zonegroupmap realm update

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: fix encoding and decoding of realms and periods
Orit Wasserman [Tue, 22 Sep 2015 14:35:17 +0000 (16:35 +0200)]
rgw: fix encoding and decoding of realms and periods

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: add realms to zonegroupmap
Orit Wasserman [Mon, 21 Sep 2015 14:21:57 +0000 (16:21 +0200)]
rgw: add realms to zonegroupmap

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: zonegroup map contains a map of periods
Orit Wasserman [Mon, 21 Sep 2015 13:29:04 +0000 (15:29 +0200)]
rgw: zonegroup map contains a map of periods

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: move zonegroup data into rgwperiodmap
Orit Wasserman [Mon, 21 Sep 2015 10:26:25 +0000 (12:26 +0200)]
rgw: move zonegroup data into rgwperiodmap

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: cleanup period init
Orit Wasserman [Mon, 21 Sep 2015 09:45:04 +0000 (11:45 +0200)]
rgw: cleanup period init

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: use RGWZoneGroupMap in RGWPeriod
Orit Wasserman [Fri, 18 Sep 2015 11:37:05 +0000 (13:37 +0200)]
rgw: use RGWZoneGroupMap in RGWPeriod

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: add use_next_epoch method
Orit Wasserman [Fri, 18 Sep 2015 10:18:06 +0000 (12:18 +0200)]
rgw: add use_next_epoch method

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoradosgw-admin: add zone create, delete and rename commands
Orit Wasserman [Mon, 7 Sep 2015 17:28:16 +0000 (19:28 +0200)]
radosgw-admin: add zone create, delete and rename commands

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: RGWZoneParams should inherit from RGWSystemMetaObj
Orit Wasserman [Mon, 7 Sep 2015 09:09:11 +0000 (11:09 +0200)]
rgw: RGWZoneParams should inherit from RGWSystemMetaObj

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: RGWZoneGroup should inheirt from RGWSystemMetaObj
Orit Wasserman [Wed, 26 Aug 2015 14:43:49 +0000 (16:43 +0200)]
rgw: RGWZoneGroup should inheirt from RGWSystemMetaObj

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agocmake: fix erasure-code
Orit Wasserman [Fri, 24 Jul 2015 15:39:52 +0000 (17:39 +0200)]
cmake: fix erasure-code

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: Rename Region to ZoneGroup only internal structures and class
Orit Wasserman [Mon, 13 Jul 2015 12:56:53 +0000 (14:56 +0200)]
rgw: Rename Region to ZoneGroup only internal structures and class

User visuable are not changed: admin commands, jsons and rados objects names

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
Conflicts:
src/rgw/rgw_admin.cc
src/rgw/rgw_rados.cc

9 years agorgw: Add period admin commands and rest api to handle period
Orit Wasserman [Mon, 29 Jun 2015 14:48:34 +0000 (16:48 +0200)]
rgw: Add period admin commands and rest api to handle period

the new commands are prepare,delete, get, activate, pull and push

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
Conflicts:
src/rgw/rgw_admin.cc

9 years agorgw: Add RGWSystemMetaObj class
Orit Wasserman [Fri, 19 Jun 2015 13:21:55 +0000 (15:21 +0200)]
rgw: Add RGWSystemMetaObj class

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
Conflicts:
src/rgw/rgw_rados.cc

9 years agorgw: Add RGWNameToId and RGWDefaultSystemMetaObjInfo
Orit Wasserman [Fri, 12 Jun 2015 23:29:12 +0000 (01:29 +0200)]
rgw: Add RGWNameToId and RGWDefaultSystemMetaObjInfo

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: async rados requests through a work queue
Yehuda Sadeh [Wed, 5 Aug 2015 00:23:10 +0000 (17:23 -0700)]
rgw: async rados requests through a work queue

Tie in the async rados requests to the async framework.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: add new class to create resource request
Yehuda Sadeh [Sat, 11 Jul 2015 00:10:25 +0000 (17:10 -0700)]
rgw: add new class to create resource request

RGWRESTReadResource holds the request input and output. Previously
we were using stack variables that couldn't be used in the async
path.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: don't require system pools to start with a period
Yehuda Sadeh [Fri, 12 Jun 2015 00:03:08 +0000 (17:03 -0700)]
rgw: don't require system pools to start with a period

Make sure cache operations are being done on system objects.
Separate calls where needed to make sure that separate pool/bucket
handling is done correctly. When separating calls, don't use objv_tracker
for data objects, don't use data constructs for system objects.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agocls/rgw: rgw_bi_log_entry::decode_json(), decode ver
Yehuda Sadeh [Fri, 9 Oct 2015 03:53:42 +0000 (20:53 -0700)]
cls/rgw: rgw_bi_log_entry::decode_json(), decode ver

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: propagate olh_epoch for obj sync correctly
Yehuda Sadeh [Fri, 9 Oct 2015 03:52:17 +0000 (20:52 -0700)]
rgw: propagate olh_epoch for obj sync correctly

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agocls_rgw: reset dirent flag appropriately
Yehuda Sadeh [Thu, 8 Oct 2015 23:43:05 +0000 (16:43 -0700)]
cls_rgw: reset dirent flag appropriately

Need to mark dirent as versioned if it has instance.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: fetch_remote_obj() uses correct version_id
Yehuda Sadeh [Thu, 8 Oct 2015 22:52:13 +0000 (15:52 -0700)]
rgw: fetch_remote_obj() uses correct version_id

This fixes one aspect of the versioned objects sync

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: handle object removal in incremental data sync
Yehuda Sadeh [Thu, 8 Oct 2015 22:01:56 +0000 (15:01 -0700)]
rgw: handle object removal in incremental data sync

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: tie incremental data sync
Yehuda Sadeh [Wed, 7 Oct 2015 23:24:56 +0000 (16:24 -0700)]
rgw: tie incremental data sync

and other fixes

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: data sync locking fixes
Yehuda Sadeh [Wed, 7 Oct 2015 22:47:49 +0000 (15:47 -0700)]
rgw: data sync locking fixes

and other fixes

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: minor cleanup
Yehuda Sadeh [Wed, 7 Oct 2015 21:57:56 +0000 (14:57 -0700)]
rgw: minor cleanup

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: don't create connection object for zone without endpoints
Yehuda Sadeh [Wed, 7 Oct 2015 21:57:28 +0000 (14:57 -0700)]
rgw: don't create connection object for zone without endpoints

warn about it though

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: async data changes notifications
Yehuda Sadeh [Wed, 7 Oct 2015 19:51:17 +0000 (12:51 -0700)]
rgw: async data changes notifications

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: work towards datalog sync notification
Yehuda Sadeh [Wed, 7 Oct 2015 00:14:15 +0000 (17:14 -0700)]
rgw: work towards datalog sync notification

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: eliminate window for data sync marker
Yehuda Sadeh [Tue, 6 Oct 2015 22:53:49 +0000 (15:53 -0700)]
rgw: eliminate window for data sync marker

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: only account actual io for coroutine io window
Yehuda Sadeh [Tue, 6 Oct 2015 22:33:54 +0000 (15:33 -0700)]
rgw: only account actual io for coroutine io window

stacks that are put in interval_wait shouldn't be accounted.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: incremental data sync adjustments
Yehuda Sadeh [Tue, 6 Oct 2015 22:10:50 +0000 (15:10 -0700)]
rgw: incremental data sync adjustments

update marker, close a race

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: incremental data sync
Yehuda Sadeh [Tue, 6 Oct 2015 20:52:11 +0000 (13:52 -0700)]
rgw: incremental data sync

still needs some more work, but basic structure is there.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: fix data sync init
Yehuda Sadeh [Tue, 6 Oct 2015 04:27:33 +0000 (21:27 -0700)]
rgw: fix data sync init

Need to wait for shards' status.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: add rwlock to RGWObjectCtx
Yehuda Sadeh [Tue, 6 Oct 2015 00:39:16 +0000 (17:39 -0700)]
rgw: add rwlock to RGWObjectCtx

It can be used from multiple threads now.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: reduce the use of obj_ctx
Yehuda Sadeh [Mon, 5 Oct 2015 23:31:13 +0000 (16:31 -0700)]
rgw: reduce the use of obj_ctx

Should really get rid of all the obj_ctx use, unless it's really needed. It's
not thread safe.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: revive io window
Yehuda Sadeh [Mon, 5 Oct 2015 16:31:53 +0000 (09:31 -0700)]
rgw: revive io window

and several other fixes. Don't send unbounded number of IO requests,
send back http related errors (that didn't have a specific http status).

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: data sync, spawn sync on all shards
Yehuda Sadeh [Fri, 2 Oct 2015 22:29:57 +0000 (15:29 -0700)]
rgw: data sync, spawn sync on all shards

full sync should work now

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: move top level data sync function into coroutine
Yehuda Sadeh [Fri, 2 Oct 2015 20:20:47 +0000 (13:20 -0700)]
rgw: move top level data sync function into coroutine

So that it can be called from a coroutine

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: data sync work
Yehuda Sadeh [Fri, 2 Oct 2015 01:57:02 +0000 (18:57 -0700)]
rgw: data sync work

Instead of just keeping map of bucket instances, keep map of all the shards.
Also prepare the CRs that will call into the bucket sync.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: multiple fixes related to coroutines draining
Yehuda Sadeh [Tue, 29 Sep 2015 23:39:25 +0000 (16:39 -0700)]
rgw: multiple fixes related to coroutines draining

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoRevert "rgw: simplify unblocked by stack state change"
Yehuda Sadeh [Tue, 29 Sep 2015 21:45:52 +0000 (14:45 -0700)]
Revert "rgw: simplify unblocked by stack state change"

This reverts commit 8509ef5034818e163bebc8fd2de039a96b4a8f1a.

9 years agorgw: clean up child draining a bit
Yehuda Sadeh [Tue, 29 Sep 2015 21:24:28 +0000 (14:24 -0700)]
rgw: clean up child draining a bit

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: simplify unblocked by stack state change
Yehuda Sadeh [Tue, 29 Sep 2015 18:33:21 +0000 (11:33 -0700)]
rgw: simplify unblocked by stack state change

If blocked by another stack that is finished, just schedule, not waiting
on IO.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: finish execution when done with bucket sync
Yehuda Sadeh [Mon, 28 Sep 2015 23:56:24 +0000 (16:56 -0700)]
rgw: finish execution when done with bucket sync

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: add RGWCoroutine::wait_for_child()
Yehuda Sadeh [Mon, 28 Sep 2015 23:27:11 +0000 (16:27 -0700)]
rgw: add RGWCoroutine::wait_for_child()

Will yield until one of the spawned stacks finished execution.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: no need to yield while collecting
Yehuda Sadeh [Mon, 28 Sep 2015 21:25:44 +0000 (14:25 -0700)]
rgw: no need to yield while collecting

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: fix pending operations accounting
Yehuda Sadeh [Mon, 28 Sep 2015 21:19:00 +0000 (14:19 -0700)]
rgw: fix pending operations accounting

create RGWCoroutine::num_pending() to get the number of
pending spawned coroutines.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: collect spawned requests before completing coroutine
Yehuda Sadeh [Mon, 28 Sep 2015 19:50:42 +0000 (12:50 -0700)]
rgw: collect spawned requests before completing coroutine

Need to finish all processing before we return

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: url_encode http params in requests that we send
Yehuda Sadeh [Mon, 28 Sep 2015 19:49:30 +0000 (12:49 -0700)]
rgw: url_encode http params in requests that we send

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: skeleton for bucket index incremental sync
Yehuda Sadeh [Thu, 24 Sep 2015 23:52:12 +0000 (16:52 -0700)]
rgw: skeleton for bucket index incremental sync

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: add rgw_bi_log_entry::decode_json
Yehuda Sadeh [Thu, 24 Sep 2015 23:51:37 +0000 (16:51 -0700)]
rgw: add rgw_bi_log_entry::decode_json

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: init shard_id param for bucket listing
Yehuda Sadeh [Thu, 24 Sep 2015 21:56:52 +0000 (14:56 -0700)]
rgw: init shard_id param for bucket listing

shard_id can now be specified in the bucket instance http param

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: fix shard_id use
Yehuda Sadeh [Thu, 24 Sep 2015 21:26:42 +0000 (14:26 -0700)]
rgw: fix shard_id use

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: move bucket shard full sync to its own coroutine
Yehuda Sadeh [Thu, 24 Sep 2015 20:54:58 +0000 (13:54 -0700)]
rgw: move bucket shard full sync to its own coroutine

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: switch sync state when done with full bucket sync
Yehuda Sadeh [Thu, 24 Sep 2015 20:03:38 +0000 (13:03 -0700)]
rgw: switch sync state when done with full bucket sync

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: fix iteration over bucket entries in full sync
Yehuda Sadeh [Thu, 24 Sep 2015 19:51:51 +0000 (12:51 -0700)]
rgw: fix iteration over bucket entries in full sync

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: silence some verbose logs
Yehuda Sadeh [Thu, 24 Sep 2015 18:14:05 +0000 (11:14 -0700)]
rgw: silence some verbose logs

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoradosgw-admin: bucket sync commands don't require bucket id
Yehuda Sadeh [Thu, 24 Sep 2015 17:54:44 +0000 (10:54 -0700)]
radosgw-admin: bucket sync commands don't require bucket id

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: keep bucket sync markers in object attrs
Yehuda Sadeh [Wed, 23 Sep 2015 23:52:57 +0000 (16:52 -0700)]
rgw: keep bucket sync markers in object attrs

This allows to set the status separately for each of the
different stages (full, incremental), while allowing also
to set the attributes atomically.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: can read attrs when reading system obj
Yehuda Sadeh [Wed, 23 Sep 2015 19:19:27 +0000 (12:19 -0700)]
rgw: can read attrs when reading system obj

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: window of full sync operations per bucket
Yehuda Sadeh [Mon, 21 Sep 2015 23:34:25 +0000 (16:34 -0700)]
rgw: window of full sync operations per bucket

also store marker periodically, reuse marker logic from md sync.
Marker still needs some work.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: api adjustment following rebase
Yehuda Sadeh [Mon, 21 Sep 2015 18:28:55 +0000 (11:28 -0700)]
rgw: api adjustment following rebase

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: fix identification of canceled operation
Yehuda Sadeh [Sat, 19 Sep 2015 00:34:51 +0000 (17:34 -0700)]
rgw: fix identification of canceled operation

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