]> git-server-git.apps.pok.os.sepia.ceph.com Git - radosgw-agent.git/log
radosgw-agent.git
10 years agoMerge pull request #28 from ceph/wip-10852
Josh Durgin [Mon, 30 Mar 2015 20:29:13 +0000 (13:29 -0700)]
Merge pull request #28 from ceph/wip-10852

better logging for users

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agouse dev_log for locking and unlocking of shards 28/head
Alfredo Deza [Mon, 30 Mar 2015 17:13:16 +0000 (13:13 -0400)]
use dev_log for locking and unlocking of shards

Signed-off-by: Alfredo Deza <adeza@redhat.com>
10 years agoonly report bucket to retry if there are some
Alfredo Deza [Mon, 30 Mar 2015 17:11:12 +0000 (13:11 -0400)]
only report bucket to retry if there are some

Signed-off-by: Alfredo Deza <adeza@redhat.com>
10 years agoworker bound operations should also go to dev_log
Alfredo Deza [Mon, 30 Mar 2015 16:37:23 +0000 (12:37 -0400)]
worker bound operations should also go to dev_log

Signed-off-by: Alfredo Deza <adeza@redhat.com>
10 years agoswap log statements to go to dev_log
Alfredo Deza [Mon, 30 Mar 2015 16:34:32 +0000 (12:34 -0400)]
swap log statements to go to dev_log

Signed-off-by: Alfredo Deza <adeza@redhat.com>
10 years agoremove double 'syncing object' lines
Alfredo Deza [Mon, 30 Mar 2015 13:58:07 +0000 (09:58 -0400)]
remove double 'syncing object' lines

Signed-off-by: Alfredo Deza <adeza@redhat.com>
10 years agouse the new dev_logger for some shard sync items
Alfredo Deza [Mon, 30 Mar 2015 12:58:07 +0000 (08:58 -0400)]
use the new dev_logger for some shard sync items

10 years agouse obj.name for logging objects that are not found in master
Alfredo Deza [Mon, 30 Mar 2015 12:51:09 +0000 (08:51 -0400)]
use obj.name for logging objects that are not found in master

10 years agoremove len() for generator object
Alfredo Deza [Fri, 27 Mar 2015 18:39:18 +0000 (14:39 -0400)]
remove len() for generator object

Signed-off-by: Alfredo Deza <adeza@redhat.com>
10 years agofull sync of a bucket with better logging
Alfredo Deza [Fri, 27 Mar 2015 16:06:39 +0000 (12:06 -0400)]
full sync of a bucket with better logging

Signed-off-by: Alfredo Deza <adeza@redhat.com>
10 years agoinform the user about data sync operations
Alfredo Deza [Thu, 26 Mar 2015 15:26:15 +0000 (11:26 -0400)]
inform the user about data sync operations

Signed-off-by: Alfredo Deza <adeza@redhat.com>
10 years agoMerge pull request #27 from ceph/wip-11246
Orit Wasserman [Fri, 27 Mar 2015 12:24:15 +0000 (13:24 +0100)]
Merge pull request #27 from ceph/wip-11246

correctly import InvalidProtocol from its right location

10 years agoMerge pull request #26 from ceph/wip-11245
Orit Wasserman [Fri, 27 Mar 2015 12:23:52 +0000 (13:23 +0100)]
Merge pull request #26 from ceph/wip-11245

configure logging before parsing arguments

10 years agocorrectly import InvalidProtocol from its right location wip-11246 27/head
Alfredo Deza [Thu, 26 Mar 2015 19:54:23 +0000 (15:54 -0400)]
correctly import InvalidProtocol from its right location

Signed-off-by: Alfredo Deza <adeza@redhat.com>
10 years agoconfigure logging before parsing arguments wip-11245 26/head
Alfredo Deza [Thu, 26 Mar 2015 19:01:57 +0000 (15:01 -0400)]
configure logging before parsing arguments

