]>
git.apps.os.sepia.ceph.com Git - ceph.git/log
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Yehuda Sadeh [Fri, 4 Dec 2015 01:02:16 +0000 (17:02 -0800)]
rgw: report error
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>