]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
9 years agorgw: update realm_id when converting a region to zonegroup
Orit Wasserman [Mon, 26 Oct 2015 15:36:25 +0000 (16:36 +0100)]
rgw: update realm_id when converting a region to zonegroup

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: add converted regions into the current period
Orit Wasserman [Mon, 26 Oct 2015 12:01:31 +0000 (13:01 +0100)]
rgw: add converted regions into the current period

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: RGWRealmWatcher to reload RGWRados on changes
Casey Bodley [Wed, 16 Sep 2015 15:19:31 +0000 (11:19 -0400)]
rgw: RGWRealmWatcher to reload RGWRados on changes

adds RGWRealmWatcher, which watches the RGWRealm control object for
changes.  in a separate thread, all frontends are paused while the
RGWRados object is replaced with a new one

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: period commit calls notify_zone
Casey Bodley [Thu, 1 Oct 2015 14:52:45 +0000 (10:52 -0400)]
rgw: period commit calls notify_zone

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: add realm control object for watch/notify
Casey Bodley [Wed, 23 Sep 2015 15:15:10 +0000 (11:15 -0400)]
rgw: add realm control object for watch/notify

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: add pause/unpause to RGWFrontend interface
Casey Bodley [Tue, 15 Sep 2015 19:42:10 +0000 (15:42 -0400)]
rgw: add pause/unpause to RGWFrontend interface

RGWProcessFrontend implements pause/unpause through the ThreadPool
interface. RGWMongooseFrontend implements them with a reader/writer
lock that blocks the civetweb_callback() until unpause

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorwlock: add prioritize_write flag to prevent write starvation
Casey Bodley [Fri, 23 Oct 2015 20:56:11 +0000 (16:56 -0400)]
rwlock: add prioritize_write flag to prevent write starvation

RWLock's constructor takes an additional 'prioritize_write' flag, which
defaults to false.  when enabled, this adds the rwlock attribute
PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP, which will block calls to
pthread_rwlock_rdlock() if there are any writers waiting.  this avoids
starvation of pthread_rwlock_wrlock() in read-mostly workloads

also made the destructor non-virtual; this was adding a virtual function
table to the class, even though there are no other virtual functions.
added the 'final' keyword to document that it's not meant to be derived
from

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: RGWHTTPManager dtor stops background thread
Casey Bodley [Thu, 24 Sep 2015 18:16:01 +0000 (14:16 -0400)]
rgw: RGWHTTPManager dtor stops background thread

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agoradosgw-admin: remove period activate in favor of commit
Casey Bodley [Thu, 22 Oct 2015 20:35:51 +0000 (16:35 -0400)]
radosgw-admin: remove period activate in favor of commit

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agoradosgw-admin: add --commit flag for period update
Casey Bodley [Thu, 22 Oct 2015 15:27:40 +0000 (11:27 -0400)]
radosgw-admin: add --commit flag for period update

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agoradosgw-admin: add 'period commit' command
Casey Bodley [Tue, 20 Oct 2015 18:57:55 +0000 (14:57 -0400)]
radosgw-admin: add 'period commit' command

on the master zone, store the new period locally and notify the zone for
restart.  on other zones, send a 'period push' to the master zone with
an empty period id

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: period push handler supports commit
Casey Bodley [Mon, 19 Oct 2015 18:30:12 +0000 (14:30 -0400)]
rgw: period push handler supports commit

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: add RGWPeriod::commit()
Casey Bodley [Thu, 22 Oct 2015 13:54:19 +0000 (09:54 -0400)]
rgw: add RGWPeriod::commit()

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: period push handler updates current period/epoch
Casey Bodley [Mon, 19 Oct 2015 18:29:47 +0000 (14:29 -0400)]
rgw: period push handler updates current period/epoch

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: RGWPeriod accessors are const
Casey Bodley [Mon, 19 Oct 2015 20:35:25 +0000 (16:35 -0400)]
rgw: RGWPeriod accessors are const

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agoradosgw-admin: add realm pull command
Casey Bodley [Fri, 16 Oct 2015 21:15:28 +0000 (17:15 -0400)]
radosgw-admin: add realm pull command

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agoradosgw-admin: add send_to_remote_or_url() helper
Casey Bodley [Thu, 22 Oct 2015 15:22:02 +0000 (11:22 -0400)]
radosgw-admin: add send_to_remote_or_url() helper

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: add op for GET /admin/realm
Casey Bodley [Fri, 16 Oct 2015 20:59:06 +0000 (16:59 -0400)]
rgw: add op for GET /admin/realm

