]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
9 years agorgw: stop meta sync handler when going down
Yehuda Sadeh [Tue, 12 Jan 2016 01:09:29 +0000 (17:09 -0800)]
rgw: stop meta sync handler when going down

it needed to check internally whether it was going down

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: more leak fixes
Yehuda Sadeh [Sat, 9 Jan 2016 00:02:37 +0000 (16:02 -0800)]
rgw: more leak fixes

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: minor cleanup
Yehuda Sadeh [Fri, 8 Jan 2016 21:58:56 +0000 (13:58 -0800)]
rgw: minor cleanup

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: reorder RGWRados shutdown
Yehuda Sadeh [Fri, 8 Jan 2016 21:58:20 +0000 (13:58 -0800)]
rgw: reorder RGWRados shutdown

dependency order fixes

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: clear stack ops when unwinding last op
Yehuda Sadeh [Fri, 8 Jan 2016 19:57:05 +0000 (11:57 -0800)]
rgw: clear stack ops when unwinding last op

So that we don't drop the last one's reference twice

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: more leak fixes
Yehuda Sadeh [Fri, 8 Jan 2016 00:17:12 +0000 (16:17 -0800)]
rgw: more leak fixes

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: fix a few leaks
Yehuda Sadeh [Thu, 7 Jan 2016 23:08:13 +0000 (15:08 -0800)]
rgw: fix a few leaks

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: forward meta changes to master
Yehuda Sadeh [Thu, 7 Jan 2016 22:16:27 +0000 (14:16 -0800)]
rgw: forward meta changes to master

(initial work)

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: update datalog also when unlinking object instance
Yehuda Sadeh [Thu, 7 Jan 2016 00:25:49 +0000 (16:25 -0800)]
rgw: update datalog also when unlinking object instance

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorocksdb: set to master
Orit Wasserman [Mon, 11 Jan 2016 15:14:00 +0000 (16:14 +0100)]
rocksdb: set to master

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: 'period push' handler uses RGWPeriodHistory
Casey Bodley [Thu, 17 Dec 2015 21:03:43 +0000 (16:03 -0500)]
rgw: 'period push' handler uses RGWPeriodHistory

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: add period history and puller to RGWRados
Casey Bodley [Thu, 17 Dec 2015 21:02:53 +0000 (16:02 -0500)]
rgw: add period history and puller to RGWRados

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: add RGWPeriodPuller for RGWPeriodHistory
Casey Bodley [Thu, 17 Dec 2015 15:29:00 +0000 (10:29 -0500)]
rgw: add RGWPeriodPuller for RGWPeriodHistory

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: add exclusive param to RGWPeriod::set_latest_epoch
Casey Bodley [Thu, 7 Jan 2016 06:33:16 +0000 (01:33 -0500)]
rgw: add exclusive param to RGWPeriod::set_latest_epoch

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: split RGWPeriod::reflect out of set_latest_epoch
Casey Bodley [Thu, 7 Jan 2016 21:32:28 +0000 (16:32 -0500)]
rgw: split RGWPeriod::reflect out of set_latest_epoch

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: RGWPeriodHistory to track period history
Casey Bodley [Fri, 11 Dec 2015 21:24:34 +0000 (16:24 -0500)]
rgw: RGWPeriodHistory to track period history

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: fix documentation of RGWRealmWatcher
Casey Bodley [Fri, 11 Dec 2015 21:53:16 +0000 (16:53 -0500)]
rgw: fix documentation of RGWRealmWatcher

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: use realm epoch to choose most recent period to push
Casey Bodley [Tue, 8 Dec 2015 16:10:14 +0000 (11:10 -0500)]
rgw: use realm epoch to choose most recent period to push

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: add realm epoch to RGWRealm and RGWPeriod
Casey Bodley [Mon, 7 Dec 2015 15:00:27 +0000 (10:00 -0500)]
rgw: add realm epoch to RGWRealm and RGWPeriod

RGWRealm::epoch is incremented on each new period, and
RGWPeriod::realm_epoch tracks the realm epoch when it was created

this makes it easy to determine whether a given period comes before or
after another period, which is needed to build a view of the period
history.  it also makes it easy to detect forks in the period history,
where two different periods share the same realm_epoch

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: RGWRealm::set_current_period takes RGWPeriod
Casey Bodley [Fri, 4 Dec 2015 22:07:22 +0000 (17:07 -0500)]
rgw: RGWRealm::set_current_period takes RGWPeriod

