e73619b25ae2b7244dbbd0bd47d249fd87ec4eff
Commit Graph

8694 Commits

This Branch
This Branch
All Branches
Author SHA1 Message Date
Zuul
e73619b25a Merge "proxy-logging: add fields ttfb and pid" 2020年01月31日 19:01:09 +00:00
Zuul
24fcb380a8 Merge "Return correct etag for raw manifest" 2020年01月31日 18:53:27 +00:00
Zuul
ef60aca9aa Merge "Dockerhub description of saio image" 2020年01月31日 18:47:34 +00:00
Thiago da Silva
b8c16de023 Return correct etag for raw manifest
When client sends a '?multipart-manifest=get&format=raw' request
middleware will change the manifest returned from object server.
This patch makes sure the response etag is updated to reflect
changes to manifest content
Change-Id: I0ac6dd0808fb041ba7663f4a472a06ee3f1d9a71
2020年01月31日 12:04:12 +11:00
Tim Burke
5cd854b783 Authors/changelog for swift 2.24.0
Change-Id: I60d4ad62c7d14ed15e114ed95102a2368c48f9f4
2.24.0
2020年01月30日 16:17:05 -08:00
Zuul
f9cdb7b6fb Merge "Add py38 unit test job" 2020年01月30日 20:32:51 +00:00
Zuul
244cc2bc1c Merge "py38: cgi lost some names" 2020年01月30日 20:32:49 +00:00
Thiago da Silva
c7cb34ad61 Dockerhub description of saio image
Change-Id: Ifcb5013a5728d93cf5491fbff81b2677450698e6
2020年01月30日 20:17:07 +00:00
Zuul
5e70039df5 Merge "Bump up ceph tests timeout" 2020年01月30日 01:11:38 +00:00
Tim Burke
e3ee6ce31a py38: cgi lost some names
Drive-by: always use quote=True; it basically never hurts.
Change-Id: Id91fdd19f226e9ec0d9c702d40d041c385c52b88
2020年01月29日 12:56:58 -08:00
Zuul
898cb928c7 Merge "s3api: use native strings in s3api.auth_details access_key" 2020年01月29日 19:10:21 +00:00
Zuul
3010d31804 Merge "s3api: Implement object versioning API" 2020年01月29日 03:52:57 +00:00
Zuul
3a1c3eaa67 Merge "Add a note to the part power increase documentation" 2020年01月29日 03:52:40 +00:00
Zuul
2ffc2298e0 Merge "s3api: Better handle 498/429 responses" 2020年01月28日 22:29:27 +00:00
karen chan
6097660f0c s3api: Implement object versioning API
Translate AWS S3 Object Versioning API requests to native Swift Object
Versioning API, speficially:
 * bucket versioning status
 * bucket versioned objects listing params
 * object GETorHEAD & DELETE versionId
 * multi_delete versionId
Change-Id: I8296681b61996e073b3ba12ad46f99042dc15c37
Co-Authored-By: Tim Burke <tim.burke@gmail.com>
Co-Authored-By: Clay Gerrard <clay.gerrard@gmail.com>
2020年01月28日 14:00:08 -08:00
Romain LE DISEZ
ebaf154fc4 Add a note to the part power increase documentation
Specify that the relink command must be run as the same user than the
daemon processes to avoid creating files that are not manipulable by the
server/replicator/...
Change-Id: If23592855db5f5bb0ec1e7c679de15769fd86871
2020年01月28日 13:51:05 -05:00
Zuul
e6be114749 Merge "Middleware that allows a user to have quoted Etags" 2020年01月28日 03:15:56 +00:00
Zuul
ce5e8b9694 Merge "Add unittest2 back to lower-constraints.txt" 2020年01月28日 01:30:54 +00:00
Tim Burke
bd063b6789 s3api: use native strings in s3api.auth_details access_key
Change-Id: I331b6871e5b62f61809338a1abddafe1263e7f02
2020年01月27日 22:01:04 +00:00
Romain LE DISEZ
a84e358dcf SSYNC: log body of errors in SSYNC subrequests
It helps an operator to understand why an SSYNC replication is not
progressing on a specific partition.
Change-Id: I75ccc833d579a98eff22377a83b703fd7e9c4720
2020年01月27日 16:13:43 -05:00
Romain LE DISEZ
d8821c75bd proxy-logging: add fields ttfb and pid
Change-Id: I1611e34846e586703e9d3709fa64e8df41f2d685
2020年01月27日 15:54:52 -05:00
Romain LE DISEZ
27fd97cef9 Middleware that allows a user to have quoted Etags
Users have complained for a while that Swift's ETags don't match the
expected RFC formats. We've resisted fixing this for just as long,
worrying that the fix would break innumerable clients that expect the
value to be a hex-encoded MD5 digest and *nothing else*.
But, users keep asking for it, and some consumers (including some CDNs)
break if we *don't* have quoted etags -- so, let's make it an option.
With this middleware, Swift users can set metadata per-account or even
per-container to explicitly request RFC compliant etags or not. Swift
operators also get an option to change the default behavior
cluster-wide; it defaults to the old, non-compliant format.
See also:
 - https://tools.ietf.org/html/rfc2616#section-3.11
 - https://tools.ietf.org/html/rfc7232#section-2.3
