]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
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>
9 years agorgw: add rgwx-copy-if-newer http header
Yehuda Sadeh [Wed, 25 Mar 2015 03:16:02 +0000 (20:16 -0700)]
rgw: add rgwx-copy-if-newer http header

Similar to IF_MOD_SINCE, but does not take a time argument, and should
protected against races (not there yet).

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: make rgw_user::empty() const
Yehuda Sadeh [Wed, 10 Feb 2016 19:41:58 +0000 (11:41 -0800)]
rgw: make rgw_user::empty() const

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: access zone.name, zonegroup_name through accessor
Yehuda Sadeh [Wed, 10 Feb 2016 19:37:38 +0000 (11:37 -0800)]
rgw: access zone.name, zonegroup_name through accessor

fix as part of a rebase

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: dump internal object tag when system user lists bucket
Yehuda Sadeh [Tue, 10 Mar 2015 22:47:38 +0000 (15:47 -0700)]
rgw: dump internal object tag when system user lists bucket

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: system user can list bucket shard
Yehuda Sadeh [Tue, 10 Mar 2015 00:16:58 +0000 (17:16 -0700)]
rgw: system user can list bucket shard

By setting the HTTP-Rgwx-Shard-Id header to the shard id.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: get_bucket_stats() returns a plain marker if shard specified
Yehuda Sadeh [Sat, 7 Mar 2015 01:22:33 +0000 (17:22 -0800)]
rgw: get_bucket_stats() returns a plain marker if shard specified

E.g, will return 00001234 vs. 2#00001234 if shard 2 specified.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: bilog info can get shard id
Yehuda Sadeh [Sat, 7 Mar 2015 00:40:07 +0000 (16:40 -0800)]
rgw: bilog info can get shard id

We would like to be able to get bilog info by shard if needed.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: fix uninitialized variable
Yehuda Sadeh [Tue, 15 Sep 2015 18:19:02 +0000 (11:19 -0700)]
rgw: fix uninitialized variable

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: move more code
Yehuda Sadeh [Tue, 15 Sep 2015 00:09:58 +0000 (17:09 -0700)]
rgw: move more code

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: trivial fix
Yehuda Sadeh [Tue, 15 Sep 2015 00:06:19 +0000 (17:06 -0700)]
rgw: trivial fix

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: use internal wait instead of special coroutine
Yehuda Sadeh [Tue, 15 Sep 2015 00:03:01 +0000 (17:03 -0700)]
rgw: use internal wait instead of special coroutine

Instead of using a special coroutine that spawns a separate thread
and waits on a condition, use the internal coroutine stack wait.
This is useful since it since we limit the number of IO threads
we spawn.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: coroutine stack wait util
Yehuda Sadeh [Mon, 14 Sep 2015 23:37:36 +0000 (16:37 -0700)]
rgw: coroutine stack wait util

Instead of using a separate coroutine for waiting on
a condition.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: move more code around
Yehuda Sadeh [Mon, 14 Sep 2015 22:02:06 +0000 (15:02 -0700)]
rgw: move more code around

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: move code around
Yehuda Sadeh [Mon, 14 Sep 2015 21:19:34 +0000 (14:19 -0700)]
rgw: move code around

move code from rgw_sync.cc to rgw_cr_rados.{h,cc}

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: rearrange full metadata sync order
Yehuda Sadeh [Fri, 11 Sep 2015 23:21:40 +0000 (16:21 -0700)]
rgw: rearrange full metadata sync order

Users need to exist before their buckets, better have bucket instances
before bucket entry points

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: trivial fixes
Yehuda Sadeh [Fri, 11 Sep 2015 15:45:54 +0000 (08:45 -0700)]
rgw: trivial fixes

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: fix shutdown
Yehuda Sadeh [Fri, 11 Sep 2015 00:53:01 +0000 (17:53 -0700)]
rgw: fix shutdown

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: http client req handling fixes
Yehuda Sadeh [Fri, 11 Sep 2015 00:31:03 +0000 (17:31 -0700)]
rgw: http client req handling fixes

The error buffer for the async requests was on the stack, and not
on the request structure. Some other use after free and locking fixes.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: wake up appropriate shard sync handler
Yehuda Sadeh [Wed, 9 Sep 2015 01:41:43 +0000 (18:41 -0700)]
rgw: wake up appropriate shard sync handler