set_current_period() doesn't need to set the predecessor;
RGWPeriod::commit() takes care of that

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: start pushing current period on startup
Casey Bodley [Tue, 8 Dec 2015 16:10:49 +0000 (11:10 -0500)]
rgw: start pushing current period on startup

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: period commit updates sync status before writing the object
Casey Bodley [Tue, 8 Dec 2015 18:41:19 +0000 (13:41 -0500)]
rgw: period commit updates sync status before writing the object

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: 'realm pull' uses realm's current_period for do_period_pull
Casey Bodley [Mon, 7 Dec 2015 16:30:50 +0000 (11:30 -0500)]
rgw: 'realm pull' uses realm's current_period for do_period_pull

instead of using period_id/period_epoch, which are radosgw-admin
arguments that are unused by 'realm pull', use the period id from
realm.get_current_period() and epoch=0 to get its latest epoch

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: use refrence in read_clear_modified
Orit Wasserman [Fri, 8 Jan 2016 12:51:50 +0000 (13:51 +0100)]
rgw: use refrence in read_clear_modified

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoradosgw-admin: zonegroup set and zone set should set the realm id
Orit Wasserman [Fri, 8 Jan 2016 11:03:23 +0000 (12:03 +0100)]
radosgw-admin: zonegroup set and zone set should set the realm id

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: fix RGWZoneGroup ctor and check period update return code
Orit Wasserman [Fri, 8 Jan 2016 09:13:09 +0000 (10:13 +0100)]
rgw: fix RGWZoneGroup ctor and check period update return code

Add more debug messages

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: init_zg_from_period() fixes
Yehuda Sadeh [Wed, 6 Jan 2016 23:58:49 +0000 (15:58 -0800)]
rgw: init_zg_from_period() fixes

Reported-by: fangchen sun <sunspot0105@gmail.com>
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: data sync, handle delete marker removal
Yehuda Sadeh [Wed, 6 Jan 2016 23:43:32 +0000 (15:43 -0800)]
rgw: data sync, handle delete marker removal

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: some debug info
Yehuda Sadeh [Wed, 6 Jan 2016 23:42:52 +0000 (15:42 -0800)]
rgw: some debug info

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: guard versioned object removal from circular sync
Yehuda Sadeh [Wed, 6 Jan 2016 01:01:51 +0000 (17:01 -0800)]
rgw: guard versioned object removal from circular sync

check if marker instance already exists, only apply (and update bi log)
if does not exist. Propagate the versioning flag so that we apply the
appropriate operation on the object.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: handle delete marker when doing incremental data sync
Yehuda Sadeh [Tue, 5 Jan 2016 21:51:34 +0000 (13:51 -0800)]
rgw: handle delete marker when doing incremental data sync

Still need to handle the full sync, and to make sure we apply it
only if-newer (as with the other data sync operations) to avoid
circular sync.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agocls/rgw: log owner, display name when creating delete marker
Yehuda Sadeh [Tue, 5 Jan 2016 21:49:48 +0000 (13:49 -0800)]
cls/rgw: log owner, display name when creating delete marker

In the case of delete marker, we need to log the owner and the owner
display name so that we can create it correctly when syncing to a
different zone. We don't need it in other cases so we don't store it.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agomrgw.sh: modify log file name
Yehuda Sadeh [Tue, 5 Jan 2016 21:49:10 +0000 (13:49 -0800)]
mrgw.sh: modify log file name

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: update datalog when creating delete marker
Yehuda Sadeh [Tue, 5 Jan 2016 02:19:32 +0000 (18:19 -0800)]
rgw: update datalog when creating delete marker

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: set_date_header should use header_name
Orit Wasserman [Tue, 29 Dec 2015 15:16:48 +0000 (16:16 +0100)]
rgw: set_date_header should use header_name

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoradosgw-admin: add mdlog and datalog status to help.t
Orit Wasserman [Mon, 28 Dec 2015 17:13:46 +0000 (18:13 +0100)]
radosgw-admin: add mdlog and datalog status to help.t

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: fetch remote obj depends on zone id and pg ver
Yehuda Sadeh [Thu, 24 Dec 2015 00:47:20 +0000 (16:47 -0800)]
rgw: fetch remote obj depends on zone id and pg ver

