swift.git
18 months agoMerge pull request #9 from zhangsw/master master
Casey Bodley [Mon, 25 Nov 2019 19:22:44 +0000 (14:22 -0500)]
Merge pull request #9 from zhangsw/master

Modify testIfMatchAndUnmodified to ignore if-unmodified-since when if-match exists.

18 months agoModify testIfMatchAndUnmodified to ignore if-unmodified-since when 9/head
zhangshaowen [Fri, 15 Nov 2019 06:55:44 +0000 (14:55 +0800)]
Modify testIfMatchAndUnmodified to ignore if-unmodified-since when
if-match exists.

Signed-off-by: zhangshaowen <zhangshaowen@cmss.chinamobile.com>
19 months agoMerge pull request #8 from ceph/wip-invalid-url
Casey Bodley [Fri, 8 Nov 2019 14:44:38 +0000 (09:44 -0500)]
Merge pull request #8 from ceph/wip-invalid-url

remove tests that fail with InvalidURL

19 months agoremove tests that fail with InvalidURL 8/head
Casey Bodley [Thu, 7 Nov 2019 21:57:03 +0000 (16:57 -0500)]
remove tests that fail with InvalidURL

a fix for CVE https://bugs.python.org/issue30458 removed httplib's
ability to send requests with control characters in the url. disable
the affected test cases

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #7 from ceph/wip-24163
Casey Bodley [Fri, 18 May 2018 13:02:45 +0000 (09:02 -0400)]
Merge pull request #7 from ceph/wip-24163

requirements: unpin gevent and bootstrap libev-devel

Reviewed-by: Kefu Chai <kchai@redhat.com>
3 years agorequirements: unpin gevent and bootstrap libev-devel 7/head
Casey Bodley [Thu, 17 May 2018 18:45:04 +0000 (14:45 -0400)]
requirements: unpin gevent and bootstrap libev-devel

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #4 from ivancich/wip-test-unordered-container-list
Casey Bodley [Thu, 12 Apr 2018 19:41:02 +0000 (15:41 -0400)]
Merge pull request #4 from ivancich/wip-test-unordered-container-list

Add tests for unordered container listing

Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #5 from ceph/wip-bootstrap-netifaces
Casey Bodley [Thu, 5 Apr 2018 13:13:23 +0000 (09:13 -0400)]
Merge pull request #5 from ceph/wip-bootstrap-netifaces

bootstrap: remove deprecated options to 'pip install'

Reviewed-by: Nathan Cutler <ncutler@suse.com>
3 years agobootstrap: remove deprecated options to 'pip install' 5/head
Casey Bodley [Wed, 4 Apr 2018 18:57:51 +0000 (14:57 -0400)]
bootstrap: remove deprecated options to 'pip install'

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agoAdd tests for unordered container listing, which is not a standard 4/head
J. Eric Ivancich [Tue, 20 Mar 2018 21:28:46 +0000 (17:28 -0400)]
Add tests for unordered container listing, which is not a standard
part of swift, but is included as it's much less resource intensive
and can be useful in some circumstances.

Adds use of attribute @attr('fails_on_swift') to mark that this test
is not standard for swift.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
3 years agoMerge pull request #3 from shashalu/add-slo-dlo-tests
Casey Bodley [Tue, 20 Jun 2017 21:02:09 +0000 (17:02 -0400)]
Merge pull request #3 from shashalu/add-slo-dlo-tests

Add some functional test for slo/dlo

Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agoAdd some functional test for slo/dlo 3/head
lu.shasha [Mon, 19 Jun 2017 09:18:07 +0000 (17:18 +0800)]
Add some functional test for slo/dlo

Signed-off-by: Shasha Lu <lu.shasha@eisoo.com>
4 years agoMerge pull request #2 from ceph/wip-pip
Ken Dreyer [Wed, 8 Feb 2017 20:11:16 +0000 (13:11 -0700)]
Merge pull request #2 from ceph/wip-pip

remove python2-pip from bootstrap requirements