Signed-off-by: Alfredo Deza <adeza@redhat.com>
10 years agoMerge pull request #22 from ceph/wip-10453
Josh Durgin [Wed, 18 Mar 2015 03:08:08 +0000 (20:08 -0700)]
Merge pull request #22 from ceph/wip-10453

Wip 10453

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agowhen getting the worker bounds map the retries to objects 22/head
Alfredo Deza [Tue, 17 Mar 2015 17:44:51 +0000 (13:44 -0400)]
when getting the worker bounds map the retries to objects

Signed-off-by: Alfredo Deza <adeza@redhat.com>
10 years agorename the helper to to_obj
Alfredo Deza [Tue, 17 Mar 2015 17:43:09 +0000 (13:43 -0400)]
rename the helper to to_obj

Signed-off-by: Alfredo Deza <adeza@redhat.com>
10 years agotests for the new keys to attrs helper
Alfredo Deza [Tue, 17 Mar 2015 17:38:09 +0000 (13:38 -0400)]
tests for the new keys to attrs helper

Signed-off-by: Alfredo Deza <adeza@redhat.com>
10 years agocreate a helper to get keys to attributes in an object
Alfredo Deza [Tue, 17 Mar 2015 17:37:52 +0000 (13:37 -0400)]
create a helper to get keys to attributes in an object

Signed-off-by: Alfredo Deza <adeza@redhat.com>
10 years agomake it explicit that obj refers to the utility
Alfredo Deza [Tue, 17 Mar 2015 15:38:32 +0000 (11:38 -0400)]
make it explicit that obj refers to the utility

Signed-off-by: Alfredo Deza <adeza@redhat.com>
10 years agouse the new utility to slap extra metadata to retries
Alfredo Deza [Tue, 17 Mar 2015 15:03:39 +0000 (11:03 -0400)]
use the new utility to slap extra metadata to retries

Signed-off-by: Alfredo Deza <adeza@redhat.com>
10 years agoadd tests for the new utility
Alfredo Deza [Tue, 17 Mar 2015 15:03:13 +0000 (11:03 -0400)]
add tests for the new utility

Signed-off-by: Alfredo Deza <adeza@redhat.com>
10 years agocreate an obj util that can convert objects to_dict
Alfredo Deza [Tue, 17 Mar 2015 15:02:59 +0000 (11:02 -0400)]
create an obj util that can convert objects to_dict

Signed-off-by: Alfredo Deza <adeza@redhat.com>
10 years agomake the list_object_in_bucket use the config for versioned support
Alfredo Deza [Fri, 13 Mar 2015 16:14:59 +0000 (12:14 -0400)]
make the list_object_in_bucket use the config for versioned support

Signed-off-by: Alfredo Deza <adeza@redhat.com>
10 years agoinform the user what request is hapenning
Alfredo Deza [Fri, 13 Mar 2015 16:12:06 +0000 (12:12 -0400)]
inform the user what request is hapenning

Signed-off-by: Alfredo Deza <adeza@redhat.com>
10 years agoMerge pull request #25 from ceph/wip-log-location
Josh Durgin [Tue, 10 Mar 2015 19:07:22 +0000 (12:07 -0700)]
Merge pull request #25 from ceph/wip-log-location

fallback to cwd if log location is unavailable

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agoreport back to the user when falling back with the log location 25/head
Alfredo Deza [Tue, 10 Mar 2015 18:53:39 +0000 (14:53 -0400)]
report back to the user when falling back with the log location

Signed-off-by: Alfredo Deza <adeza@redhat.com>
10 years agofallback to cwd if log location is unavailable
Alfredo Deza [Tue, 10 Mar 2015 14:46:56 +0000 (10:46 -0400)]
fallback to cwd if log location is unavailable

Signed-off-by: Alfredo Deza <adeza@redhat.com>
10 years agoMerge pull request #24 from ceph/wip-stream-logger
Josh Durgin [Tue, 10 Mar 2015 15:47:10 +0000 (08:47 -0700)]
Merge pull request #24 from ceph/wip-stream-logger