This provides a consistent objects view on zones when changes happen on
the same objects at the same time. The zone id and pg ver are used for break
even decisions when mtime is equal.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: keep source zone attr on head object
Yehuda Sadeh [Wed, 23 Dec 2015 23:28:58 +0000 (15:28 -0800)]
rgw: keep source zone attr on head object

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: create a short (32bit) zone id, keep it on the period map
Yehuda Sadeh [Wed, 23 Dec 2015 22:21:31 +0000 (14:21 -0800)]
rgw: create a short (32bit) zone id, keep it on the period map

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: keep pg ver on obj state, and send it in HEAD request
Yehuda Sadeh [Wed, 23 Dec 2015 19:43:22 +0000 (11:43 -0800)]
rgw: keep pg ver on obj state, and send it in HEAD request

send it in HEAD request if it was done by the system user

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: store obj pg version in the object's head
Yehuda Sadeh [Wed, 23 Dec 2015 18:38:57 +0000 (10:38 -0800)]
rgw: store obj pg version in the object's head

this is done atomically when object is written, will allow us
to determine whether object is newer or not.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agotest-rgw-call.sh: add missing file
Yehuda Sadeh [Wed, 23 Dec 2015 16:35:07 +0000 (08:35 -0800)]
test-rgw-call.sh: add missing file

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: data sync, update high marker when skipping duplicate sync entries
Yehuda Sadeh [Wed, 23 Dec 2015 00:09:45 +0000 (16:09 -0800)]
rgw: data sync, update high marker when skipping duplicate sync entries

Need to update the high marker when skipping an entry, so that when the processing
entry finishes we set the markers correctly.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw/test_multi.py: add log level for saner output
Yehuda Sadeh [Tue, 22 Dec 2015 21:32:56 +0000 (13:32 -0800)]
rgw/test_multi.py: add log level for saner output

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw/test_multi.py: meta checkpoint uses zones, not clusters
Yehuda Sadeh [Tue, 22 Dec 2015 21:09:47 +0000 (13:09 -0800)]
rgw/test_multi.py: meta checkpoint uses zones, not clusters

The unit we need to care about is the zone, not the cluster

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw/test_multy.py: improve test_object_sync
Yehuda Sadeh [Tue, 22 Dec 2015 20:56:11 +0000 (12:56 -0800)]
rgw/test_multy.py: improve test_object_sync

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: clear 'null' object instance when fetching remote obj
Yehuda Sadeh [Tue, 22 Dec 2015 00:17:56 +0000 (16:17 -0800)]
rgw: clear 'null' object instance when fetching remote obj

otherwise the objclass code will handle it as a versioned object

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agotest_multi: buckets and objects comparison
Yehuda Sadeh [Mon, 21 Dec 2015 23:43:31 +0000 (15:43 -0800)]
test_multi: buckets and objects comparison

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agotest_multi: test object sync
Yehuda Sadeh [Mon, 21 Dec 2015 21:05:39 +0000 (13:05 -0800)]
test_multi: test object sync

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw-admin: add datalog status command
Yehuda Sadeh [Sat, 19 Dec 2015 00:15:08 +0000 (16:15 -0800)]
rgw-admin: add datalog status command

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: meta sync can remove entries
Yehuda Sadeh [Fri, 18 Dec 2015 23:56:09 +0000 (15:56 -0800)]
rgw: meta sync can remove entries

and also skip non complete entries

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: clone mdlog updates marker in any case
Yehuda Sadeh [Fri, 18 Dec 2015 23:55:50 +0000 (15:55 -0800)]
rgw: clone mdlog updates marker in any case

Need to set the new_marker even if no new entries fetched.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agotest_multi: add more bucket related tests
Yehuda Sadeh [Fri, 18 Dec 2015 22:07:58 +0000 (14:07 -0800)]
test_multi: add more bucket related tests

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: meta sync, handle ENOENT, ECANCELED
Yehuda Sadeh [Fri, 18 Dec 2015 01:19:06 +0000 (17:19 -0800)]
rgw: meta sync, handle ENOENT, ECANCELED

