]>
git.apps.os.sepia.ceph.com Git - ceph.git/log
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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>
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>
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>
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>
Yehuda Sadeh [Thu, 3 Sep 2015 17:58:56 +0000 (10:58 -0700)]
rgw: fix typo
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Orit Wasserman [Tue, 1 Sep 2015 12:30:38 +0000 (14:30 +0200)]
rgw: add zonegroup name or id to zonegroup get and set commands
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
Orit Wasserman [Tue, 1 Sep 2015 11:03:11 +0000 (13:03 +0200)]
rgw: Add zonegroup create, delete and rename admin commands
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
Orit Wasserman [Tue, 1 Sep 2015 10:38:39 +0000 (12:38 +0200)]
rgw: add period activate admin command and fix get current command
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
Orit Wasserman [Tue, 1 Sep 2015 09:55:27 +0000 (11:55 +0200)]
rgw: add current_period to RGWRealm
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
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>
Orit Wasserman [Tue, 25 Aug 2015 13:05:13 +0000 (15:05 +0200)]
rgw: Add old_format support to RGWSystemMetaObj
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
Orit Wasserman [Thu, 20 Aug 2015 10:07:20 +0000 (12:07 +0200)]
rgw: add id to zonegroup
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
Orit Wasserman [Thu, 20 Aug 2015 10:07:44 +0000 (12:07 +0200)]
rgw: remove region
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
Orit Wasserman [Mon, 10 Aug 2015 16:19:02 +0000 (18:19 +0200)]
rgw: change RGWZoneGroup::get_pool_name to return string
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
Orit Wasserman [Fri, 7 Aug 2015 12:01:39 +0000 (14:01 +0200)]
rgw: convert old region configuration to zonegroups during init
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
Orit Wasserman [Thu, 27 Aug 2015 09:09:07 +0000 (11:09 +0200)]
fix ceph-dencoder link
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
Orit Wasserman [Thu, 6 Aug 2015 15:40:03 +0000 (17:40 +0200)]
cmake: add rgw_sync.cc and rgw_coroutine.cc
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
Yehuda Sadeh [Sat, 15 Aug 2015 00:34:47 +0000 (17:34 -0700)]
rgw: fix async sleep and wakeup logic
lot's of cleanups and fixes
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Tue, 25 Aug 2015 00:10:46 +0000 (17:10 -0700)]
rgw: full meta sync
need to handle errors, and update markers, but full meta sync is functional
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Mon, 24 Aug 2015 21:49:28 +0000 (14:49 -0700)]
rgw: naively fetch all meta objects
doing it one by one, later will spawn these concurrently
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Wed, 19 Aug 2015 00:14:05 +0000 (17:14 -0700)]
rgw: read remote meta coroutine
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Tue, 18 Aug 2015 23:41:55 +0000 (16:41 -0700)]
rgw: read full sync indexes
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Tue, 18 Aug 2015 21:18:53 +0000 (14:18 -0700)]
rgw: modify sync state, sync run uses state
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Tue, 18 Aug 2015 20:43:39 +0000 (13:43 -0700)]
rgw: coroutie for omap_get_vals()
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Tue, 18 Aug 2015 18:57:27 +0000 (11:57 -0700)]
rgw: keep track of spawned coroutines under the current op
instead of keeping a per-stack list of spawned coroutines, keep it
on the op that spawned it. Otherwise, we might spawn a cr, call a second
one that will spawn some crs, and when waiting for these to complete
it will also wait on the first one.
The list of spawned coroutines is inherited. Once a coroutine finishes
its parent will take over all the spawned ones that weren't collected.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Tue, 18 Aug 2015 00:13:13 +0000 (17:13 -0700)]
rgw: replace omap_set coroutine code
No need to use the async rados worker.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Sat, 15 Aug 2015 01:45:23 +0000 (18:45 -0700)]
rgw: fix the simple coroutine
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Sat, 15 Aug 2015 00:34:47 +0000 (17:34 -0700)]
rgw: fix async sleep and wakeup logic
lot's of cleanups and fixes
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Fri, 14 Aug 2015 19:33:11 +0000 (12:33 -0700)]
rgw: coroutines producer consumers
Create a new producer-consumer(s) abstraction for the coroutines
infrastructure.
Move environment info from the op into the stack. Stack can be
sent to sleep and awaken explicitly.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Fri, 14 Aug 2015 05:59:51 +0000 (22:59 -0700)]
rgw: build index of all master zone meta keys
still wip, but getting there
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Thu, 13 Aug 2015 01:28:31 +0000 (18:28 -0700)]
rgw: create a coroutine for fetching REST api objects
this simplifies the code that yanks all the metadata from the master
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Thu, 13 Aug 2015 00:47:50 +0000 (17:47 -0700)]
rgw: fetch all metadata entries
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Wed, 12 Aug 2015 22:41:16 +0000 (15:41 -0700)]
rgw: meta sync cleanups
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Wed, 12 Aug 2015 21:03:17 +0000 (14:03 -0700)]
rgw: remove calls for synchronous rados ops
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Wed, 12 Aug 2015 20:49:36 +0000 (13:49 -0700)]
radosgw-admin: dump shard status on mdlog sync status
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Wed, 12 Aug 2015 18:55:31 +0000 (11:55 -0700)]
rgw: initialize all shard markers
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Wed, 12 Aug 2015 18:40:40 +0000 (11:40 -0700)]
rgw: return error if any spawned op errored
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Tue, 11 Aug 2015 22:20:02 +0000 (15:20 -0700)]
rgw: iterate through all mdlog sync status shards
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Tue, 11 Aug 2015 21:43:02 +0000 (14:43 -0700)]
rgw: remove unused code, cleanups
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Tue, 11 Aug 2015 20:48:57 +0000 (13:48 -0700)]
rgw: adjust mdlog fetch to use new interfaces
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Tue, 11 Aug 2015 20:39:19 +0000 (13:39 -0700)]
rgw: fix init mdlog sync
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Tue, 11 Aug 2015 07:41:39 +0000 (00:41 -0700)]
rgw: mdlog sync init
initialize mdlog sync state, uses the implicit yield scheme (from boost)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Tue, 11 Aug 2015 06:21:46 +0000 (23:21 -0700)]
rgw: use boost for stackless coroutine flow
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Mon, 10 Aug 2015 20:57:05 +0000 (13:57 -0700)]
rgw: add cookie to lock coroutines
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Mon, 10 Aug 2015 20:49:05 +0000 (13:49 -0700)]
rgw: more lock/unlock coroutines work
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Fri, 7 Aug 2015 23:51:13 +0000 (16:51 -0700)]
rgw: prepare rados lock operation to be used with coroutines
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Fri, 7 Aug 2015 22:02:13 +0000 (15:02 -0700)]
rgw: simple rgw metadata write coroutine
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Fri, 7 Aug 2015 21:17:33 +0000 (14:17 -0700)]
rgw: move coroutines code
move the generic code to rgw_coroutine.{h,cc}
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Thu, 6 Aug 2015 23:11:34 +0000 (16:11 -0700)]
rgw: return retcode of failing coroutine
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Thu, 6 Aug 2015 22:37:46 +0000 (15:37 -0700)]
rgw: rename async ops to coroutines
which they basically are
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Thu, 6 Aug 2015 18:26:31 +0000 (11:26 -0700)]
rgw: fail if master zone tries to use meta sync
We'll change it later, but as it is now that's the way to handle it
gracefully.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Orit Wasserman [Tue, 28 Jul 2015 11:36:44 +0000 (13:36 +0200)]
rgw: Fix init_complete
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
Orit Wasserman [Mon, 13 Jul 2015 16:32:46 +0000 (18:32 +0200)]
rgw: support old region configurations
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
Orit Wasserman [Tue, 14 Jul 2015 11:53:08 +0000 (13:53 +0200)]
rgw: Remove region admin commands
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
Orit Wasserman [Mon, 13 Jul 2015 13:07:25 +0000 (15:07 +0200)]
rgw: Add zone group admin commands
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
Orit Wasserman [Tue, 14 Jul 2015 08:53:43 +0000 (10:53 +0200)]
rgw: zonegroup json encoding/decoding with backward compatability
Signed-off-by: Orit Wasserman <owasserm@redhat.com>