f4487d7399eef18d56bda0c0ba8609728ab386f9
Commit Graph

7889 Commits

This Branch
This Branch
All Branches
Author SHA1 Message Date
Zuul
f4487d7399 Merge "SSYNC: stop sharing global available_map/send_map" 2018年10月31日 02:02:42 +00:00
Zuul
205101eb5a Merge "SSYNC: Stop sharing a global response" 2018年10月31日 02:02:41 +00:00
Zuul
2cfe31551d Merge "Allow multiple keymasters" 2018年10月30日 06:55:54 +00:00
Zuul
0e4e58158d Merge "Simplify the decryption of container listings" 2018年10月30日 06:55:52 +00:00
Zuul
965b056999 Merge "Unify handle_get/handle_head in decrypter" 2018年10月30日 06:55:50 +00:00
Zuul
79a9143624 Merge "Follow up s3api ensures any string for secret as bytes string" 2018年10月30日 06:55:09 +00:00
Zuul
f6df4dbeb4 Merge "s3api: Ensure secret is utf8 in check_signature" 2018年10月30日 06:55:06 +00:00
Romain LE DISEZ
2d1c438191 SSYNC: stop sharing global available_map/send_map
Change-Id: Iaba8abb81dec792ee92e3715ecc459b57755fcae
2018年10月29日 17:39:58 +01:00
Romain LE DISEZ
6b94cf204a SSYNC: Stop sharing a global response
Change-Id: Ia431d20e1132cc139ac067d66d5d1626ec07117f
2018年10月29日 17:39:45 +01:00
Romain LE DISEZ
e4ad56abb1 SSYNC: Stop sharing a global connection
Change-Id: Id5988887f01532b27c3888a126764524d2466011
2018年10月29日 17:39:31 +01:00
Romain LE DISEZ
46c6fab1cf SSYNC: Remove useless self.failures in sender
Change-Id: Ie5264af0bf2a8d557489c597c3fdc5728e69c6e8
2018年10月29日 10:51:38 +01:00
Zuul
24bf5eea8c Merge "Fix up the test for .ismount" 2018年10月27日 04:48:10 +00:00
Zuul
d75c29a63b Merge "py3: port internal_client" 2018年10月27日 01:04:32 +00:00
Pete Zaitcev
1663782459 Fix up the test for .ismount
We kept hitting a floating error in the test, where fist ismount
in the test succeeds, while it should fail. As it turned out,
the return of gettempdir was the plain /tmp. So, a previous test
created /tmp/.ismount and the subsequent runs failed on it.
Re-generating the root filesystem (e.g. by a container) fixes
the problem, but still, there's no need to do this. This change
tightens the test up by placing the .ismount into a subdirectory
of the test directory instead of the global /tmp.
Change-Id: I006ba1f69982ef7513db3508d691723656f576c9
2018年10月26日 05:30:55 +00:00
Zuul
6bb8229b75 Merge "Require gettext for all non-SUSE distros" 2018年10月23日 00:00:51 +00:00
Zuul
6e2ad3bc88 Merge "Add coverage reports to py27/35/36 unit test jobs" 2018年10月22日 22:53:44 +00:00
Tim Burke
b5a91724e7 Require gettext for all non-SUSE distros
This fixes the failing release-notes job. I guess there was some change
to the base gate images since the related change? We've definitely
landed other patches that would've built release notes since then...
Change-Id: Iaf6296886b653f0ac3e9db52a886ea3fe4a3bd20
Related-Change: Iff24a2b02b8927113d616a5af06331f1a1e31170
2018年10月22日 18:06:00 +00:00
Zuul
8067525b24 Merge "Check for .ismount stubs with symlinks, too" 2018年10月22日 00:34:32 +00:00
Zuul
c2db734571 Merge "Reduce code duplication in SSYNC sender" 2018年10月20日 00:52:36 +00:00
Tim Burke
0a564d885e Check for .ismount stubs with symlinks, too
Related-Change: I9d9fc0a4447a8c5dd39ca60b274c119af6b4c28f
Change-Id: Ib6a2edf648397d1d1c875461698f63afcde5b3ed
2018年10月19日 22:59:34 +00:00
Romain LE DISEZ
3bf9f82a5a Reduce code duplication in SSYNC sender
Move all the message formatting in one method.
Change-Id: I1eb356612fad28c73766af1ec9f7911d4f2cf971
2018年10月19日 12:50:56 -07:00
Zuul
c6f9a0e57b Merge "Stop accomodating 5+ year old object-server code in unit tests" 2018年10月19日 05:39:37 +00:00
Tim Burke
781da0704b Stop accomodating 5+ year old object-server code in unit tests
Change-Id: Id2597d6a26fa8a1769e8cab1ba5cae29eb1e2942
2018年10月18日 12:50:41 -07:00
Pete Zaitcev
6676d74f8f py3: everything account except the real things
The the 80% of the work still remain in server and replicator,
but let's knock this out.
Change-Id: I1e1dee8f8c77212183b0ef2b574b57ad1051d57e
2018年10月17日 23:28:47 -05:00
Zuul
ab2abfe3ae Merge "Change PUT bucket conflict error" 2018年10月17日 07:07:13 +00:00
Zuul
9d9395b782 Merge "Properly handle custom metadata upon an object COPY operation" 2018年10月17日 07:07:11 +00:00
Zuul
56c06557ac Merge "py3: adapt account/backend.py and utils.py" 2018年10月17日 04:47:22 +00:00
Tim Burke
b39d2efdab Allow multiple keymasters
This allows the migration from one key provider to another.
Note that secret_id values must remain unique across all keymasters
in a given pipeline. If they are not unique, the right-most keymaster
will take precedence.
When looking for the active root secret, only the right-most keymaster
is used.
Change-Id: I6b5c812a54624f56c55164556385e3e475fb2470
2018年10月16日 21:26:26 +00:00
Tim Burke
00f7732193 Simplify the decryption of container listings
Following https://github.com/openstack/swift/commit/4806434 there
is only one handler that might be used.
Following https://github.com/openstack/swift/commit/2722e49 all
EncryptionException errors should be caught and handled in
decrypt_obj_dict.
Change-Id: Ib4e9db400a58853daa903ae0a625dfde47747552
2018年10月16日 20:11:10 +00:00
Tim Burke
0d774861cb Unify handle_get/handle_head in decrypter
Change-Id: I7058e3b5cd7a7fe7f2f0c3304e4e8b3d97dfec4a
2018年10月16日 20:11:10 +00:00
Pete Zaitcev
28a582f3f4 py3: adapt account/backend.py and utils.py
Gradatim Ferociter
Change-Id: I6f3fac450c14f8dbc549ab2b0645a31aa0cece89
2018年10月15日 22:42:22 -05:00
zhulingjie
83a7ce8ce0 Python 3 compatibility: fix xrange/range issues
xrange is not defined in python3.
Rename xrange() to range().
Change-Id: Ifb1c9cfd863ce6dfe3cced3eca7ea8e539d8a5e9
2018年10月14日 14:08:19 +00:00
Kota Tsuyuzaki
b90c792a70 Follow up s3api ensures any string for secret as bytes string
This is follow up for patch https://review.openstack.org/#/c/605603
That looks fine, that enables s3api to take any string (unicode or bytes)
but no tests in the patch. This patch adds some tests (and test cleanups)
to asserts the logic works as expected.
Change-Id: I6368ba76ca2400482a35da3d407bb4903b578b41
2018年10月12日 17:02:34 +09:00
Sam Morrison
45c840a565 s3api: Ensure secret is utf8 in check_signature
Change-Id: Ieedb54074d9d3494843597395e325a39d59976ad
2018年10月12日 16:40:59 +09:00
Zuul
4ae9ce76e7 Merge "Pass empty etag override values through encrypter" 2018年10月11日 08:07:36 +00:00
Zuul
8e66d1278b Merge "Allow EC to ignore invalid request ETag" 2018年10月11日 08:07:35 +00:00
Zuul
b56c5262a5 Merge "Tighten status code assertions for object POST" 2018年10月11日 03:03:41 +00:00
Zuul
76a3908667 Merge "Add validation for sorting_method values" 2018年10月11日 02:34:31 +00:00
Zuul
97f1c3be00 Merge "Refactor obj.server.ObjectController.PUT" 2018年10月11日 02:33:06 +00:00
Zuul
bd9d502910 Merge "Enabling direct_client users to overwrite X-Timestamp" 2018年10月11日 01:52:31 +00:00
Tim Burke
dd49f17030 Add coverage reports to py27/35/36 unit test jobs
...and drop openstack-cover-jobs since it is no longer necessary.
Change-Id: Iad12e64f41bbdd8b8e005b0fb14a7e2108fa3bcf
2018年10月10日 23:17:00 +00:00
Tim Burke
ce51893bfc Tighten status code assertions for object POST
Now that POST-as-COPY is dead and gone, 202 should be the only
successful response code for an object POST. Note that there are
already tests requiring 202s in test/functional/test_object.py.
Change-Id: I33c8d2c031f8dfdf1e789bb8d6e6908bfff4d739
2018年10月10日 09:02:44 -07:00
Zuul
11154b5534 Merge "ratelimit: ignore requests with invalid API versions" 2018年10月10日 08:53:55 +00:00
karen chan
78c9fd9f93 Change PUT bucket conflict error
When a bucket already exists, PUT returned a BucketAlreadyExists error.
AWS S3 returns BucketAlreadyOwnedByYou error instead, so this changes
the error returned by swift3.
When sending a PUT request to a bucket, if the bucket already exists and
is not owned by the user, return 409 conflict error,
BucketAlreadyExists.
Change-Id: I32a0a9add57ca0e4d667b5eb538dc6ea53359944
Closes-Bug: #1498231 
2018年10月08日 12:37:06 -04:00
Zuul
a4376a43de Merge "Tolerate missing containers when trying to clean up" 2018年10月08日 07:16:35 +00:00
Zuul
1cbf0731e0 Merge "Prevent kmip_protocol logger from logging at DEBUG" 2018年10月08日 04:56:34 +00:00
Zuul
b326628569 Merge "internal_client: Require that request_tries be positive" 2018年10月08日 01:15:35 +00:00
Tim Burke
4ca605c51e Move base64-decoding/unpickling into DatabaseBroker
...which was the one responsible for pickling and encoding the data in
the first place.
Change-Id: Ia7fad7ddd7cf95c8a0168dd6c899c80ddfdd3521
2018年10月05日 22:07:46 +00:00
Tim Burke
6e7ca26169 DB follow-up
Change-Id: I32cff110f0771d6d92a881ef52e482aa17d8dbe4
Related-Change: I0dab4ff013f300396cff7313bc27b9d5644fe8a7
2018年10月05日 21:42:46 +00:00
Tim Burke
3770f3f228 internal_client: Require that request_tries be positive
This way the error is obvious and at initialization time, rather than being
an UnboundLocalError that waits until you actually make requests.
Change-Id: I4c8dafe34fcfea354b254b9137f31184cbd6a762
2018年10月05日 17:51:00 +00:00