retry when canceled, continue when entry does not exist.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: test_multi: start radosgw with debug logs, asok
Yehuda Sadeh [Thu, 17 Dec 2015 22:53:03 +0000 (14:53 -0800)]
rgw: test_multi: start radosgw with debug logs, asok

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agotests_multi.py: test bucket creation, fix meta checkpoint
Yehuda Sadeh [Thu, 17 Dec 2015 22:32:20 +0000 (14:32 -0800)]
tests_multi.py: test bucket creation, fix meta checkpoint

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agotest_multi.py: can run through python nose
Yehuda Sadeh [Thu, 17 Dec 2015 20:41:20 +0000 (12:41 -0800)]
test_multi.py: can run through python nose

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agotest_multi.py: generate boto connection per zone
Yehuda Sadeh [Thu, 17 Dec 2015 01:21:49 +0000 (17:21 -0800)]
test_multi.py: generate boto connection per zone

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agotest_multi.py: create a test user
Yehuda Sadeh [Thu, 17 Dec 2015 00:56:57 +0000 (16:56 -0800)]
test_multi.py: create a test user

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agotest_python.py: call radosgw-admin with cache disabled where applicable
Yehuda Sadeh [Wed, 16 Dec 2015 23:01:21 +0000 (15:01 -0800)]
test_python.py: call radosgw-admin with cache disabled where applicable

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agotest_multi.py: move meta checkpoint inside, add configurables
Yehuda Sadeh [Wed, 16 Dec 2015 20:38:14 +0000 (12:38 -0800)]
test_multi.py: move meta checkpoint inside, add configurables

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agotest_multi.py: generate random key
Yehuda Sadeh [Wed, 16 Dec 2015 00:55:08 +0000 (16:55 -0800)]
test_multi.py: generate random key

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agotest_multi.py: wait for meta sync
Yehuda Sadeh [Wed, 16 Dec 2015 00:39:47 +0000 (16:39 -0800)]
test_multi.py: wait for meta sync

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agotest_multi.py: finer control for bringing up system
Yehuda Sadeh [Wed, 16 Dec 2015 00:00:12 +0000 (16:00 -0800)]
test_multi.py: finer control for bringing up system

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agotest/rgw: more test work
Yehuda Sadeh [Fri, 11 Dec 2015 00:22:21 +0000 (16:22 -0800)]
test/rgw: more test work

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoradosgw-admin: fix help.t
Orit Wasserman [Wed, 16 Dec 2015 08:50:02 +0000 (09:50 +0100)]
radosgw-admin: fix help.t

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: remove error message from read_default
Orit Wasserman [Fri, 11 Dec 2015 09:55:51 +0000 (10:55 +0100)]
rgw: remove error message from read_default

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoradosgw-admin: zone list should print default zone
Orit Wasserman [Wed, 9 Dec 2015 10:36:39 +0000 (11:36 +0100)]
radosgw-admin: zone list should print default zone

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: default zone per realm
Orit Wasserman [Wed, 9 Dec 2015 10:19:58 +0000 (11:19 +0100)]
rgw: default zone per realm

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: default zonegroup per realm
Orit Wasserman [Wed, 9 Dec 2015 10:02:13 +0000 (11:02 +0100)]
rgw: default zonegroup per realm

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: create_default cannot set as default
Orit Wasserman [Tue, 8 Dec 2015 16:13:15 +0000 (17:13 +0100)]
rgw: create_default cannot set as default

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: cleanup remove realm unused master_zonegroup and zonegroups
Orit Wasserman [Tue, 8 Dec 2015 10:26:00 +0000 (11:26 +0100)]
rgw: cleanup remove realm unused master_zonegroup and zonegroups

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoradosgw-admin: use realm current period master_zonegroup as remote for period pull
Orit Wasserman [Tue, 8 Dec 2015 10:09:56 +0000 (11:09 +0100)]
radosgw-admin: use realm current period master_zonegroup as remote for period pull

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agotest/rgw: wait for metadata sync
Yehuda Sadeh [Thu, 10 Dec 2015 00:52:36 +0000 (16:52 -0800)]
test/rgw: wait for metadata sync

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw-admin: add mdlog status command
Yehuda Sadeh [Thu, 10 Dec 2015 00:03:06 +0000 (16:03 -0800)]
rgw-admin: add mdlog status command

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agotest/rgw: basic meta sync status test util
Yehuda Sadeh [Wed, 9 Dec 2015 23:29:30 +0000 (15:29 -0800)]
test/rgw: basic meta sync status test util

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agotest/rgw: initial work on multi site test framework
Yehuda Sadeh [Wed, 9 Dec 2015 21:55:21 +0000 (13:55 -0800)]
test/rgw: initial work on multi site test framework

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: option to set realm, zonegroup, zone as default
Yehuda Sadeh [Sat, 5 Dec 2015 19:17:28 +0000 (11:17 -0800)]
rgw: option to set realm, zonegroup, zone as default

when modifying / creating the entity. This is in addition to the explicit
command.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: fix period pull of first epoch
Yehuda Sadeh [Sat, 5 Dec 2015 05:57:24 +0000 (21:57 -0800)]
rgw: fix period pull of first epoch

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: http client lock related fix
Yehuda Sadeh [Sat, 5 Dec 2015 00:26:16 +0000 (16:26 -0800)]
rgw: http client lock related fix