When receiving notification about modified shard, wake up the appropriate handler

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: a few sync thread init/finalization fixes
Yehuda Sadeh [Tue, 8 Sep 2015 22:58:38 +0000 (15:58 -0700)]
rgw: a few sync thread init/finalization fixes

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: run and stop sync thread
Yehuda Sadeh [Tue, 8 Sep 2015 22:24:16 +0000 (15:24 -0700)]
rgw: run and stop sync thread

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: simple thread base class
Yehuda Sadeh [Tue, 8 Sep 2015 21:39:09 +0000 (14:39 -0700)]
rgw: simple thread base class

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: decode mdlog notification shards
Yehuda Sadeh [Sat, 5 Sep 2015 00:23:21 +0000 (17:23 -0700)]
rgw: decode mdlog notification shards

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: send mdlog changes notifications to zones
Yehuda Sadeh [Sat, 5 Sep 2015 00:12:18 +0000 (17:12 -0700)]
rgw: send mdlog changes notifications to zones

Will probably need to rework this, as it is now zones may interfere
with each other which is not optimal.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: add simple POST requests interfaces
Yehuda Sadeh [Sat, 5 Sep 2015 00:11:52 +0000 (17:11 -0700)]
rgw: add simple POST requests interfaces

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoceph_json: add json encoder / decoder for std::set
Yehuda Sadeh [Sat, 5 Sep 2015 00:11:05 +0000 (17:11 -0700)]
ceph_json: add json encoder / decoder for std::set

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: periodical thread that tracks mdlog changes
Yehuda Sadeh [Thu, 3 Sep 2015 23:02:10 +0000 (16:02 -0700)]
rgw: periodical thread that tracks mdlog changes

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: handle mdlog post request
Yehuda Sadeh [Thu, 3 Sep 2015 22:20:24 +0000 (15:20 -0700)]
rgw: handle mdlog post request

with 'notify' subresource. Will be used later for handling notifications
about modified mdlog shards.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: keep track of modified mdlog shards
Yehuda Sadeh [Thu, 3 Sep 2015 22:19:46 +0000 (15:19 -0700)]
rgw: keep track of modified mdlog shards

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: create the first period when creating a new realm
Orit Wasserman [Tue, 15 Sep 2015 13:59:21 +0000 (15:59 +0200)]
rgw: create the first period when creating a new realm

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: Add zone add command
Orit Wasserman [Tue, 15 Sep 2015 10:30:22 +0000 (12:30 +0200)]
rgw: Add zone add command

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoradosgw-admin: allow creating a zone without a zone group
Orit Wasserman [Tue, 15 Sep 2015 09:19:23 +0000 (11:19 +0200)]
radosgw-admin: allow creating a zone without a zone group

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: add master flag to zonegroup create command
Orit Wasserman [Mon, 14 Sep 2015 15:13:26 +0000 (17:13 +0200)]
rgw: add master flag to zonegroup create command

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoradosgw-admin: period pull supports --url
Casey Bodley [Mon, 14 Sep 2015 20:01:15 +0000 (16:01 -0400)]
radosgw-admin: period pull supports --url

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agoradosgw-admin: fixes for period push/pull
Casey Bodley [Wed, 9 Sep 2015 14:56:31 +0000 (10:56 -0400)]
radosgw-admin: fixes for period push/pull

for send_to_remote_gateway() to work, the push and pull commands had to
be moved to the not-raw-storage section, because RGWRados::init_complete
is needed to set up the gateway connections

the period push command was changed to send the json-encoded period
data, so an in_data argument was added to send_to_remote_gateway()

the parameters for push and pull needed to remain separate from the
request_uri, because request_uri is used as input for the auth digest,
and the server side parses the parameters separately as well

Implements feature #11944

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: RGWRESTSimpleRequest::forward_request params
Casey Bodley [Fri, 11 Sep 2015 17:11:39 +0000 (13:11 -0400)]
rgw: RGWRESTSimpleRequest::forward_request params

forward_request() uses new_info.build_from(info) to initialize the new
request info. but this doesn't copy the RGWHTTPArgs, so any parameters
associated with info are dropped