set the stream logging before anything else

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agoset the stream logging before anything else 24/head
Alfredo Deza [Mon, 9 Mar 2015 17:52:42 +0000 (13:52 -0400)]
set the stream logging before anything else

Signed-off-by: Alfredo Deza <adeza@redhat.com>
10 years agoMerge pull request #23 from ceph/wip-10852
Josh Durgin [Fri, 6 Mar 2015 22:41:43 +0000 (14:41 -0800)]
Merge pull request #23 from ceph/wip-10852

initial work for better logging structure

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agouse the actual line instead of string replacement 23/head
Alfredo Deza [Fri, 6 Mar 2015 18:35:28 +0000 (13:35 -0500)]
use the actual line instead of string replacement

Signed-off-by: Alfredo Deza <adeza@redhat.com>
10 years agoremove extra setLevel call
Alfredo Deza [Fri, 6 Mar 2015 18:31:28 +0000 (13:31 -0500)]
remove extra setLevel call

Signed-off-by: Alfredo Deza <adeza@redhat.com>
10 years agojust re-raise AgentErrors when getting the region map
Alfredo Deza [Fri, 6 Mar 2015 15:33:10 +0000 (10:33 -0500)]
just re-raise AgentErrors when getting the region map

Signed-off-by: Alfredo Deza <adeza@redhat.com>
10 years agouse the new logging handlers in cli.py
Alfredo Deza [Fri, 6 Mar 2015 14:51:26 +0000 (09:51 -0500)]
use the new logging handlers in cli.py

Signed-off-by: Alfredo Deza <adeza@redhat.com>
10 years agocreate a RegionMapError exception
Alfredo Deza [Fri, 6 Mar 2015 14:50:49 +0000 (09:50 -0500)]
create a RegionMapError exception

Signed-off-by: Alfredo Deza <adeza@redhat.com>
10 years agoadd a decorator utility module
Alfredo Deza [Thu, 5 Mar 2015 19:59:24 +0000 (14:59 -0500)]
add a decorator utility module

Signed-off-by: Alfredo Deza <adeza@redhat.com>
10 years agomake the client use the new NetworkError exception
Alfredo Deza [Thu, 5 Mar 2015 19:55:41 +0000 (14:55 -0500)]
make the client use the new NetworkError exception

Signed-off-by: Alfredo Deza <adeza@redhat.com>
10 years agocreate a new 'AgentError' base exception
Alfredo Deza [Thu, 5 Mar 2015 19:55:14 +0000 (14:55 -0500)]
create a new 'AgentError' base exception

Signed-off-by: Alfredo Deza <adeza@redhat.com>
10 years agomove the log module into util
Alfredo Deza [Wed, 4 Mar 2015 15:49:02 +0000 (10:49 -0500)]
move the log module into util

Signed-off-by: Alfredo Deza <adeza@redhat.com>
10 years agocreate a utility module
Alfredo Deza [Wed, 4 Mar 2015 15:48:00 +0000 (10:48 -0500)]
create a utility module

Signed-off-by: Alfredo Deza <adeza@redhat.com>
11 years ago1.2.1 v1.2.1
Jenkins [Mon, 9 Feb 2015 20:52:46 +0000 (12:52 -0800)]
1.2.1

11 years agoupdate the changelog
Alfredo Deza [Mon, 9 Feb 2015 20:32:24 +0000 (15:32 -0500)]
update the changelog

Signed-off-by: Alfredo Deza <adeza@redhat.com>
11 years agobumping to 1.2.1
Alfredo Deza [Mon, 9 Feb 2015 20:31:20 +0000 (15:31 -0500)]
bumping to 1.2.1

Signed-off-by: Alfredo Deza <adeza@redhat.com>
11 years agoMerge pull request #20 from ceph/wip-9686-sync-marker
Alfredo Deza [Wed, 28 Jan 2015 22:25:37 +0000 (17:25 -0500)]
Merge pull request #20 from ceph/wip-9686-sync-marker