this is for the radosgw-admin 'realm pull' command, which gets the realm
object by name or id

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: add realm params to period pull
Casey Bodley [Wed, 21 Oct 2015 13:40:01 +0000 (09:40 -0400)]
rgw: add realm params to period pull

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: move period Ops to rgw_rest_realm.cc
Casey Bodley [Fri, 16 Oct 2015 20:41:00 +0000 (16:41 -0400)]
rgw: move period Ops to rgw_rest_realm.cc

this removes the handling of /admin/config?type=period

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: period allows setting id, epoch, latest_epoch
Casey Bodley [Mon, 19 Oct 2015 17:53:16 +0000 (13:53 -0400)]
rgw: period allows setting id, epoch, latest_epoch

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: omit epoch in oid for staging period
Casey Bodley [Wed, 21 Oct 2015 15:43:22 +0000 (11:43 -0400)]
rgw: omit epoch in oid for staging period

there should only be one staging period object, so the epoch is
an unnecessary part of its oid. and for period commit, we need to
remember the epoch of the predecessor period to make sure we're not
based on an old epoch

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agoradosgw-admin: add 'period update' to usage
Casey Bodley [Thu, 22 Oct 2015 15:23:16 +0000 (11:23 -0400)]
radosgw-admin: add 'period update' to usage

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: RGWRemoteMetaLog ctor sets async_rados=nullptr
Casey Bodley [Wed, 21 Oct 2015 13:08:06 +0000 (09:08 -0400)]
rgw: RGWRemoteMetaLog ctor sets async_rados=nullptr

RGWRemoteMetaLog::init() is not called in all error paths, so we need to
start with nullptr

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: fix comparison typo in RGWRados::init_complete
Casey Bodley [Tue, 20 Oct 2015 20:26:23 +0000 (16:26 -0400)]
rgw: fix comparison typo in RGWRados::init_complete

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: RGWHandler_Config should assume empty type is zonegroupmap
Orit Wasserman [Mon, 26 Oct 2015 11:23:10 +0000 (12:23 +0100)]
rgw: RGWHandler_Config should assume empty type is zonegroupmap

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: guard metadata full/incremental sync
Yehuda Sadeh [Fri, 23 Oct 2015 00:42:23 +0000 (17:42 -0700)]
rgw: guard metadata full/incremental sync

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: guard metadata sync initialization step
Yehuda Sadeh [Fri, 23 Oct 2015 00:00:08 +0000 (17:00 -0700)]
rgw: guard metadata sync initialization step

Guard the fetch-meta stage

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: a bit better coroutine related logging
Yehuda Sadeh [Wed, 21 Oct 2015 23:17:07 +0000 (16:17 -0700)]
rgw: a bit better coroutine related logging

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: initialize rest connection if no period
Yehuda Sadeh [Wed, 21 Oct 2015 21:44:34 +0000 (14:44 -0700)]
rgw: initialize rest connection if no period

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: multiple init metadata sync locking fixes
Yehuda Sadeh [Tue, 20 Oct 2015 21:57:52 +0000 (14:57 -0700)]
rgw: multiple init metadata sync locking fixes

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: backward compatability update_name for existing zones
Orit Wasserman [Thu, 22 Oct 2015 14:56:53 +0000 (16:56 +0200)]
rgw: backward compatability update_name for existing zones

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: update new name after converting region to zonegroup
Orit Wasserman [Thu, 22 Oct 2015 13:01:59 +0000 (15:01 +0200)]
rgw: update new name after converting region to zonegroup

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoradosgw-admin: fix zone get command
Orit Wasserman [Thu, 22 Oct 2015 12:58:51 +0000 (14:58 +0200)]
radosgw-admin: fix zone get command

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: use default zone in case there is no period or zone name
Orit Wasserman [Thu, 22 Oct 2015 09:41:21 +0000 (11:41 +0200)]
rgw: use default zone in case there is no period or zone name

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: RGWRados zonegroup and zone_public_config should not be accessed directly
Orit Wasserman [Wed, 21 Oct 2015 15:19:43 +0000 (17:19 +0200)]
rgw: RGWRados zonegroup and zone_public_config should not be accessed directly

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: RGWRados internal zone should be protected and not accessed directly
Orit Wasserman [Wed, 21 Oct 2015 14:39:29 +0000 (16:39 +0200)]
rgw: RGWRados internal zone should be protected and not accessed directly

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: fix RGWSystemMetaObj::init by passing old_format flag
Orit Wasserman [Wed, 21 Oct 2015 14:18:04 +0000 (16:18 +0200)]
rgw: fix RGWSystemMetaObj::init by passing old_format flag

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: convert regionmap
Orit Wasserman [Wed, 21 Oct 2015 09:24:43 +0000 (11:24 +0200)]
rgw: convert regionmap

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: add support to zonegroupmap set
Orit Wasserman [Tue, 20 Oct 2015 08:19:02 +0000 (10:19 +0200)]
rgw: add support to zonegroupmap set

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoradosgw-admin: zonegroupmap get should no error if no realm or period
Orit Wasserman [Mon, 19 Oct 2015 15:16:58 +0000 (17:16 +0200)]
radosgw-admin: zonegroupmap get should no error if no realm or period

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: no need to store or update zonegroupmap
Orit Wasserman [Mon, 19 Oct 2015 12:37:59 +0000 (14:37 +0200)]
rgw: no need to store or update zonegroupmap

