]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
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>
9 years agorgw: fix setting of rgw_zonegroup from rgw_region
Orit Wasserman [Thu, 3 Dec 2015 18:12:38 +0000 (19:12 +0100)]
rgw: fix setting of rgw_zonegroup from rgw_region

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoradosgw-admin: clean backward support for region in the cli
Orit Wasserman [Wed, 2 Dec 2015 09:52:19 +0000 (10:52 +0100)]
radosgw-admin: clean backward support for region in the cli

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: use zonegroup id for location constrain
Orit Wasserman [Wed, 2 Dec 2015 09:47:47 +0000 (10:47 +0100)]
rgw: use zonegroup id for location constrain

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoradosgw-admin: zone set add a check for zone name in json
Orit Wasserman [Tue, 1 Dec 2015 08:04:06 +0000 (09:04 +0100)]
radosgw-admin: zone set add a check for zone name in json

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: create a unique zone pool names
Orit Wasserman [Mon, 16 Nov 2015 11:32:19 +0000 (12:32 +0100)]
rgw: create a unique zone pool names

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: don't spawn multiple concurrent object sync for same object
Yehuda Sadeh [Wed, 25 Nov 2015 04:20:35 +0000 (20:20 -0800)]
rgw: don't spawn multiple concurrent object sync for same object