new sync marker and `get_worker_bound` API

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
11 years agoworker will now use the new get_worker_bound values wip-9686-sync-marker 20/head
Alfredo Deza [Tue, 20 Jan 2015 19:17:16 +0000 (14:17 -0500)]
worker will now use the new get_worker_bound values

Signed-off-by: Alfredo Deza <adeza@redhat.com>
11 years agobetter comment on default values for worker bound
Alfredo Deza [Tue, 20 Jan 2015 19:09:38 +0000 (14:09 -0500)]
better comment on default values for worker bound

Signed-off-by: Alfredo Deza <adeza@redhat.com>
11 years agoincrementalSync will use the new worker_bound behavior
Alfredo Deza [Tue, 20 Jan 2015 19:09:21 +0000 (14:09 -0500)]
incrementalSync will use the new worker_bound behavior

Signed-off-by: Alfredo Deza <adeza@redhat.com>
11 years agouse the right key for timestamp: oldest_time
Alfredo Deza [Tue, 20 Jan 2015 18:54:05 +0000 (13:54 -0500)]
use the right key for timestamp: oldest_time

Signed-off-by: Alfredo Deza <adeza@redhat.com>
11 years agotests for the new get_worker_bounds behavior
Alfredo Deza [Tue, 20 Jan 2015 18:53:39 +0000 (13:53 -0500)]
tests for the new get_worker_bounds behavior

Signed-off-by: Alfredo Deza <adeza@redhat.com>
11 years agomove the constants from worker.py to constants.py
Alfredo Deza [Tue, 20 Jan 2015 14:20:11 +0000 (09:20 -0500)]
move the constants from worker.py to constants.py

Signed-off-by: Alfredo Deza <adeza@redhat.com>
11 years agomove constant values to a new module
Alfredo Deza [Tue, 20 Jan 2015 14:19:51 +0000 (09:19 -0500)]
move constant values to a new module

Signed-off-by: Alfredo Deza <adeza@redhat.com>
11 years agomake get_worker_bound return a dict to support new keys automatically
Alfredo Deza [Tue, 20 Jan 2015 14:19:33 +0000 (09:19 -0500)]
make get_worker_bound return a dict to support new keys automatically

Signed-off-by: Alfredo Deza <adeza@redhat.com>
11 years agofix attribute errors for exceptions in worker.py
Alfredo Deza [Mon, 26 Jan 2015 22:26:02 +0000 (17:26 -0500)]
fix attribute errors for exceptions in worker.py

Signed-off-by: Alfredo Deza <adeza@redhat.com>
11 years agoMerge pull request #21 from ktdreyer/rpm-dist
Alfredo Deza [Thu, 22 Jan 2015 13:04:05 +0000 (08:04 -0500)]
Merge pull request #21 from ktdreyer/rpm-dist

packaging: use dist tag in RPM Release field

11 years agopackaging: use dist tag in RPM Release field 21/head
Ken Dreyer [Wed, 21 Jan 2015 21:47:55 +0000 (14:47 -0700)]
packaging: use dist tag in RPM Release field

This change adds ".el6", ".el7", etc to the end of the RPM filename.

More information about the dist tag can be found at
http://fedoraproject.org/wiki/Packaging:DistTag

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
11 years agoMerge pull request #19 from ceph/wip-10584
Josh Durgin [Tue, 20 Jan 2015 16:54:10 +0000 (08:54 -0800)]
Merge pull request #19 from ceph/wip-10584

fix exception attribute errors in sync.py

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
11 years agofix exception attribute errors in sync.py 19/head
Alfredo Deza [Tue, 20 Jan 2015 16:30:01 +0000 (11:30 -0500)]
fix exception attribute errors in sync.py

