]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
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>
9 years agorgw: bucket sync fetches remote objects
Yehuda Sadeh [Fri, 18 Sep 2015 23:35:55 +0000 (16:35 -0700)]
rgw: bucket sync fetches remote objects

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: bucket sync, send marker when listing bucket shard
Yehuda Sadeh [Fri, 18 Sep 2015 17:50:24 +0000 (10:50 -0700)]
rgw: bucket sync, send marker when listing bucket shard

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: extend list bucket versions api
Yehuda Sadeh [Thu, 17 Sep 2015 23:51:36 +0000 (16:51 -0700)]
rgw: extend list bucket versions api

System user can now provide 'objs-container=true' in conjuction
with 'format=json' so that response is json and entries are
encoded correctly as array.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: fix signing for generated requests
Yehuda Sadeh [Thu, 17 Sep 2015 22:45:09 +0000 (15:45 -0700)]
rgw: fix signing for generated requests

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: list bucket instance shard entries for data sync
Yehuda Sadeh [Thu, 17 Sep 2015 22:01:17 +0000 (15:01 -0700)]
rgw: list bucket instance shard entries for data sync

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: read bucket sync status
Yehuda Sadeh [Wed, 16 Sep 2015 23:26:33 +0000 (16:26 -0700)]
rgw: read bucket sync status

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: per-bucket instance shard state
Yehuda Sadeh [Wed, 16 Sep 2015 22:47:54 +0000 (15:47 -0700)]
rgw: per-bucket instance shard state

add 'radosgw-admin bucket sync init' command

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: initial work on data sync run
Yehuda Sadeh [Wed, 16 Sep 2015 00:03:23 +0000 (17:03 -0700)]
rgw: initial work on data sync run

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw-admin: implement data sync init
Yehuda Sadeh [Tue, 15 Sep 2015 22:18:04 +0000 (15:18 -0700)]
rgw-admin: implement data sync init

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw-admin: data sync status command
Yehuda Sadeh [Tue, 15 Sep 2015 21:51:50 +0000 (14:51 -0700)]
rgw-admin: data sync status command

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: initial data sync work
Yehuda Sadeh [Tue, 15 Sep 2015 21:37:46 +0000 (14:37 -0700)]
rgw: initial data sync work

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw-admin: skeleton for data sync commands
Yehuda Sadeh [Tue, 15 Sep 2015 20:57:49 +0000 (13:57 -0700)]
rgw-admin: skeleton for data sync commands

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoradosgw-admin: switch mdlog sync commands to metadata sync
Yehuda Sadeh [Tue, 15 Sep 2015 20:51:08 +0000 (13:51 -0700)]
radosgw-admin: switch mdlog sync commands to metadata sync

radosgw-admin mdlog sync init -> metadata sync init
etc.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agobuild: add cls_timeindex_client to DENCODER_DEPS
Casey Bodley [Fri, 18 Sep 2015 15:40:15 +0000 (11:40 -0400)]
build: add cls_timeindex_client to DENCODER_DEPS

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: propagate rgwx-bucket-instance for copying objects
Yehuda Sadeh [Wed, 6 May 2015 23:03:46 +0000 (16:03 -0700)]
rgw: propagate rgwx-bucket-instance for copying objects

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: fix time parsing for delete precondition
Yehuda Sadeh [Thu, 9 Apr 2015 18:41:10 +0000 (11:41 -0700)]
rgw: fix time parsing for delete precondition

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: add no-precondition-error http param for object delete
Yehuda Sadeh [Thu, 2 Apr 2015 00:22:04 +0000 (17:22 -0700)]
rgw: add no-precondition-error http param for object delete

In case we don't want to get an error response when a precondition
failed.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: add mtime check to object removal if needed
Yehuda Sadeh [Thu, 2 Apr 2015 00:07:03 +0000 (17:07 -0700)]
rgw: add mtime check to object removal if needed

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agocls/rgw: add an objclass method to check obj mtime
Yehuda Sadeh [Wed, 1 Apr 2015 22:56:49 +0000 (15:56 -0700)]
cls/rgw: add an objclass method to check obj mtime

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: add DELETE_IF_UNMODIFIED_SINCE header to obj delete
Yehuda Sadeh [Wed, 1 Apr 2015 21:57:19 +0000 (14:57 -0700)]
rgw: add DELETE_IF_UNMODIFIED_SINCE header to obj delete

Will delete object only if not modified after the specified time. Still
need to close a race where object is modified after the check.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: more api adjustments
Yehuda Sadeh [Wed, 10 Feb 2016 22:53:49 +0000 (14:53 -0800)]
rgw: more api adjustments

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: adjust calls
Yehuda Sadeh [Wed, 10 Feb 2016 22:38:40 +0000 (14:38 -0800)]
rgw: adjust calls

as part of  a rebase work

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: identify racing writes when using copy-if-newer
Yehuda Sadeh [Thu, 26 Mar 2015 00:35:40 +0000 (17:35 -0700)]
rgw: identify racing writes when using copy-if-newer

When copying an object from a different zone, and copy-if-newer is
specified, if the final meta write is canceled check whether the
destinatioin that was created is actually newer than our mtime,
otherwise retry.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: translate http error 304 to appropriate status
Yehuda Sadeh [Wed, 25 Mar 2015 05:48:03 +0000 (22:48 -0700)]
rgw: translate http error 304 to appropriate status

So that we can return the appropriate response on a conditioinal multi
zone copy operation.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: fix if-modified-since boundary
Yehuda Sadeh [Wed, 25 Mar 2015 03:24:55 +0000 (20:24 -0700)]
rgw: fix if-modified-since boundary

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