it later uses new_info.args.get_params() to generate the params_str,
but no code in between adds any parameters to new_info. so use
info.args.get_params() instead to keep any parameters from the original
request info

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agocommon: expose Formatter::flush to derived classes
Casey Bodley [Wed, 9 Sep 2015 20:56:48 +0000 (16:56 -0400)]
common: expose Formatter::flush to derived classes

class Formatter declares both a 'virtual void flush(ostream&)' and a
'void flush(bufferlist&)'. however, because its subclasses only override
the former, c++'s function overloading rules cause the latter overload
to be hidden

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: POST /admin/realm/period reads in json data
Casey Bodley [Tue, 8 Sep 2015 20:12:10 +0000 (16:12 -0400)]
rgw: POST /admin/realm/period reads in json data

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: delay allocation of RGWPeriod
Casey Bodley [Tue, 8 Sep 2015 17:45:05 +0000 (13:45 -0400)]
rgw: delay allocation of RGWPeriod

RGWOp_Period_Get and _Post don't have a valid RGWRados pointer until
they get the init() call, so the constructors were passing NULL to
RGWPeriod

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: add handler for /admin/realm/period
Casey Bodley [Tue, 8 Sep 2015 15:41:26 +0000 (11:41 -0400)]
rgw: add handler for /admin/realm/period

the handler returns the existing RGWOp_Period_Get/Post ops from
rgw_rest_config.h

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: fixes for RGWZoneGroupMap::decode_json
Casey Bodley [Wed, 9 Sep 2015 20:44:16 +0000 (16:44 -0400)]
rgw: fixes for RGWZoneGroupMap::decode_json

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agoradosgw-admin: add realm set command
Casey Bodley [Wed, 9 Sep 2015 14:52:41 +0000 (10:52 -0400)]
radosgw-admin: add realm set command

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agoradosgw-admin: add json output to create commands
Casey Bodley [Tue, 8 Sep 2015 17:47:48 +0000 (13:47 -0400)]
radosgw-admin: add json output to create commands

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: fix period init and activate
Orit Wasserman [Fri, 11 Sep 2015 09:23:28 +0000 (11:23 +0200)]
rgw: fix period init and activate

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: update period predecessor when it is activated
Orit Wasserman [Wed, 9 Sep 2015 16:35:26 +0000 (18:35 +0200)]
rgw: update period predecessor when it is activated

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: fix realm list-periods
Orit Wasserman [Wed, 9 Sep 2015 16:20:28 +0000 (18:20 +0200)]
rgw: fix realm list-periods

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: realm id and epoch should be part of period oid
Orit Wasserman [Wed, 9 Sep 2015 12:53:40 +0000 (14:53 +0200)]
rgw: realm id and epoch should be part of period oid

fixes period get and activate command
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: Add realm list-periods command
Orit Wasserman [Wed, 9 Sep 2015 09:34:19 +0000 (11:34 +0200)]
rgw: Add realm list-periods command

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoradosgw-admin: Add master_zonegroup and master_zone to period prepare
Orit Wasserman [Wed, 9 Sep 2015 08:54:47 +0000 (10:54 +0200)]
radosgw-admin: Add master_zonegroup and master_zone to period prepare

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoradosgw-admin: Add period list command
Orit Wasserman [Wed, 9 Sep 2015 08:40:01 +0000 (10:40 +0200)]
radosgw-admin: Add period list command

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoradosgw-admin: print new perion in period perpare command
Orit Wasserman [Wed, 9 Sep 2015 07:59:05 +0000 (09:59 +0200)]
radosgw-admin: print new perion in period perpare command

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: fix zone set command
Orit Wasserman [Tue, 8 Sep 2015 12:28:07 +0000 (14:28 +0200)]
rgw: fix zone set command

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: remove debug messages
Orit Wasserman [Tue, 8 Sep 2015 11:33:52 +0000 (13:33 +0200)]
rgw: remove debug messages

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: default zone should not be master
Orit Wasserman [Tue, 8 Sep 2015 11:25:59 +0000 (13:25 +0200)]
rgw: default zone should not be master

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: use id for master zone
Orit Wasserman [Mon, 7 Sep 2015 08:27:26 +0000 (10:27 +0200)]
rgw: use id for master zone

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: add id to RGWZoneParams
Orit Wasserman [Mon, 7 Sep 2015 08:27:01 +0000 (10:27 +0200)]
rgw: add id to RGWZoneParams

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
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-admin: adjustments to period get-current output
Yehuda Sadeh [Thu, 3 Sep 2015 20:27:58 +0000 (13:27 -0700)]
rgw-admin: adjustments to period get-current output