4 years agoremove python2-pip from bootstrap requirements 2/head
vasukulkarni [Wed, 8 Feb 2017 18:56:13 +0000 (10:56 -0800)]
remove python2-pip from bootstrap requirements

python2-pip doesn't exist in rhel and python-virtualenv ships pip in its package.

Signed-off-by: Vasu Kulkarni vasu@redhat.com
4 years agoMerge pull request #1 from linuxbox2/master
Yehuda Sadeh [Thu, 26 Jan 2017 18:48:46 +0000 (10:48 -0800)]
Merge pull request #1 from linuxbox2/master

bootstrap: apply mwatts setuptools workaround (temporary)

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
4 years agobootstrap: apply mwatts setuptools workaround (temporary) 1/head
Matt Benjamin [Thu, 26 Jan 2017 18:44:20 +0000 (13:44 -0500)]
bootstrap: apply mwatts setuptools workaround (temporary)

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
4 years agopython2-pip
Sage Weil [Tue, 27 Dec 2016 18:19:37 +0000 (13:19 -0500)]
python2-pip

7 years agoPip 1.5 fixes.
Sandon Van Ness [Thu, 16 Jan 2014 03:14:40 +0000 (19:14 -0800)]
Pip 1.5 fixes.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
7 years agofix package detection on centos and rhel in bootstrap
tamil [Thu, 26 Sep 2013 23:47:39 +0000 (16:47 -0700)]
fix package detection on centos and rhel in bootstrap

Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
7 years agorequirements.txt: adjust requirements
Yehuda Sadeh [Fri, 19 Jul 2013 20:54:48 +0000 (13:54 -0700)]
requirements.txt: adjust requirements

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
8 years agoTestSlashInName: don't create 2 char long containers
Yehuda Sadeh [Fri, 10 May 2013 18:10:24 +0000 (11:10 -0700)]
TestSlashInName: don't create 2 char long containers

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
8 years agotestSlashInName also fails on rgw
Sage Weil [Mon, 24 Dec 2012 00:00:18 +0000 (16:00 -0800)]
testSlashInName also fails on rgw

8 years agorgw: mark failing rgw tests
Yehuda Sadeh [Thu, 20 Dec 2012 23:41:19 +0000 (15:41 -0800)]
rgw: mark failing rgw tests

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
9 years agochange webob package requiremtn
Yehuda Sadeh [Wed, 16 Nov 2011 22:25:21 +0000 (14:25 -0800)]
change webob package requiremtn

9 years agosome more requirements update
Yehuda Sadeh [Wed, 16 Nov 2011 21:38:14 +0000 (13:38 -0800)]
some more requirements update

9 years agoupdate requirements.txt
Yehuda Sadeh [Wed, 16 Nov 2011 21:33:57 +0000 (13:33 -0800)]
update requirements.txt

9 years agorgw: add missing file
Yehuda Sadeh [Wed, 16 Nov 2011 21:25:31 +0000 (13:25 -0800)]
rgw: add missing file

9 years agoadding new file
Yehuda Sadeh [Wed, 16 Nov 2011 21:21:59 +0000 (13:21 -0800)]
adding new file

9 years agorgw: header fields should not be non-ascii (rfc2616)
Yehuda Sadeh [Tue, 15 Nov 2011 20:35:27 +0000 (12:35 -0800)]
rgw: header fields should not be non-ascii (rfc2616)

9 years agorgw: mark rgw tests that are expected to fail
Yehuda Sadeh [Mon, 14 Nov 2011 22:39:43 +0000 (14:39 -0800)]
rgw: mark rgw tests that are expected to fail

9 years agorgw: change container name limit (256 -> 255)
Yehuda Sadeh [Mon, 14 Nov 2011 22:09:00 +0000 (14:09 -0800)]
rgw: change container name limit (256 -> 255)

9 years agorgw: fix chunked PUT test
Yehuda Sadeh [Mon, 14 Nov 2011 22:08:42 +0000 (14:08 -0800)]
rgw: fix chunked PUT test