Signed-off-by: Alfredo Deza <adeza@redhat.com>
11 years agoMerge pull request #18 from ceph/wip-10569
Josh Durgin [Mon, 19 Jan 2015 17:39:05 +0000 (09:39 -0800)]
Merge pull request #18 from ceph/wip-10569

exceptions refactoring

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
11 years agofix the worker exception tests 18/head
Alfredo Deza [Mon, 19 Jan 2015 16:58:34 +0000 (11:58 -0500)]
fix the worker exception tests

Signed-off-by: Alfredo Deza <adeza@redhat.com>
11 years agoadd the worker exceptions into their own module
Alfredo Deza [Mon, 19 Jan 2015 16:58:15 +0000 (11:58 -0500)]
add the worker exceptions into their own module

Signed-off-by: Alfredo Deza <adeza@redhat.com>
11 years agoget worker exceptions into the exceptions module
Alfredo Deza [Mon, 19 Jan 2015 16:57:58 +0000 (11:57 -0500)]
get worker exceptions into the exceptions module

Signed-off-by: Alfredo Deza <adeza@redhat.com>
11 years agoupdate tests for the new module changes
Alfredo Deza [Mon, 19 Jan 2015 16:06:22 +0000 (11:06 -0500)]
update tests for the new module changes

Signed-off-by: Alfredo Deza <adeza@redhat.com>
11 years agocreate an exceptions module
Alfredo Deza [Mon, 19 Jan 2015 16:05:54 +0000 (11:05 -0500)]
create an exceptions module

Signed-off-by: Alfredo Deza <adeza@redhat.com>
11 years agoremove exceptions and errors from client onto exceptions.py
Alfredo Deza [Mon, 19 Jan 2015 16:05:00 +0000 (11:05 -0500)]
remove exceptions and errors from client onto exceptions.py

Signed-off-by: Alfredo Deza <adeza@redhat.com>
11 years agoadd tests for listing objects in buckets with real http body from responses
Alfredo Deza [Thu, 15 Jan 2015 19:28:02 +0000 (14:28 -0500)]
add tests for listing objects in buckets with real http body from responses

Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
11 years agoMerge pull request #17 from ktdreyer/spec-cleanup
Josh Durgin [Mon, 12 Jan 2015 23:45:32 +0000 (15:45 -0800)]
Merge pull request #17 from ktdreyer/spec-cleanup

packaging: RPM .spec cleanup

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
11 years agopackaging: use full PyPI URL for RPM Source tarball 17/head
Ken Dreyer [Mon, 12 Jan 2015 21:22:44 +0000 (14:22 -0700)]
packaging: use full PyPI URL for RPM Source tarball

Alfredo has published the radosgw-agent package to PyPI today. Add the
full URL.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
11 years agopackaging: add missing build deps to RPM
Ken Dreyer [Mon, 12 Jan 2015 20:37:56 +0000 (13:37 -0700)]
packaging: add missing build deps to RPM

In order to build the radosgw-agent package in mock, the python-devel
and python-setuptools packages must be present in the buildroot.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
11 years agopackaging: remove RPM defattr setting
Ken Dreyer [Mon, 12 Jan 2015 20:36:39 +0000 (13:36 -0700)]
packaging: remove RPM defattr setting

The %defattr setting in the %files list is only necessary for very old
versions of RPM.  For RHEL 6 and later, it's fine to leave it out.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
11 years agopackaging: remove RPM %clean section
Ken Dreyer [Mon, 12 Jan 2015 20:35:38 +0000 (13:35 -0700)]
packaging: remove RPM %clean section

The %clean section is only necessary for very old versions of RPM. For
RHEL 6 and later, it's fine to leave it out.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
11 years agopackaging: simplify RPM %setup section
Ken Dreyer [Mon, 12 Jan 2015 20:34:18 +0000 (13:34 -0700)]
packaging: simplify RPM %setup section

Remove duplicated -n settings to %setup. There were two that both did
the same thing, and neither one is needed, since %setup unpacks
%{name}-%{version} by default.