Structure and command will be kept for backward compatability

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: remove zonegroup_map from RGWRados
Orit Wasserman [Mon, 19 Oct 2015 10:45:05 +0000 (12:45 +0200)]
rgw: remove zonegroup_map from RGWRados

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agocmake: move link dependencies to rgw_a
Casey Bodley [Thu, 1 Oct 2015 17:29:10 +0000 (13:29 -0400)]
cmake: move link dependencies to rgw_a

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agoCMake - add check for libcurl
Daniel Gryniewicz [Mon, 21 Sep 2015 15:50:45 +0000 (11:50 -0400)]
CMake - add check for libcurl

Signed-off-by: Daniel Gryniewicz <dang@fprintf.net>
9 years agorgw: don't read/init sync status if meta master
Yehuda Sadeh [Mon, 19 Oct 2015 18:11:21 +0000 (11:11 -0700)]
rgw: don't read/init sync status if meta master

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: fix log message
Yehuda Sadeh [Mon, 19 Oct 2015 18:11:14 +0000 (11:11 -0700)]
rgw: fix log message

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: can set zone read-only, can set zonegroup id
Yehuda Sadeh [Fri, 16 Oct 2015 22:48:39 +0000 (15:48 -0700)]
rgw: can set zone read-only, can set zonegroup id

and other fixes

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: update rest connections from the current period
Orit Wasserman [Mon, 19 Oct 2015 10:28:19 +0000 (12:28 +0200)]
rgw: update rest connections from the current period

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: read local zonegroup and zone only when needed
Orit Wasserman [Mon, 19 Oct 2015 10:19:14 +0000 (12:19 +0200)]
rgw: read local zonegroup and zone only when needed

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: use current_period zonegroup and zone when exists
Orit Wasserman [Mon, 19 Oct 2015 09:51:35 +0000 (11:51 +0200)]
rgw: use current_period zonegroup and zone when exists

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: read current period during init
Orit Wasserman [Mon, 19 Oct 2015 09:23:21 +0000 (11:23 +0200)]
rgw: read current period during init

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: zonegroup and zone should not be accessed directly
Orit Wasserman [Mon, 19 Oct 2015 09:06:56 +0000 (11:06 +0200)]
rgw: zonegroup and zone should not be accessed directly

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: get_predefined_name should get the ceph context
Orit Wasserman [Mon, 19 Oct 2015 08:31:35 +0000 (10:31 +0200)]
rgw: get_predefined_name should get the ceph context

so it can be called before object init

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: can override master zone config
Yehuda Sadeh [Fri, 16 Oct 2015 21:52:44 +0000 (14:52 -0700)]
rgw: can override master zone config

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw_admin: update zone set
Yehuda Sadeh [Fri, 16 Oct 2015 20:50:22 +0000 (13:50 -0700)]
rgw_admin: update zone set

zone set was broken, now it can update the zone params correctly. Also
inheriting the id from the current zone if exists, or uses the zone
name.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoradosgw-admin: zone add command should be zonegroup add
Orit Wasserman [Fri, 16 Oct 2015 11:37:22 +0000 (13:37 +0200)]
radosgw-admin: zone add command should be zonegroup add

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: run sync thread only when number of zones > 2 and master is configured
Orit Wasserman [Fri, 16 Oct 2015 10:35:31 +0000 (12:35 +0200)]
rgw: run sync thread only when number of zones > 2 and master is configured

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: update master zone
Yehuda Sadeh [Fri, 16 Oct 2015 00:12:38 +0000 (17:12 -0700)]
rgw: update master zone

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: stuff more info into the period
Yehuda Sadeh [Thu, 15 Oct 2015 23:37:37 +0000 (16:37 -0700)]
rgw: stuff more info into the period