Either mark the current running operation to retry, or wait for it to finish
(if it's not doing the same operation).

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: fix call to index_key_to_marker()
Yehuda Sadeh [Tue, 24 Nov 2015 23:10:22 +0000 (15:10 -0800)]
rgw: fix call to index_key_to_marker()

was passing variables in the wrong order

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: cancel index operation if delete got ENOENT
Yehuda Sadeh [Tue, 24 Nov 2015 20:05:43 +0000 (12:05 -0800)]
rgw: cancel index operation if delete got ENOENT

Should mark the operation as canceled, so that sync followers don't try to
apply it.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: rework set_description(), set_status()
Yehuda Sadeh [Tue, 24 Nov 2015 18:48:40 +0000 (10:48 -0800)]
rgw: rework set_description(), set_status()

make it easier to construct description, status info

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: data sync, only use complete log entries
Yehuda Sadeh [Tue, 24 Nov 2015 18:48:16 +0000 (10:48 -0800)]
rgw: data sync, only use complete log entries

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: more coroutines annotation
Yehuda Sadeh [Tue, 24 Nov 2015 03:48:38 +0000 (19:48 -0800)]
rgw: more coroutines annotation

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: start annotating coroutines status and description
Yehuda Sadeh [Tue, 24 Nov 2015 03:34:18 +0000 (19:34 -0800)]
rgw: start annotating coroutines status and description

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: remove sync reporting
Yehuda Sadeh [Mon, 23 Nov 2015 22:38:18 +0000 (14:38 -0800)]
rgw: remove sync reporting

will use the cr reporting framework instead

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: keep status and history in coroutine
Yehuda Sadeh [Mon, 23 Nov 2015 22:28:49 +0000 (14:28 -0800)]
rgw: keep status and history in coroutine

will replace the report container stuff

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: remove run context when finished running
Yehuda Sadeh [Mon, 23 Nov 2015 20:17:53 +0000 (12:17 -0800)]
rgw: remove run context when finished running

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: track all stacks, not just scheduled
Yehuda Sadeh [Mon, 23 Nov 2015 20:09:49 +0000 (12:09 -0800)]
rgw: track all stacks, not just scheduled

And don't expand spawned stacks out of existing cr. This flattens the
admin socket output.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: more on fix for g_ceph_context shutdown
Casey Bodley [Mon, 23 Nov 2015 15:39:39 +0000 (10:39 -0500)]
rgw: more on fix for g_ceph_context shutdown

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: handle the case of non exisiting zonegroup
Orit Wasserman [Mon, 23 Nov 2015 11:01:20 +0000 (12:01 +0100)]
rgw: handle the case of non exisiting zonegroup

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoradosgw-admin: allow region use for backward compatability
Orit Wasserman [Mon, 23 Nov 2015 08:23:48 +0000 (09:23 +0100)]
radosgw-admin: allow region use for backward compatability

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: admin socket related fixes
Yehuda Sadeh [Sat, 21 Nov 2015 04:03:05 +0000 (20:03 -0800)]
rgw: admin socket related fixes

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: hook cr managers to admin socket
Yehuda Sadeh [Fri, 20 Nov 2015 23:06:43 +0000 (15:06 -0800)]
rgw: hook cr managers to admin socket

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: add locking to coroutines reporting
Yehuda Sadeh [Fri, 20 Nov 2015 19:58:18 +0000 (11:58 -0800)]
rgw: add locking to coroutines reporting

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: start moving report into coroutines
Yehuda Sadeh [Fri, 20 Nov 2015 19:26:50 +0000 (11:26 -0800)]
rgw: start moving report into coroutines

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: more metadata sync reporting
Yehuda Sadeh [Fri, 20 Nov 2015 03:38:10 +0000 (19:38 -0800)]
rgw: more metadata sync reporting

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: start hooking sync report
Yehuda Sadeh [Fri, 20 Nov 2015 02:53:27 +0000 (18:53 -0800)]
rgw: start hooking sync report

also multiple fixes around the report tool

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: framework for per-rgw sync status reporting
Yehuda Sadeh [Thu, 19 Nov 2015 19:00:55 +0000 (11:00 -0800)]
rgw: framework for per-rgw sync status reporting

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoceph_json: add deque encode/decode
Yehuda Sadeh [Thu, 19 Nov 2015 18:59:30 +0000 (10:59 -0800)]
ceph_json: add deque encode/decode

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoradosgw-admin: replace region with zonegroup in the help file
Orit Wasserman [Fri, 20 Nov 2015 15:16:43 +0000 (16:16 +0100)]
radosgw-admin: replace region with zonegroup in the help file

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: fix assert on shutdown by keeping g_ceph_context around longer
Casey Bodley [Wed, 18 Nov 2015 18:37:24 +0000 (13:37 -0500)]
rgw: fix assert on shutdown by keeping g_ceph_context around longer

RGWRealmWatcher and friends are on the stack in main(), so we can't drop
the last ref on g_ceph_context until their destructors have fired. use a
boost::intrusive_ptr to claim g_ceph_context's initial ref so that its
destructor fires last

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: remove epoch and duplicates from list_periods
Orit Wasserman [Wed, 18 Nov 2015 11:56:37 +0000 (12:56 +0100)]
rgw: remove epoch and duplicates from list_periods

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: fix compilation error in RGWPeriodPusher::handle_notify
Orit Wasserman [Wed, 18 Nov 2015 11:55:39 +0000 (12:55 +0100)]
rgw: fix compilation error in RGWPeriodPusher::handle_notify

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: fix compilation error on i386
Orit Wasserman [Tue, 17 Nov 2015 13:10:33 +0000 (14:10 +0100)]
rgw: fix compilation error on i386

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: call drain_all() before returning from some crs
Yehuda Sadeh [Tue, 17 Nov 2015 00:23:47 +0000 (16:23 -0800)]
rgw: call drain_all() before returning from some crs

spawned crs are still using marker_tracker, need to drain_all() as
we destroy it in the destructor.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: allocate a larger buffer for full sync omap oid
Yehuda Sadeh [Tue, 17 Nov 2015 00:22:17 +0000 (16:22 -0800)]
rgw: allocate a larger buffer for full sync omap oid

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: register RGWPeriodPusher with RGWRealmWatcher
Casey Bodley [Tue, 10 Nov 2015 21:06:41 +0000 (16:06 -0500)]
rgw: register RGWPeriodPusher with RGWRealmWatcher

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: RGWPeriodPusher shares periods between zones/groups
Casey Bodley [Fri, 9 Oct 2015 16:15:05 +0000 (12:15 -0400)]
rgw: RGWPeriodPusher shares periods between zones/groups

RGWPeriodPusher implements the RGWRealmWatcher interface to get
notifications for new periods.  when it discovers that it needs to push
a period to other zones, it spawns a thread to send them (and keep
retrying) until all of those zones successfully acknowledge the period

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: RGWRealmWatcher supports multiple watch types
Casey Bodley [Tue, 6 Oct 2015 21:12:14 +0000 (17:12 -0400)]
rgw: RGWRealmWatcher supports multiple watch types

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: rename RGWRealmReloader::FrontendPauser to Pauser
Casey Bodley [Fri, 6 Nov 2015 13:33:17 +0000 (08:33 -0500)]
rgw: rename RGWRealmReloader::FrontendPauser to Pauser

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: period push succeeds even if it isn't a new period
Casey Bodley [Mon, 9 Nov 2015 16:21:49 +0000 (11:21 -0500)]
rgw: period push succeeds even if it isn't a new period

when pushing periods between zones, we need a successful result to
signal that we can stop sending the period

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: refactor reconfigure out of RGWRealmWatcher
Casey Bodley [Wed, 7 Oct 2015 16:16:22 +0000 (12:16 -0400)]
rgw: refactor reconfigure out of RGWRealmWatcher

add a RGWRealmReloader class to handle reconfiguration, and use a
Watcher interface to get notifications from RGWRealmWatcher

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: keep Context for reconfig timer cancellation
Casey Bodley [Wed, 7 Oct 2015 16:08:02 +0000 (12:08 -0400)]
rgw: keep Context for reconfig timer cancellation

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: add RGWRealm::notify_new_period()
Casey Bodley [Fri, 30 Oct 2015 20:37:43 +0000 (16:37 -0400)]
rgw: add RGWRealm::notify_new_period()

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: fix typo in RGWPeriod::update
Casey Bodley [Mon, 2 Nov 2015 21:01:32 +0000 (16:01 -0500)]
rgw: fix typo in RGWPeriod::update

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: fix for decode of ZoneGroup id
Casey Bodley [Mon, 2 Nov 2015 21:00:33 +0000 (16:00 -0500)]
rgw: fix for decode of ZoneGroup id

Signed-off-by: Casey Bodley <cbodley@redhat.com>