Make %setup run quietly (with -q). This fixes an rpmlint warning.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
11 years agopackaging: add RPM %description
Ken Dreyer [Mon, 12 Jan 2015 20:31:49 +0000 (13:31 -0700)]
packaging: add RPM %description

Add a simple description to the RPM packaging. This phrase was
more-or-less taken from the docs in ceph.git.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
11 years agopackaging: use upper-case URL tag in RPM
Ken Dreyer [Mon, 12 Jan 2015 20:25:04 +0000 (13:25 -0700)]
packaging: use upper-case URL tag in RPM

Either "Url:" or "URL:" works, but the Fedora project has standardized
on "URL:"

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
11 years agopackaging: rm unnecessary RPM tags
Ken Dreyer [Mon, 12 Jan 2015 19:26:34 +0000 (12:26 -0700)]
packaging: rm unnecessary RPM tags

The BuildRoot tag is only needed on RHEL 5. RHEL 6 and newer are fine
without this setting.

The %{_prefix} macro is already /usr by default.

The Vendor tag is something that should be left undefined in the
packaging .spec itself. Ordinarily this is added during the build by the
build system.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
11 years agopackaging: rm unnecessary RPM macro definitions
Ken Dreyer [Mon, 12 Jan 2015 19:23:56 +0000 (12:23 -0700)]
packaging: rm unnecessary RPM macro definitions

Remove the extraneous macro definitions, %{name}, %{version},
%{unmangled_version}, %{release}. RPM automatically sets these when we
use the Name, Version, and Release tags.

Discussed %{unmangled_version} in #ceph-devel today; not sure where that
one came from.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
11 years agocreate a changelog v1.2
Alfredo Deza [Mon, 12 Jan 2015 20:16:07 +0000 (15:16 -0500)]
create a changelog

Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
11 years agoupdate author email
Alfredo Deza [Mon, 12 Jan 2015 19:56:46 +0000 (14:56 -0500)]
update author email

Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
11 years agoMerge pull request #16 from ktdreyer/fixes-from-v1.2
Josh Durgin [Mon, 12 Jan 2015 19:22:08 +0000 (11:22 -0800)]
Merge pull request #16 from ktdreyer/fixes-from-v1.2

#10518: add fixes from v1.2

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
11 years agoUpdate Debian Changelog. 16/head
Sandon Van Ness [Wed, 2 Apr 2014 19:25:17 +0000 (12:25 -0700)]
Update Debian Changelog.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
(cherry picked from commit cc845481a60d6d0da92879e5ef411d8d89c572f3)

11 years agoBranch for 1.2 release.
Sandon Van Ness [Wed, 2 Apr 2014 18:16:55 +0000 (11:16 -0700)]
Branch for 1.2 release.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
(cherry picked from commit 17fa0f7dc85f658547dd79a5416f55fa709a4956)

11 years agoMerge pull request #15 from ceph/wip-socket-leak
Alfredo Deza [Mon, 5 Jan 2015 18:22:29 +0000 (13:22 -0500)]
Merge pull request #15 from ceph/wip-socket-leak

client: workaround socket leak

11 years agoclient: workaround socket leak wip-socket-leak 15/head
Josh Durgin [Tue, 23 Dec 2014 06:16:36 +0000 (01:16 -0500)]
client: workaround socket leak

Recreate the boto connection object after every 512 requests in an
attempt to workaround a socket leak when the remote end closes the
connection. Boto does not seem to be causing httplib to close() the
sockets appropriately in some cases. I'm not sure exactly where
the leak is occurring, but forcing boto to reinitialize its
connection pool like this avoids it.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
11 years agoMerge pull request #14 from ceph/wip-full-sync
Alfredo Deza [Fri, 19 Dec 2014 19:13:30 +0000 (13:13 -0600)]
Merge pull request #14 from ceph/wip-full-sync

Remove dependency on requests and other full sync fixes