and don't update the current period when adding zone, this
will be done through the staging period.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw_admin: period update command
Yehuda Sadeh [Thu, 15 Oct 2015 22:16:16 +0000 (15:16 -0700)]
rgw_admin: period update command

A command that creates staging period data out of current local data

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: auto create placement target params
Yehuda Sadeh [Thu, 15 Oct 2015 21:29:16 +0000 (14:29 -0700)]
rgw: auto create placement target params

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: create default zonegroup for first time run of the gateway
Orit Wasserman [Thu, 15 Oct 2015 12:19:42 +0000 (14:19 +0200)]
rgw: create default zonegroup for first time run of the gateway

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: --rgw-zone and --rgw-zonegroup use names not id
Orit Wasserman [Thu, 15 Oct 2015 08:36:21 +0000 (10:36 +0200)]
rgw: --rgw-zone and --rgw-zonegroup use names not id

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw_admin: can config access/secret key for zone
Yehuda Sadeh [Wed, 14 Oct 2015 23:35:28 +0000 (16:35 -0700)]
rgw_admin: can config access/secret key for zone

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw_admin: can set zonegroup api name
Yehuda Sadeh [Wed, 14 Oct 2015 23:24:01 +0000 (16:24 -0700)]
rgw_admin: can set zonegroup api name

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw_admin: can update zonegroup endpoints, is_master
Yehuda Sadeh [Wed, 14 Oct 2015 23:15:50 +0000 (16:15 -0700)]
rgw_admin: can update zonegroup endpoints, is_master

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: set first created zone as default
Yehuda Sadeh [Wed, 14 Oct 2015 22:44:23 +0000 (15:44 -0700)]
rgw: set first created zone as default

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: prefix default pools with zone name
Yehuda Sadeh [Wed, 14 Oct 2015 22:36:39 +0000 (15:36 -0700)]
rgw: prefix default pools with zone name

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: set first created realm as default
Yehuda Sadeh [Wed, 14 Oct 2015 21:54:56 +0000 (14:54 -0700)]
rgw: set first created realm as default

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: period oid doesn't include realm id
Yehuda Sadeh [Wed, 14 Oct 2015 21:48:51 +0000 (14:48 -0700)]
rgw: period oid doesn't include realm id

So that realm id is not a dependency for reading period.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: period get does not require specifying period id
Yehuda Sadeh [Wed, 14 Oct 2015 21:33:35 +0000 (14:33 -0700)]
rgw: period get does not require specifying period id

Can return the current period

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: use --rgw-realm instead of --realm
Yehuda Sadeh [Wed, 14 Oct 2015 21:32:19 +0000 (14:32 -0700)]
rgw: use --rgw-realm instead of --realm

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw_admin: realm set-default -> realm default
Yehuda Sadeh [Wed, 14 Oct 2015 18:37:48 +0000 (11:37 -0700)]
rgw_admin: realm set-default -> realm default

to be in line with the other default commands

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw_admin: zone delete doesn't require zonegroup
Yehuda Sadeh [Wed, 14 Oct 2015 18:26:16 +0000 (11:26 -0700)]
rgw_admin: zone delete doesn't require zonegroup

iterates through all the zonegroups and remove it

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw_admin: zone name need to be provided on zone create
Yehuda Sadeh [Wed, 14 Oct 2015 18:16:51 +0000 (11:16 -0700)]
rgw_admin: zone name need to be provided on zone create

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw_admin: don't require zonegroup id on some commands
Yehuda Sadeh [Wed, 14 Oct 2015 18:02:15 +0000 (11:02 -0700)]
rgw_admin: don't require zonegroup id on some commands

should be able to get the default one

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: don't use --zonegroup, use --rgw-zonegroup
Yehuda Sadeh [Wed, 14 Oct 2015 17:42:33 +0000 (10:42 -0700)]
rgw: don't use --zonegroup, use --rgw-zonegroup

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw_admin: a zone default command, and other changes
Yehuda Sadeh [Wed, 14 Oct 2015 17:28:01 +0000 (10:28 -0700)]
rgw_admin: a zone default command, and other changes

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw_admin: don't use --zone, use --rgw-zone
Yehuda Sadeh [Wed, 14 Oct 2015 15:45:20 +0000 (08:45 -0700)]
rgw_admin: don't use --zone, use --rgw-zone