9 years agoMerge "changing config files to be on section 5 and also running spellchecks against...
Jenkins [Mon, 14 Nov 2011 19:16:20 +0000 (19:16 +0000)]
Merge "changing config files to be on section 5 and also running spellchecks against all files"

9 years agoMerge "Make Eventlet's WSGI server log differently."
Jenkins [Mon, 14 Nov 2011 18:45:09 +0000 (18:45 +0000)]
Merge "Make Eventlet's WSGI server log differently."

9 years agoMerge "Updated TimeoutError and except Exception refs..."
Jenkins [Mon, 14 Nov 2011 18:26:56 +0000 (18:26 +0000)]
Merge "Updated TimeoutError and except Exception refs..."

9 years agoMerge "Fixed time-sensitive tests."
Jenkins [Mon, 14 Nov 2011 16:19:09 +0000 (16:19 +0000)]
Merge "Fixed time-sensitive tests."

9 years agofixed object manifest etags
John Dickinson [Fri, 11 Nov 2011 19:55:58 +0000 (13:55 -0600)]
fixed object manifest etags

fixes lp bug #873133

Change-Id: Ic371b1e5d858a87dfdb7e28f888f9f3bbd60e661

9 years agoadded people to the AUTHORS file who have commits since 1.4.3
John Dickinson [Fri, 11 Nov 2011 14:50:14 +0000 (08:50 -0600)]
added people to the AUTHORS file who have commits since 1.4.3

Change-Id: I5dbc54c32585a67d99dad4da653b2ccc79fa16d2

9 years agoMake Eventlet's WSGI server log differently.
gholt [Wed, 9 Nov 2011 20:38:54 +0000 (20:38 +0000)]
Make Eventlet's WSGI server log differently.

Change-Id: I6d7fc8c9a0c4c3a033e0e5ee7943e59a52d7c56f

9 years agochanging config files to be on section 5 and also running spellchecks against all...
Marcelo Martins [Wed, 12 Oct 2011 18:23:13 +0000 (13:23 -0500)]
changing config files to be on section 5 and also running spellchecks against all files

"Also adding the new swift-recon and swift-ring-builder manpages to this set"
"Adding new manpages for configuration files and also making changes according to previous review suggestions"
"removing the Author line from the manpages according to suggestions"

Change-Id: I256d2b2851b55a379b59011894f214bf55ba7da9

9 years agoFixes bug 887278. The disk usage graph will now be drawn correctly.
Florian Hines [Mon, 7 Nov 2011 19:34:08 +0000 (19:34 +0000)]
Fixes bug 887278. The disk usage graph will now be drawn correctly.

Change-Id: I75cf87e409fefa701eea5019f2449757e55eba2f

9 years agoChange bzr to swift in getting_started doc.
Chmouel Boudjnah [Mon, 7 Nov 2011 16:21:46 +0000 (17:21 +0100)]
Change bzr to swift in getting_started doc.

Fixes #884766.

Change-Id: Id251fa04305352522db22cd27410f0b2e6e9fc06

9 years agoUpdated TimeoutError and except Exception refs...
gholt [Mon, 7 Nov 2011 16:24:08 +0000 (16:24 +0000)]
Updated TimeoutError and except Exception refs...

Updated eventlet.TimeoutError (deprecated) references to
Timeout and, more importantly, updated many except Exception
clauses to except (Exception, Timeout).

Change-Id: Ib089265551bd20b94c00ea84f11140ccd795d301

9 years agoFixes the HTTPConflict import.
Dragos Manolescu [Fri, 4 Nov 2011 05:17:16 +0000 (22:17 -0700)]
Fixes the HTTPConflict import.

AccountController.PUT references HTTPConflict but doesn't import it. Fixed the import
and verified with setup.py test and pep8

Change-Id: I13b3fa57a72f0112bc6af012e438634fa7d893c1

9 years agoMerge "requote the source when doing a COPY"
Jenkins [Thu, 3 Nov 2011 20:17:17 +0000 (20:17 +0000)]
Merge "requote the source when doing a COPY"

9 years agoFixed time-sensitive tests.
gholt [Tue, 1 Nov 2011 23:16:11 +0000 (23:16 +0000)]
Fixed time-sensitive tests.

