master
11127 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
Zuul
|
cffa7dea77 | Merge "CI: Consistently use TOX_CONSTRAINTS_FILE" | ||
|
Zuul
|
9efaae78a5 | Merge "Up-rev hacking" | ||
|
Tim Burke
|
93658f0de6 |
CI: Consistently use TOX_CONSTRAINTS_FILE
The UPPER_CONSTRAINTS_FILE var has been deprecated for years. Related-Change: I3f957187ed4f29fcf88db99cb79fb33b21a8dd8d Change-Id: Id6201036cc619d050f86ae9c9c420388808f8b89 |
||
|
Chinemerem
|
83528de743 |
Make OldestAsyncPendingTracker timestamp float
Previously, the OldestAsyncPendingTracker timestamp was stored as a string. This change updates it to be stored as a float. UpgradeImpact: This will require an additional change to the recon parsers in order to process the timestamp as a float. Change-Id: Iba43783e880e0860357ba8b9f0a11f28abf87555 |
||
|
Tim Burke
|
992d70198c |
Up-rev hacking
Change-Id: I9473fad7c46ac03bbc71328c17e988af9d21386c |
||
|
Zuul
|
b4579b414e | Merge "CI: point antelope job at 2023.1-eom tag" | ||
|
Zuul
|
995f78156a | Merge "infra: Remove 'bandit' tox environment" | ||
|
Tim Burke
|
436808a959 |
infra: Remove 'bandit' tox environment
The expectation is that CI and devs would run these checks as part of the 'pep8' environment. Change-Id: Ib9b2e34d520baee13c4b38bc220ec7b4d2e38433 |
||
|
Zuul
|
abbe02cfea | Merge "reno: Update master for unmaintained/2023.1" | ||
|
Zuul
|
8b3ae36063 | Merge "CI: drop pip --upgrade flag in tox.ini" | ||
|
Tim Burke
|
e5bd48a6a4 |
CI: point antelope job at 2023.1-eom tag
The stable branch is gone now. Change-Id: Ib0a62256584a5c7d458ebe6740f0f477f61dd23a |
||
|
Tim Burke
|
0513b8ceaa |
Bring py3-constraints.txt more in line with global u-c
Purely version bumps, and dropping the swift pin (which was added erroneously anyway). Change-Id: I1cbd26e6a18e01abcfb2f0a28649cfcaa6358252 |
||
|
Tim Burke
|
791d38962b |
Up-rev hacking
Change-Id: I0fe476c56c120f8a6dab6afa2cf03e8278ceefc5 |
||
|
Zuul
|
c2f2521400 | Merge "s3api: add more MPU cross-compat tests" | ||
|
Zuul
|
6e37329bd6 | Merge "Remove duplicate definition of empty string etag" | ||
|
Zuul
|
1d240aa86c | Merge "Rename probe/test_mixed_policy_upload.py to test_mpu.py" | ||
|
Alistair Coles
|
eac4ffd7a9 |
s3api: add more MPU cross-compat tests
Change-Id: Ia03af1680c6230658473c0c8d444efb5bb805f58 |
||
|
Alistair Coles
|
5e800e328e |
Remove duplicate definition of empty string etag
Change-Id: Ib8196fe24f8a999315af469a435bd639378c78a9 |
||
|
Zuul
|
0aebda4786 | Merge "api-ref: Clarify eventual-consistency of DELETEs." | ||
|
Zuul
|
61b2350ead | Merge "tests: Use format=plain instead of format=txt" | ||
|
Tim Burke
|
d6b712dfa2 |
api-ref: Clarify eventual-consistency of DELETEs.
Change-Id: Ib868258b224d97ebd1c14d5b5b98bb0718caaea9 |
||
|
Tim Burke
|
ace2357c62 |
tests: Use format=plain instead of format=txt
Our API ref says "Valid values are json, xml, or plain. The default is plain." There's no reason our tests ought to use an invalid value; it will confuse anyone looking at tests for how to do a thing. Note that tests were passing because invalid values are ignored, so ?format=txt behaves exactly like ?format=plain. Change-Id: I6e119cc9c7297d8aade9736fa1d6f4a105466d77 |
||
|
Tim Burke
|
54ec8a124a |
CI: drop pip --upgrade flag in tox.ini
This has been causing most/all of our tox-based jobs to run with unconstrained dependencies (though test requirements were properly pinned). Change-Id: Icf1b63e39ec321887d9fe6afe7b212c813ad1d1e |
||
|
Zuul
|
2dad4dcbbd | Merge "Update gate jobs as per the 2025.1 cycle testing runtime" | ||
|
Zuul
|
0a6d20e388 | Merge "Object-server: add periodic greenthread yielding during file write" | ||
|
Jianjian Huo
|
ea1d84c1d7 |
Object-server: add periodic greenthread yielding during file write
Currently, when object-server serves PUT request and DiskFile writer write file chunks to disk, there is no explicit eventlet sleep called. When network outpace the slow disk IO, it's possible one large and slow PUT request could cause eventlet hub not to schedule any other green threads for a long period of time. To improve this, this patch enable the configurable yield parameter 'cooperative_period' into object server controller write path. Related-Change: I80b04bad0601b6cd6caef35498f89d4ba70a4fd4 Co-Authored-By: Clay Gerrard <clay.gerrard@gmail.com> Change-Id: I1c0aba9830433f093d024b4c39cd3a3b2f0d69f1 |
||
|
Zuul
|
0d9ea8d9bd | Merge "Add probe test for reconciler with object versioning" | ||
|
Zuul
|
51849df687 | Merge "Remove statds from the logs module" | ||
|
Alistair Coles
|
8699af83c9 |
Remove statds from the logs module
We would like to remove any Statsd related code from logs.py. That requires that SwiftLogAdapter no longer provides a StatsdClient interface by default. However, for backwards compatibility the main utils.get_logger/get_prefixed_logger entrypoints must provide a SwiftLogAdapter that does have a StatdsClient interface. The new utils._patch_statsd_methods helper function is therefore used to retrospectively patch a SwiftLogAdapter instance with the StatsdClient interface when necessary. The _patch_statsd_helper is used in get_logger, and again when we clone a logger in get_prefixed_logger. Co-Authored-By: Shreeya Deshpande <shreeyad@nvidia.com> Change-Id: I44694b92264066ca427bb96456d6f944e09b31c0 |
||
|
Alistair Coles
|
e751ccfb27 |
Add probe test for reconciler with object versioning
Verify that the reconciler is able to move objects to a container that has, or will have, versioning enabled, and versions of the moved object can subsequently be created. Change-Id: I019447614ebadbb9e2cc8a18c0369bc16a89c0d9 |
||
|
Zuul
|
447079399d | Merge "Add error msg validation for BadDigest" | ||
|
ashnair
|
41c614bbb5 |
Add error msg validation for BadDigest
Change-Id: I5c9af73cc66e17dc662d8c4d97cbf71ded1fed6f |
||
|
Clay Gerrard
|
4aadb54025 |
Ensure Content-Length in backend container/account HEAD response
A failing CORS test in the gate discovered that, when running with eventlet==0.38.0, container and account HEAD requests returned Content-Type of application/json to clients regardless of the requested format. This was due to the backend HEAD response no longer having a Content-Length header, causing the listing_formats middleware to not modify the returned Content-Type (see Related-Change). The Related-Change fixed the client facing issue by making listing_formats middleware ensure the correct Content-Type is returned to clients even when Content-Length is absent in the backend response. The Related-Change also ensured that the 204 response to clients always has a Content-Length header. This patch directly fixes the problem of backend account and container server HEADs no longer having 'Content-Length: 0' by adding it explicitly. This violates the RFC prohibition of a 204 response having a Content-Length header [1], but preserves Swift's historic behavior and is consistent with the proxy-server's 204 response to clients. [1] https://httpwg.org/specs/rfc7230.html#header.content-length Related-Change: If724485e1425d1481d10b9255436301e346f07e8 Change-Id: Idacc59c5f43367926eff5221ee7fc417a9bc2d50 |
||
| 1a6958a2ff |
reno: Update master for unmaintained/2023.1
Update the 2023.1 release notes configuration to build from unmaintained/2023.1. Change-Id: I3e0962570145adb672bdba71f6de8f3da034b859 |
|||
|
Clay Gerrard
|
fa889358ac |
Ensure correct content-type in container HEAD response
A failing CORS test in the gate discovered that we were responding application/json to ?format=txt requests (which is maybe not even a valid value for that qs param?), but only when running with eventlet==0.38.0 This avoids the problem of backend container server HEADs no longer having 'Content-Length: 0' by fixing the client HEAD resp headers before we check for chunked-transfer resp. Drive-By: refactor listing_formats to use HeaderKeyDict and always set Content-Length explicitly Co-Authored-By: Alistair Coles <alistairncoles@gmail.com> Co-Authored-By: Matthew Oliver <matt@oliver.net.au> Change-Id: If724485e1425d1481d10b9255436301e346f07e8 |
||
|
Alistair Coles
|
ffbf17e47c |
Fix duplicate prefix in exception logging
This patch fixes a bug in the Related-Change that causes a prefix to be added twice at the start of an 'exception' log message. Previously, PrefixLoggerAdapter.exception would forward to the wrapped LogAdapter.exception, and not call back to PrefixLoggerAdapter.process. The prefix therefore needed to be added in both PrefixLoggerAdapter.exception and PrefixLoggerAdapter.process (for other log level methods). SwiftLogAdapter.exception *does* call back to SwiftLogAdapter.process, and so since the Related-Change it is not necessary to add the prefix in both the SwiftLogAdapter.exception and SwiftLogAdapter.process methods. Related-Change: I8988c0add6bb4a65cc8be38f0bf527f141aac48a Change-Id: Ia6e1f007989b0ef455b8dca8155b386a3fd9e8e1 |
||
|
Alistair Coles
|
66e4887c91 |
Rename probe/test_mixed_policy_upload.py to test_mpu.py
Give this test file a less specific name in anticipation of further mpu-related probe tests being added. Change-Id: Iea01928e1daad25f3425f486b9dda4c6fb58510c |
||
|
Zuul
|
aac4c14574 | Merge "Differentiate unlinks and outdated unlinks" | ||
|
Zuul
|
89815389d5 | Merge "probe tests: Set default timeout for subprocesses" | ||
|
Tim Burke
|
32fbf9eaae |
probe tests: Set default timeout for subprocesses
There's an upstream eventlet bug that seems to cause process hangs during an atexit hook; unfortunately, that means that every time we call "once" in probe tests, we can hang indefinitely waiting for a process that won't terminate. See https://github.com/eventlet/eventlet/issues/989 Now, wait with a timeout; if it pops, kill the offending process and hope for the best. Do this by patching out subprocess.Popen.wait, but only in probe tests -- this ensures that we won't impact any real systems, while also ensuring a broad coverage of probe tests (as opposed to, say, plumbing some new wait_timeout kwarg into all the Manager call sites). Closes-Bug: #2088027 Change-Id: I8983eafbb575d73d1654c354815a7de7ae141873 |
||
|
Zuul
|
71696d3a83 | Merge "Remove PrefixLoggerAdapter and SwiftLoggerAdapter" | ||
|
Shreeya Deshpande
|
f88efdb4df |
Remove PrefixLoggerAdapter and SwiftLoggerAdapter
In order to modernize swift's statsd configuration we're working to separate it from logging. This change is a pre-requisite for the Related-Change in order to simplfy the stdlib base logger instance wrapping in a single extended SwiftLogAdapter (previously LogAdapter) which supports all the features swift's servers/daemons need from our logger instance interface. Related-Change-Id: I44694b92264066ca427bb96456d6f944e09b31c0 Change-Id: I8988c0add6bb4a65cc8be38f0bf527f141aac48a |
||
|
Zuul
|
1d69f04d58 | Merge "probe tests: Run relinker via subprocess" | ||
|
Zuul
|
90f75e33b7 | Merge "reconciler: Record queue-clean-up later than old-policy-clean-up" | ||
|
Tim Burke
|
b262b16d55 |
probe tests: Run relinker via subprocess
Otherwise, test-run state (eventlet.tpool initialization, in particular) can bleed over and cause hangs. Closes-Bug: #2088026 Change-Id: I4f7dd0755b8dc8806d9b9046ac192d94ca705383 |
||
|
Zuul
|
309b906df8 | Merge "Prevent installation with pyeclib 1.6.2 and 1.6.3" | ||
|
Tim Burke
|
3a43242e79 |
reconciler: Record queue-clean-up later than old-policy-clean-up
Previously, queue-clean-up would use the same timestamp/offset as the tombstone written down in the old policy to clean up now-moved data. This could lead to bad behaviors, as the reconciler-written tombstone could itself be enqueued to be reconciled, at the same timestamp. If that happened, replication would never bring the DB replicas to consistency, causing the reconciler to get different answers for whether there was work to do. Now, add an extra offset bump between the tombstone in the old policy and queue-clean-up. Also add an extra offset to the moved data in the new policy, to keep it one ahead of queue-clean-up. New ordering looks like: - data/ts in old policy at t0 (as well as queue entry time to move it) - tombstone in old policy at t0_1 - queue clean-up time at t0_2 - moved data/ts in new policy at t0_3 Closes-Bug: #2028175 Change-Id: Ib0dda0d338f48336d18d3d817a0c5994e201042e |
||
|
Zuul
|
7662cde704 | Merge "Add oldest failed async pending tracker" | ||
|
Tim Burke
|
e954712cef |
Prevent installation with pyeclib 1.6.2 and 1.6.3
Their binary wheels may crash python on older processors. Related-Change: https://review.opendev.org/c/openstack/pyeclib/+/933338 Depends-On: https://review.opendev.org/c/openstack/requirements/+/934074 Change-Id: Ibc5b96421721e8e0a257acd06fdbfa5d82907bea |
||
|
Zuul
|
97c5deae87 | Merge "slo: add more functional tests for copying" |