11 years agoworker: check op state for progress on any HTTP error 14/head
Josh Durgin [Thu, 18 Dec 2014 05:49:35 +0000 (21:49 -0800)]
worker: check op state for progress on any HTTP error

500 can be caused by an fcgi timeout when the operation still ends up
succeeding. It doesn't hurt to check for op state being in progress in
general in case other error codes happen but don't indicate actual
failure of the copy, since wait_for_object fails immediately if the
op state is not in progress.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
11 years agosync: use ' ' as the default shard so retries can be stored
Josh Durgin [Thu, 18 Dec 2014 05:28:38 +0000 (21:28 -0800)]
sync: use ' ' as the default shard so retries can be stored

The replica log api doesn't allow empty markers, but we may need to
store retries in the replica log even if there are no log entries. Use
' ' as a marker instead, since it is before all possible markers.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
11 years agofull data sync: treat 404 from bucket list as success
Josh Durgin [Thu, 18 Dec 2014 05:20:21 +0000 (21:20 -0800)]
full data sync: treat 404 from bucket list as success

Since results are paged, the exception may not occur immediately, so
add a new type to distinguish it from other client exceptions, and
catch it at any point during full sync of a bucket.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
11 years agoworker: ignore 404 when removing op_state
Josh Durgin [Thu, 18 Dec 2014 00:16:14 +0000 (16:16 -0800)]
worker: ignore 404 when removing op_state

It's fine if the gateway deleted it first.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
11 years agore-purpose urlencode to craft the query string for us without quoting again
Alfredo Deza [Thu, 18 Dec 2014 21:18:42 +0000 (15:18 -0600)]
re-purpose urlencode to craft the query string for us without quoting again

Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
11 years agocreate a test to check/prevent double quoting of urls
Alfredo Deza [Thu, 18 Dec 2014 21:16:58 +0000 (15:16 -0600)]
create a test to check/prevent double quoting of urls

Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
11 years agoadd get_bucket_list test
Alfredo Deza [Thu, 18 Dec 2014 19:24:12 +0000 (14:24 -0500)]
add get_bucket_list test

Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
11 years agotests for get API calls
Alfredo Deza [Thu, 18 Dec 2014 19:07:37 +0000 (14:07 -0500)]
tests for get API calls

Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
11 years agopep8/style changes to client.py
Alfredo Deza [Thu, 18 Dec 2014 18:58:03 +0000 (13:58 -0500)]
pep8/style changes to client.py

Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
11 years agohttp response does not have .raw anymore
Alfredo Deza [Thu, 18 Dec 2014 00:40:05 +0000 (19:40 -0500)]
http response does not have .raw anymore

Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
11 years agoMerge pull request #13 from ceph/wip-full-sync
Alfredo Deza [Mon, 8 Dec 2014 13:34:22 +0000 (08:34 -0500)]
Merge pull request #13 from ceph/wip-full-sync

Bug fixes for full sync and a few other data sync cases

11 years agoclient: return object names instead of boto resultsets 13/head
Josh Durgin [Sat, 6 Dec 2014 01:35:02 +0000 (17:35 -0800)]
client: return object names instead of boto resultsets

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
11 years agoAdd tests for boto_call decorator
Josh Durgin [Tue, 25 Nov 2014 23:25:34 +0000 (15:25 -0800)]
Add tests for boto_call decorator

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
11 years agoMore tests for wait_for_object()
Josh Durgin [Tue, 25 Nov 2014 01:21:43 +0000 (17:21 -0800)]
More tests for wait_for_object()

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
11 years agoImmediately fail when op state is not found
Josh Durgin [Tue, 25 Nov 2014 00:26:27 +0000 (16:26 -0800)]
Immediately fail when op state is not found

There's a very narrow window in which our connection sending the copy
request could fail before radosgw records the op state, and we query
the op state in that time. Retrying later at that point is fine, and
avoids a long timeout if there is a bug causing us to reach this point
without the op state ever being recorded. This race hasn't been
observed in practice.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>