I noticed that a couple of tests I recently made were
time-sensitive. This can be shown with the following quick
script:

from sys import exit
from unittest import TestSuite, TextTestRunner

from test.unit.obj.test_server import TestObjectController

s = TestSuite()
s.addTest(TestObjectController('test_GET_but_expired'))
s.addTest(TestObjectController('test_HEAD_but_expired'))
for x in xrange(200):
    if TextTestRunner().run(s).failures:
        exit('!!!!!!!!!!!!!!! TEST FAILED !!!!!!!!!!!!!!!')
print '\o/ Test ran 200 times without failure.'

Change-Id: Ifdb1920e5266aaa278baa0759fc0bfaa1aff2d0d

9 years agoExpiring Objects Support
gholt [Wed, 26 Oct 2011 21:42:24 +0000 (21:42 +0000)]
Expiring Objects Support

Please see the doc/source/overview_expiring_objects.rst for
more detail.

Change-Id: I4ab49e731248cf62ce10001016e0c819cc531738

9 years agoRemove bazaar/lp reference and change it to github
Chmouel Boudjnah [Tue, 1 Nov 2011 07:18:51 +0000 (08:18 +0100)]
Remove bazaar/lp reference and change it to github

Change-Id: Ic58d3023f41204568bff9a4a77c895937b9456d2

9 years agoCorrect http.path initilization. Fixes Bug #876927
Dragos Manolescu [Wed, 26 Oct 2011 23:18:52 +0000 (16:18 -0700)]
Correct http.path initilization. Fixes Bug #876927

Verified with test and pep8

Initial Change-Id: Ibf1893051be0a74c6d45a571a3068c36f99f9cfa

Change-Id: I1f905cdc3f5dfdbf315f272e848b2c20c02a5c89

9 years agoCorrect http.path initilization. Fixes Bug #876927
Dragos Manolescu [Thu, 20 Oct 2011 20:04:12 +0000 (13:04 -0700)]
Correct http.path initilization. Fixes Bug #876927

Change-Id: Ibf1893051be0a74c6d45a571a3068c36f99f9cfa

9 years agoAdd .gitreview config file for gerrit.
James E. Blair [Thu, 20 Oct 2011 17:51:50 +0000 (13:51 -0400)]
Add .gitreview config file for gerrit.

The CI team is developing a new tool, git-review:

  https://github.com/openstack-ci/git-review

which is intendend to replace rfc.sh.  This adds a .gitreview file
so that it can automatically determine the canonical gerrit location
for the repository when first run.  Later, rfc.sh will be updated to
indicate it is deprecated, and then eventually removed.

Change-Id: I12e6814796df23fa1be4fa2b3e6427381b218461

9 years agoMerge "Fixing bug with x-trans-id. Will now be set on all incoming requests to proxy...
Jenkins [Mon, 24 Oct 2011 15:41:41 +0000 (15:41 +0000)]
Merge "Fixing bug with x-trans-id.  Will now be set on all incoming requests to proxy and trans-ids will not be reused."

9 years agorequote the source when doing a COPY
John Dickinson [Wed, 19 Oct 2011 14:21:14 +0000 (09:21 -0500)]
requote the source when doing a COPY

fixes lp bug 857673
also fixes similar bug in post-as-copy code
adds test

Change-Id: I7a1984506bba28afe2b7ba46998d7306c058fd5c

9 years agoAdd documentation for Swift Recon.
Florian Hines [Tue, 18 Oct 2011 21:10:50 +0000 (21:10 +0000)]
Add documentation for Swift Recon.

Change-Id: I37f4fb624bdc5b8bbf2e691d29aa6b15cd648aa8

9 years agoMerge "make drive audit regexes detect 4-letter drives"
Jenkins [Fri, 14 Oct 2011 19:09:06 +0000 (19:09 +0000)]
Merge "make drive audit regexes detect 4-letter drives"