Closes-Bug: 1099087
Closes-Bug: 1424614
Co-Authored-By: Tim Burke <tim.burke@gmail.com>
Change-Id: I380c6e34949d857158e11eb428b3eda9975d855d
2020年01月27日 12:53:35 -08:00
Tim Burke
51c9b13082 Add unittest2 back to lower-constraints.txt
testtools (required by os-testr) still requires unittest2; until
 * testtools no longer requires unittest2 and
 * we bump up our minimum-supported version of testtools to a version
 that doesn't reference unittest2,
we should continue listing unittest2 in lower-constraints.txt (just in
case they ever have a new release).
Admittedly, that seems unlikely at this point -- unittest2's latest
release was back in 2015.
Change-Id: I09301bf81d68357ec006a21dd37e72c56cefffe3
2020年01月27日 08:47:28 -08:00
Zuul
742835a6ec Merge "New Object Versioning mode" 2020年01月27日 09:16:22 +00:00
Zuul
cbfcf18d48 Merge "container-sync: Sync static links similar to how we sync SLOs" 2020年01月27日 07:24:20 +00:00
Zuul
82b667706d Merge "Store normalized x-delete-at on PUT/POST" 2020年01月26日 19:41:57 +00:00
Clay Gerrard
2759d5d51c New Object Versioning mode
This patch adds a new object versioning mode. This new mode provides
a new set of APIs for users to interact with older versions of an
object. It also changes the naming scheme of older versions and adds
a version-id to each object.
This new mode is not backwards compatible or interchangeable with the
other two modes (i.e., stack and history), especially due to the changes
in the namimg scheme of older versions. This new mode will also serve
as a foundation for adding S3 versioning compatibility in the s3api
middleware.
Note that this does not (yet) support using a versioned container as
a source in container-sync. Container sync should be enhanced to sync
previous versions of objects.
Change-Id: Ic7d39ba425ca324eeb4543a2ce8d03428e2225a1
Co-Authored-By: Clay Gerrard <clay.gerrard@gmail.com>
Co-Authored-By: Tim Burke <tim.burke@gmail.com>
Co-Authored-By: Thiago da Silva <thiagodasilva@gmail.com>
2020年01月24日 17:39:56 -08:00
Thiago da Silva
26ff2eb1cb container-sync: Sync static links similar to how we sync SLOs
This allows static symlinks to be synced before their target. Dynamic
symlinks could already be synced even if target object has not been
synced, but static links previously required that target object existed
before it can be PUT. Now, have container_sync middleware plumb in an
override like it does for SLO.
Change-Id: I3bfc62b77b247003adcee6bd4d374168bfd6707d
2020年01月24日 17:15:57 -08:00
Zuul
9548111e24 Merge "Allow Timestamp comparisons against out-of-range values" 2020年01月24日 23:37:15 +00:00
Zuul
cd40cb3e98 Merge "Allow bulk to fwd some headers at tar extraction" 2020年01月23日 11:03:19 +00:00
Zuul
d3916312d3 Merge "More multi-char-delimiter func test coverage" 2020年01月22日 22:50:04 +00:00
Zuul
fc7ef9b26b Merge "packaging: Build universal wheels" 2020年01月22日 22:18:28 +00:00
Clay Gerrard
2be4716bc9 More multi-char-delimiter func test coverage
Change-Id: I4cad872ef97313ec19a8e4ef042696565a56d4c5
2020年01月22日 12:37:21 -08:00
Tim Burke
cd78ee983d Bump up ceph tests timeout
Looking at the last few hundred runs, we've had ~8% TIMEOUTs, and the
average time is already 21 minutes. Let's give it an extra 10 minutes,
see if the TIMEOUT rate comes down.
Change-Id: Ifd9fbac032825bae1c8f5edd88c5d692a0b2cef1
2020年01月22日 09:42:39 -08:00
Zuul
02aea34c46 Merge "swift-account-audit: work with encryption" 2020年01月22日 16:59:19 +00:00
Zuul
b7c1f8d149 Merge "py3: Fix formpost unicode filename issues" 2020年01月21日 05:21:14 +00:00
Tim Burke
dad8fb7c3c packaging: Build universal wheels
Apparently this had been done for us previously? See also:
http://lists.openstack.org/pipermail/openstack-discuss/2020-January/012097.html
Change-Id: I27288f9e503f26827a8274d46b07c1330a21de10
2020年01月20日 21:17:43 -08:00
Zuul
68924d920c Merge "Have slo tell the object-server that it wants whole manifests" 2020年01月18日 13:31:32 +00:00
Tim Burke
7bba3ad04d Store normalized x-delete-at on PUT/POST
Change-Id: I81e5d49623e884def8b5f6cbbf82f9b0d667d64a
Closes-Bug: 1860149
2020年01月18日 02:52:31 +00:00
Romain LE DISEZ
ff0753fe19 Allow bulk to fwd some headers at tar extraction
Whitelisted headers include X-Delete-At/X-Delete-After and all Object
metadata headers (X-Object-Meta-*)
Closes-Bug: 1857546
Change-Id: If5fb164693e395f89d57899fb8ab355f1e3f817c
2020年01月17日 11:34:39 -08:00
Tim Burke
57ca3570e9 Allow Timestamp comparisons against out-of-range values
Prior to the related change, clients may have written down X-Delete-At headers
that are outside of the Timestamp range, for example.
Change-Id: Ib8ae7ebcbdb32e0aa58446bd1ef949e5e2f63e74
Related-Change: I23666ec8a067d829eaf9bfe54bd086c320b3429e
Related-Bug: 1821204
Partial-Bug: 1860149
2020年01月17日 08:11:34 -08:00
Zuul
e92288bb61 Merge "account-server: Add test for leading delimiter" 2020年01月17日 01:38:06 +00:00
Zuul
7eccca9344 Merge "Early-return on non-Swift get_info requests" 2020年01月17日 00:06:14 +00:00
Tim Burke
0901464513 Clean up container-sync docs
Change-Id: I98ebe15353d675ca00fee387003bf6572ac385e6
2020年01月15日 18:32:19 -08:00
Tim Burke
9483630ae1 py3: Fix formpost unicode filename issues
Previously, we took the native string filename attribute and put it
directly in the (WSGI string) PATH_INFO field. Now, we convert it to
a WSGI string first.
Change-Id: I30e3beb8707b88c36bd3cdc7a0887d069e943ba6
Closes-Bug: #1858259 
2020年01月15日 16:52:37 -08:00
Sean McGinnis
5b26b749b5 Drop use of unittest2
unittest2 was needed for Python version <= 2.6, so it hasn't been needed
for quite some time. See unittest2 note one:
https://docs.python.org/2.7/library/unittest.html
This drops unittest2 in favor of the standard unittest module.
Change-Id: I2e787cfbf1709b7f9c889230a10c03689e032957
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020年01月12日 03:13:41 -06:00
Zuul
a4f1078864 Merge "Allow reconciler to handle reserved names" 2020年01月07日 03:01:36 +00:00
Zuul
e23a3eacb6 Merge "Make FakeSwift query param order agnostic" 2020年01月07日 01:30:33 +00:00
Zuul
e32689a96d Merge "Deprecate per-service auto_create_account_prefix" 2020年01月07日 01:30:20 +00:00
Clay Gerrard
6140190791 Make FakeSwift query param order agnostic
Apparently FakeSwift has always been persnickety about the order of
query params of registered responses and the app making the calls.
Since query params can often be converted to dictionaries the order of
the encoded params should be able to change without effecting the apps
dispatching of registered responses.
Change-Id: Ied68c9334201a7663e9c85f3bdaa5b0643d4b6db
2020年01月06日 16:27:06 -06:00