--rgw-zone is tied to ceph.conf, and what we've always been using

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: update zonegroup endpoints when creating it
Orit Wasserman [Wed, 14 Oct 2015 16:42:48 +0000 (18:42 +0200)]
rgw: update zonegroup endpoints when creating it

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: update zone endpoints when creating a new zone
Orit Wasserman [Wed, 14 Oct 2015 15:37:33 +0000 (17:37 +0200)]
rgw: update zone endpoints when creating a new zone

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: update rest_conn_master when adding a new master zonegroup
Orit Wasserman [Wed, 14 Oct 2015 15:12:56 +0000 (17:12 +0200)]
rgw: update rest_conn_master when adding a new master zonegroup

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoradosgw-admin: zone get and rename commands should work without zonegroup id or name
Orit Wasserman [Wed, 14 Oct 2015 13:57:21 +0000 (15:57 +0200)]
radosgw-admin: zone get and rename commands should work without zonegroup id or name

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoradosgw-admin: check for valid input in zone delete command
Orit Wasserman [Wed, 14 Oct 2015 13:55:44 +0000 (15:55 +0200)]
radosgw-admin: check for valid input in zone delete command

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoradosgw-admin: check for valid input in zone add command
Orit Wasserman [Wed, 14 Oct 2015 13:54:15 +0000 (15:54 +0200)]
radosgw-admin: check for valid input in zone add command

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoradosgw-admin: check for valid input for zonegroup modify command
Orit Wasserman [Wed, 14 Oct 2015 13:53:00 +0000 (15:53 +0200)]
radosgw-admin: check for valid input for zonegroup modify command

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoradosgw-admin: check for legal input for zonegroup default command
Orit Wasserman [Wed, 14 Oct 2015 13:48:45 +0000 (15:48 +0200)]
radosgw-admin: check for legal input for zonegroup default command

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoradosgw-admin: check legal input for zone modify command
Orit Wasserman [Wed, 14 Oct 2015 13:47:19 +0000 (15:47 +0200)]
radosgw-admin: check legal input for zone modify command

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoradosgw-admin: use realm_id from zonegroup if not provided
Orit Wasserman [Wed, 14 Oct 2015 13:30:22 +0000 (15:30 +0200)]
radosgw-admin: use realm_id from zonegroup if not provided

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: fix RGWZone::dump
Orit Wasserman [Wed, 14 Oct 2015 13:25:45 +0000 (15:25 +0200)]
rgw: fix RGWZone::dump

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: add zone modify command to change master zone
Orit Wasserman [Wed, 14 Oct 2015 13:00:06 +0000 (15:00 +0200)]
rgw: add zone modify command to change master zone

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: add zonegroup modify command to allow setting/clearing zonegroup master status
Orit Wasserman [Wed, 14 Oct 2015 10:53:50 +0000 (12:53 +0200)]
rgw: add zonegroup modify command to allow setting/clearing zonegroup master status

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoradosgw-admin: fix zonegroup and master usage text
Orit Wasserman [Wed, 14 Oct 2015 07:39:42 +0000 (09:39 +0200)]
radosgw-admin: fix zonegroup and master usage text

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: remove is_master flag from zoneparams
Orit Wasserman [Tue, 13 Oct 2015 12:57:07 +0000 (14:57 +0200)]
rgw: remove is_master flag from zoneparams

make it easier to change master zone

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: print zone name and id in the begining of the dump
Orit Wasserman [Tue, 13 Oct 2015 12:23:20 +0000 (14:23 +0200)]
rgw: print zone name and id in the begining of the dump

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoradosgw-admin: fix zone create to check for zonegroup name
Orit Wasserman [Tue, 13 Oct 2015 12:08:14 +0000 (14:08 +0200)]
radosgw-admin: fix zone create to check for zonegroup name

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: store latest sync status when activating a period
Orit Wasserman [Tue, 13 Oct 2015 11:36:25 +0000 (13:36 +0200)]
rgw: store latest sync status when activating a period

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: add decode_json method to rgw_meta_sync_status structures
Orit Wasserman [Tue, 13 Oct 2015 10:54:54 +0000 (12:54 +0200)]
rgw: add decode_json method to rgw_meta_sync_status structures

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: move rgw_meta_sync_status, rgw_meta_sync_marker and rgw_meta_sync_info into...
Orit Wasserman [Tue, 13 Oct 2015 10:40:40 +0000 (12:40 +0200)]
rgw: move rgw_meta_sync_status, rgw_meta_sync_marker and rgw_meta_sync_info into a sperate h file

Signed-off-by: Orit Wasserman <owasserm@redhat.com>