9 years agoMerge "Adding what acc/cont/obj into the ratelimit error messages"
Jenkins [Fri, 14 Oct 2011 16:22:34 +0000 (16:22 +0000)]
Merge "Adding what acc/cont/obj into the ratelimit error messages"

9 years agoMerge "Query only specific zone via swift-recon"
Jenkins [Fri, 14 Oct 2011 16:13:35 +0000 (16:13 +0000)]
Merge "Query only specific zone via swift-recon"

9 years agoFixing bug with x-trans-id. Will now be set on all incoming requests to proxy and...
David Goetz [Thu, 13 Oct 2011 16:36:17 +0000 (09:36 -0700)]
Fixing bug with x-trans-id.  Will now be set on all incoming requests to proxy and trans-ids will not be reused.

Change-Id: Ieb59cadd9925a122566c98374b9736e77d3f98dd

9 years agoAdding what acc/cont/obj into the ratelimit error messages
David Goetz [Tue, 11 Oct 2011 19:21:20 +0000 (12:21 -0700)]
Adding what acc/cont/obj into the ratelimit error messages

Change-Id: I8a033e95f784c30175d6b26c6511bedf14d919aa

9 years agoFix documentation example.
Chmouel Boudjnah [Fri, 7 Oct 2011 22:53:48 +0000 (18:53 -0400)]
Fix documentation example.

get HTTPUnauthorized and HTTPForbidden from webob.exc

Change-Id: Id0a40077fb0adedd8cbf4f490e13fd522c92571a

9 years agoMerge "Use account_autocreate for tempauth."
Jenkins [Fri, 7 Oct 2011 18:30:37 +0000 (18:30 +0000)]
Merge "Use account_autocreate for tempauth."

9 years agoMerge "Add more specific error messages to swift-ring-builder"
Jenkins [Fri, 7 Oct 2011 18:23:21 +0000 (18:23 +0000)]
Merge "Add more specific error messages to swift-ring-builder"

9 years agoMerge "Fix for bug 845952"
Jenkins [Fri, 7 Oct 2011 18:17:45 +0000 (18:17 +0000)]
Merge "Fix for bug 845952"

9 years agoUse account_autocreate for tempauth.
Chmouel Boudjnah [Thu, 6 Oct 2011 15:35:43 +0000 (11:35 -0400)]
Use account_autocreate for tempauth.

We don't need to create ourself account in tempauth as we can use
account_autocreate from proxy server.

Change-Id: I6d0a044be361a53faee15d15177a9b5bc95da19e

9 years agoFix documentation leftover from swift-stats rename
Julien Danjou [Wed, 5 Oct 2011 14:54:56 +0000 (16:54 +0200)]
Fix documentation leftover from swift-stats rename

Change-Id: Ia6f4eeb626cc34b6cec43cab92a0afe7b46354e0
Signed-off-by: Julien Danjou <julien.danjou@enovance.com>
9 years agomake drive audit regexes detect 4-letter drives
Mike Barton [Fri, 30 Sep 2011 00:17:35 +0000 (00:17 +0000)]
make drive audit regexes detect 4-letter drives

addresses bug 827913

Change-Id: I691eee191f5951186158c553281f88aae9e5d25f

9 years agoQuery only specific zone via swift-recon
Florian Hines [Wed, 28 Sep 2011 06:00:31 +0000 (01:00 -0500)]
Query only specific zone via swift-recon

Add support to query only specific zones, as well a --all shortcut flag to run all checks.
Also skip deleted devices when trying to grab hosts from the ring.

Change-Id: I441ec76c90857c2e74262a7a9e2d36de89b28631

9 years agoAdd more specific error messages to swift-ring-builder
Mark Gius [Wed, 21 Sep 2011 20:20:27 +0000 (13:20 -0700)]
Add more specific error messages to swift-ring-builder

Replace existing Exceptions in ring builder with more specific exceptions.
Abstracted out some behavior in ring-builder that is likely to cause an
exception. Add try/except blocks to swift-ring-builder to catch specific
exceptions and provide the user with some information about how to deal
with the error.

This change begins to address blueprint friendly-error-messages