need to call _finish_request() under the lock.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: more log info on realm reloading
Yehuda Sadeh [Sat, 5 Dec 2015 00:16:14 +0000 (16:16 -0800)]
rgw: more log info on realm reloading

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: bucket sync, don't drain_all() before shutting down lease cr
Yehuda Sadeh [Fri, 4 Dec 2015 22:36:14 +0000 (14:36 -0800)]
rgw: bucket sync, don't drain_all() before shutting down lease cr

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: switch to local zonegroup config if zone is not found
Yehuda Sadeh [Fri, 4 Dec 2015 21:52:24 +0000 (13:52 -0800)]
rgw: switch to local zonegroup config if zone is not found

We might be just creating a zone that is not in the period config yet,
if we can't find it in period config switch to using the local zonegroup
config.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: make realm pull a raw storage operation
Yehuda Sadeh [Fri, 4 Dec 2015 21:26:12 +0000 (13:26 -0800)]
rgw: make realm pull a raw storage operation

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: adding more reflection where needed
Yehuda Sadeh [Fri, 4 Dec 2015 21:14:00 +0000 (13:14 -0800)]
rgw: adding more reflection where needed

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: rearrange zonegroup and zone initialization
Yehuda Sadeh [Fri, 4 Dec 2015 19:50:57 +0000 (11:50 -0800)]
rgw: rearrange zonegroup and zone initialization

move into helpers, don't keep distinct structures for zonegroup local and period
zonegroup, we end up using the one we configured anyway.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: report error
Yehuda Sadeh [Fri, 4 Dec 2015 01:02:16 +0000 (17:02 -0800)]
rgw: report error

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: reflect period when setting as current period
Yehuda Sadeh [Fri, 4 Dec 2015 05:19:25 +0000 (21:19 -0800)]
rgw: reflect period when setting as current period

reflect period into local objects when setting it as current.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: realm pull also pulls period
Yehuda Sadeh [Fri, 4 Dec 2015 03:44:24 +0000 (19:44 -0800)]
rgw: realm pull also pulls period

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: data shard sync locking
Yehuda Sadeh [Fri, 4 Dec 2015 00:46:05 +0000 (16:46 -0800)]
rgw: data shard sync locking

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: take a lease before syncing bucket shard
Yehuda Sadeh [Thu, 3 Dec 2015 22:42:17 +0000 (14:42 -0800)]
rgw: take a lease before syncing bucket shard

This is needed for having multiple rgws running on the same zone

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: merge related fixes
Yehuda Sadeh [Thu, 3 Dec 2015 20:07:44 +0000 (12:07 -0800)]
rgw: merge related fixes

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: update bucket index marker before skipping entries
Yehuda Sadeh [Thu, 3 Dec 2015 19:02:44 +0000 (11:02 -0800)]
rgw: update bucket index marker before skipping entries

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: fix data sync notification
Yehuda Sadeh [Thu, 3 Dec 2015 03:01:29 +0000 (19:01 -0800)]
rgw: fix data sync notification

should send zone id, not zone name

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: remove incorrect conn assignment
Yehuda Sadeh [Wed, 2 Dec 2015 23:14:45 +0000 (15:14 -0800)]
rgw: remove incorrect conn assignment

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: incremental sync, skip non-complete entries early
Yehuda Sadeh [Wed, 2 Dec 2015 22:13:33 +0000 (14:13 -0800)]
rgw: incremental sync, skip non-complete entries early

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: forward bucket creation removal if it's not meta master
Yehuda Sadeh [Tue, 1 Dec 2015 21:35:15 +0000 (13:35 -0800)]
rgw: forward bucket creation removal if it's not meta master

We can be in the master zonegroup, but not the meta master -- in which case
we still need to forward the request to the master.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: data sync, don't yield when spawning
Yehuda Sadeh [Tue, 1 Dec 2015 21:27:20 +0000 (13:27 -0800)]
rgw: data sync, don't yield when spawning

this enables us to filter out duplicate keys without worrying about races, since
spawned crs will only be executed once we yield.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: keep track of how busy a cr stack is
Yehuda Sadeh [Wed, 25 Nov 2015 05:09:04 +0000 (21:09 -0800)]
rgw: keep track of how busy a cr stack is

this can give indication about crs that aren't structured correctly.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: avoid unneeded yield
Yehuda Sadeh [Wed, 25 Nov 2015 05:08:13 +0000 (21:08 -0800)]
rgw: avoid unneeded yield

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