Make it output through the formatter

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw-admin: use default realm on realm get
Yehuda Sadeh [Thu, 3 Sep 2015 20:21:17 +0000 (13:21 -0700)]
rgw-admin: use default realm on realm get

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: pass const string reference
Yehuda Sadeh [Thu, 3 Sep 2015 18:35:05 +0000 (11:35 -0700)]
rgw: pass const string reference

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw-admin: fix realms list
Yehuda Sadeh [Thu, 3 Sep 2015 18:34:49 +0000 (11:34 -0700)]
rgw-admin: fix realms list

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: fix typo
Yehuda Sadeh [Thu, 3 Sep 2015 17:58:56 +0000 (10:58 -0700)]
rgw: fix typo

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: do the actual incremental metadata sync
Yehuda Sadeh [Thu, 3 Sep 2015 00:25:51 +0000 (17:25 -0700)]
rgw: do the actual incremental metadata sync

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: track mdlog marker
Yehuda Sadeh [Wed, 2 Sep 2015 23:22:23 +0000 (16:22 -0700)]
rgw: track mdlog marker

sync entries if the sync marker is < mdlog marker, otherwise
try to fetch more entries.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: don't force wait on blocked coroutines
Yehuda Sadeh [Wed, 2 Sep 2015 23:21:47 +0000 (16:21 -0700)]
rgw: don't force wait on blocked coroutines

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: fix busy wait in RGWHTTPManager
Yehuda Sadeh [Wed, 2 Sep 2015 21:50:31 +0000 (14:50 -0700)]
rgw: fix busy wait in RGWHTTPManager

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: sync local mdlog if needed
Yehuda Sadeh [Wed, 2 Sep 2015 20:09:44 +0000 (13:09 -0700)]
rgw: sync local mdlog if needed

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: wake up wait coroutine thread on destruction
Yehuda Sadeh [Wed, 2 Sep 2015 15:36:29 +0000 (08:36 -0700)]
rgw: wake up wait coroutine thread on destruction

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoAdd zone create admin command - wip
Orit Wasserman [Tue, 14 Jul 2015 13:22:14 +0000 (15:22 +0200)]
Add zone create admin command - wip

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: add id to RGWZone
Orit Wasserman [Thu, 3 Sep 2015 08:49:44 +0000 (10:49 +0200)]
rgw: add id to RGWZone

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: poll mdlog for incremental sync
Yehuda Sadeh [Wed, 2 Sep 2015 00:05:11 +0000 (17:05 -0700)]
rgw: poll mdlog for incremental sync

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: read mdlog entries for incremental sync
Yehuda Sadeh [Tue, 1 Sep 2015 23:18:32 +0000 (16:18 -0700)]
rgw: read mdlog entries for incremental sync

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: get remote mdlog status when initializing
Yehuda Sadeh [Tue, 1 Sep 2015 03:50:54 +0000 (20:50 -0700)]
rgw: get remote mdlog status when initializing

Use that as the lowerbound for the meta marker when we start
the incremental sync.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: hash full sync keys to shards
Yehuda Sadeh [Tue, 1 Sep 2015 02:22:53 +0000 (19:22 -0700)]
rgw: hash full sync keys to shards

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: switch to incremental sync when done full meta sync
Yehuda Sadeh [Sat, 29 Aug 2015 02:27:06 +0000 (19:27 -0700)]
rgw: switch to incremental sync when done full meta sync

each shard need to collect the coroutines it spawned before continuing.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: update global sync state after building meta indexes
Yehuda Sadeh [Fri, 28 Aug 2015 20:35:44 +0000 (13:35 -0700)]
rgw: update global sync state after building meta indexes

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: update meta sync markers during full sync operation
Yehuda Sadeh [Fri, 28 Aug 2015 18:52:08 +0000 (11:52 -0700)]
rgw: update meta sync markers during full sync operation

update marker per shard, keep a window so that we don't update after each change

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