Change-Id: I8fc9cfa4899421fe04bba23ac52523778e902321

9 years agoFix for bug 845952
Mark Gius [Wed, 21 Sep 2011 20:17:50 +0000 (13:17 -0700)]
Fix for bug 845952

Devices scheduled to be removed are assigned a device of 65535.  When
looking for parts to reassign from heavy nodes, these parts need to be
skipped.

Includes review suggestions

Change-Id: I61f40c36509bf998834c123b0f80117ca6def3ff

9 years agoMerge "Changes swift-ring-builder exit codes"
Jenkins [Tue, 27 Sep 2011 14:40:50 +0000 (14:40 +0000)]
Merge "Changes swift-ring-builder exit codes"

9 years agoFix swift-recon
Chmouel Boudjnah [Mon, 26 Sep 2011 13:30:18 +0000 (15:30 +0200)]
Fix swift-recon

Make sure there is things in the row of ring_data.devs.
Adjust else: for the driver information.

Change-Id: I11a949dfa3f36691f86f3b7330d65e435c22da24

9 years agoChanges swift-ring-builder exit codes
Mark Gius [Tue, 20 Sep 2011 21:53:53 +0000 (14:53 -0700)]
Changes swift-ring-builder exit codes

swift-ring-builder will now return zero for successful operations and
non-zero for operations that have errored or need attention.

Fixes bug 836922

Change-Id: I8d18a49fcf239f7cc7bfe4cdb468ac849436122e

9 years agobumped version to 1.4.4
John Dickinson [Wed, 7 Sep 2011 22:11:15 +0000 (17:11 -0500)]
bumped version to 1.4.4

Change-Id: I752def9a6f76f74cfd30c744525dfcccc35782c1

9 years agoUpdating changelog for 1.4.3
gholt [Wed, 7 Sep 2011 21:55:40 +0000 (21:55 +0000)]
Updating changelog for 1.4.3

Change-Id: Iae6a3d5341d9621034c772174abfa3f10e7e335b

9 years agoAdd rfc.sh to help with gerrit workflow.
James E. Blair [Tue, 6 Sep 2011 15:37:38 +0000 (08:37 -0700)]
Add rfc.sh to help with gerrit workflow.

Change-Id: If2af58cd4724b440d47385c10f202c9441cdf4bb

9 years agoFixes last modified date for swift3 middleware
Chuck Thier [Fri, 2 Sep 2011 15:32:31 +0000 (15:32 +0000)]
Fixes last modified date for swift3 middleware

9 years agoremoved unused import
Chuck Thier [Fri, 2 Sep 2011 15:17:35 +0000 (15:17 +0000)]
removed unused import

9 years agoAdded unit test :P
Chuck Thier [Thu, 1 Sep 2011 21:12:35 +0000 (21:12 +0000)]
Added unit test :P

9 years agoobj replicator can now log replication stats for recon directly:
Florian Hines [Thu, 1 Sep 2011 20:07:30 +0000 (20:07 +0000)]
obj replicator can now log replication stats for recon directly:

in object-server.conf:

[object-replicator]
vm_test_mode = yes
recon_enable = yes
recon_cache_path = /var/cache/swift

Also replaced the swift-recon bash cronjob with a friendlier/cleaner python version, that now only obtains async stats. Basic usage:

$ bin/swift-recon-cron
Usage: swift-recon-cron CONF_FILE

#CONF_FILE = path to your object-server.conf

$ bin/swift-recon-cron /etc/swift/object-server.conf

9 years agosimplejson import and exception/logging fixes
Florian Hines [Thu, 1 Sep 2011 18:46:13 +0000 (13:46 -0500)]
simplejson import and exception/logging fixes

9 years agoFixed date format for S3 bucket listing
Chuck Thier [Thu, 1 Sep 2011 15:48:53 +0000 (15:48 +0000)]
Fixed date format for S3 bucket listing

9 years agopep8
Florian Hines [Wed, 31 Aug 2011 20:19:16 +0000 (15:19 -0500)]
pep8

9 years agoFixes multi node docs to point to the right ppa
Chuck Thier [Wed, 31 Aug 2011 19:17:31 +0000 (19:17 +0000)]
Fixes multi node docs to point to the right ppa

9 years agoFixed ppa for multinode instructions
Chuck Thier [Wed, 31 Aug 2011 19:08:02 +0000 (19:08 +0000)]
Fixed ppa for multinode instructions

9 years agofixup file recon file locking
Florian Hines [Wed, 31 Aug 2011 16:29:59 +0000 (11:29 -0500)]
fixup file recon file locking

9 years agoProposed fix for bug #837428.
Doug Weimer [Wed, 31 Aug 2011 15:37:53 +0000 (15:37 +0000)]
Proposed fix for bug #837428.

To test:
Create an object without an x-timestamp or x-put-timestamp header and request the object with the X-newest header.

Without the patch, the proxy will return a 404 object not found even though the storage nodes return the object to the proxy.

With the patch, the proxy will return the first object received unless an object with a newer timestamp header exists.

9 years agoFix for object auditor. It doesn't close files that are quarantined for certain...
David Goetz [Wed, 31 Aug 2011 15:17:26 +0000 (15:17 +0000)]
Fix for object auditor.  It doesn't close files that are quarantined for certain reasons, zero byte files for one, which will cause it to eventually crash due to keeping too many files open.  Thanks David Kranz for finding / reporting this!!

9 years agofix for unit test
David Goetz [Wed, 31 Aug 2011 14:28:36 +0000 (07:28 -0700)]
fix for unit test

9 years agoPEP8 fixes and unit tests merged from https://code.launchpad.net/~gholt/swift/lp83742...
Doug Weimer [Wed, 31 Aug 2011 13:08:59 +0000 (06:08 -0700)]
PEP8 fixes and unit tests merged from https://code.launchpad.net/~gholt/swift/lp837428/+merge/73439 . Added additional unittests for GET in case it is handled by a separate code path from HEAD in the future.

9 years agoobject-replicator now optionally updates recon stats directly. also updated swift...
Florian Hines [Wed, 31 Aug 2011 07:14:35 +0000 (02:14 -0500)]
object-replicator now optionally updates recon stats directly. also updated swift-recon-cron with a cleaner python version.

9 years agomake sure files always get closed
David Goetz [Tue, 30 Aug 2011 21:29:19 +0000 (14:29 -0700)]
make sure files always get closed

9 years agoChanges needed for SOS
David Goetz [Tue, 30 Aug 2011 20:47:31 +0000 (20:47 +0000)]
Changes needed for SOS

9 years agoPEP8 fix
gholt [Tue, 30 Aug 2011 20:31:17 +0000 (20:31 +0000)]
PEP8 fix

9 years agoTest for x-newest with new proxy and old object server
gholt [Tue, 30 Aug 2011 20:27:06 +0000 (20:27 +0000)]
Test for x-newest with new proxy and old object server

9 years agoadding unit tests
David Goetz [Tue, 30 Aug 2011 19:07:32 +0000 (12:07 -0700)]
adding unit tests

9 years agoChanged GETorHEAD_base to return an object even when HTTP_X_NEWEST is set and none...
Doug Weimer [Tue, 30 Aug 2011 15:11:26 +0000 (08:11 -0700)]
Changed GETorHEAD_base to return an object even when HTTP_X_NEWEST is set and none of the requested objects have a timestamp set.

9 years agodeleting a database (account or container) now also clears the metadata
John Dickinson [Mon, 29 Aug 2011 20:37:27 +0000 (20:37 +0000)]
deleting a database (account or container) now also clears the metadata

9 years agocleaned up local variable
John Dickinson [Mon, 29 Aug 2011 20:26:25 +0000 (15:26 -0500)]
cleaned up local variable

9 years agofix for trans id
David Goetz [Mon, 29 Aug 2011 19:39:20 +0000 (12:39 -0700)]
fix for trans id

9 years agofix for trans id
David Goetz [Mon, 29 Aug 2011 19:34:53 +0000 (12:34 -0700)]
fix for trans id