f5b472cdc7f3f4a64d8cbdc60ce4fa0111622627
Commit Graph

8199 Commits

This Branch
This Branch
All Branches
Author SHA1 Message Date
Kota Tsuyuzaki
f5b472cdc7 Fix wrong tox env name from func-post-ec to func-ec
Change-Id: I789fb2413985942460d3275b479d6410c62c380f
2019年05月04日 07:28:44 +09:00
Zuul
4ee9545805 Merge "py3: Be able to parse non-RFC-compliant request lines" 2019年05月03日 21:08:45 +00:00
Zuul
8585c8742e Merge "Make log format for requests configurable" 2019年05月03日 21:08:43 +00:00
Zuul
ce1ba6a51d Merge "Pass logger instances to AccountBroker/ContainerBroker" 2019年05月03日 10:27:27 +00:00
Gilles Biannic
a4cc353375 Make log format for requests configurable
Add the log_msg_template option in proxy-server.conf and log_format in
a/c/o-server.conf. It is a string parsable by Python's format()
function. Some fields containing user data might be anonymized by using
log_anonymization_method and log_anonymization_salt.
Change-Id: I29e30ef45fe3f8a026e7897127ffae08a6a80cd9
2019年05月02日 17:43:25 -06:00
Tim Burke
93b49c5e48 py3: Be able to parse non-RFC-compliant request lines
There's a bug in CPython [1] that causes servers to mis-parse request
lines that include the bytes \x85 or \xa0. Naturally, we have
functional tests that (with high probability) will send such request
lines. There's a fix proposed, but the earliest it's likely to land
would be for 3.8, and we need to be able to target an earlier Python.
So, intercept the request line immediately before parsing and re-write
it to be RFC-compliant. Note that this is done for Python 2 as well,
though there should be no change in the request environment that
eventlet eventually hands to us.
[1] https://bugs.python.org/issue33973
Change-Id: Ie648f5c04d4415f3b620fb196fa567ce7575d522
2019年05月02日 14:44:18 -07:00
Takashi Kajinami
4b2ac606b1 Pass logger instances to AccountBroker/ContainerBroker
There are some processes which don't pass their logger instances
when creating AccountBrokers/ContainerBrokers, which causes some
error messages with a different setting from the other logs
generated by the processes.
This patch makes them pass logger instances, to make sure they
generate all logs according to their log settings.
Change-Id: I914c3a2811e1a2b7f19ad2bc9b3d042fcba63820
2019年05月03日 01:15:20 +09:00
Zuul
f55167a735 Merge "Increase node_timeout in gate" 2019年04月30日 22:12:01 +00:00
Clay Gerrard
58352b285d s3api multi upload test clean up
Add a test assertion for invalid ETag of MPU manifest and make some
global constants more obvious.
Change-Id: I830c0d2e473d1740f9138ebc6efd64a39d85d1dc
Related-Change-Id: I7df13e670f702a2956a9c8057fcb971f4bfb7319
2019年04月29日 14:22:36 -05:00
Tim Burke
c51db382cb s3api: Block ETag header from CompleteMultipartUpload requests
Change-Id: I7df13e670f702a2956a9c8057fcb971f4bfb7319
Closes-Bug: 1810397
2019年04月29日 14:01:06 -05:00
ZhongShengping
32bf43990c Replace git.openstack.org URLs with opendev.org URLs
Thorough replacement of git.openstack.org URLs with their opendev.org
counterparts.
Change-Id: I5e77307de6a484fd69b2a5863423ceb357e8601f
2019年04月24日 09:56:54 +08:00
OpenDev Sysadmins
89eced960c OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:
http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html
Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019年04月19日 19:28:47 +00:00
Zuul
3be4d2f64b Merge "Clean up dlo unit tests" 2019年04月18日 00:37:36 +00:00
Zuul
1a1b44df6f Merge "py3: port dlo" 2019年04月18日 00:37:34 +00:00
Zuul
5e6b7f32ac Merge "Move from py35 to py37 for gating py3 jobs" 2019年04月17日 20:25:42 +00:00
Tim Burke
b6ebabee78 Clean up dlo unit tests
We don't actually need so many py2/py3 branches, and once we
clean those up, there's hardly any reason to import six.
Change-Id: Ia3b4f02e7eb99ad1a76aa35c39dc198528fd39ad
2019年04月17日 09:15:56 -07:00
Pete Zaitcev
893acffbc0 py3: port dlo
Change-Id: I7236ddea0acde93d0789ad8affa76df0097a86aa
2019年04月16日 22:34:58 -05:00
Tim Burke
7cb276da42 Move from py35 to py37 for gating py3 jobs
Looking at https://governance.openstack.org/tc/reference/runtimes/train.html
OpenStack is no longer targetting Python 3.5, so it doesn't really make sense
to gate on it. Move to Python 3.7, just to make it so we can go longer before
having to do this shuffle again.
Presumably, once we actually declare support for Python 3.6, we should
make that job voting, too? We've had enough gate flaky-ness lately that
I'm not keen on it.
Change-Id: I9c9e5df76a6592ab9c512b7c1ba807f9a0053059
2019年04月16日 13:50:29 -07:00
zhufl
65d3cb75f8 Use assertIn to check whether substring is in str
This is to use assertIn to check whether substring is in str,
go get clearer failure message.
Change-Id: I40aff29454c423389755a5330751d2f69a227a05
2019年04月16日 08:56:36 +08:00
Zuul
5090a15f52 Merge "Make staticweb return URL-encoded Location headers" 2019年04月13日 02:47:42 +00:00
Zuul
d7ef9f8f80 Merge "Add tests for unexpected names in part dir" 2019年04月13日 00:43:41 +00:00
Tim Burke
e5ff405ec9 Make staticweb return URL-encoded Location headers
Also, enhance tests to verify proper encoding in generated responses.
Change-Id: Ib696b1c3a34722f3a6de010973b90ef8b1917012
Partial-Bug: 1774238
2019年04月12日 12:29:00 -07:00
Zuul
b27026f6c7 Merge "py3: port staticweb middleware" 2019年04月11日 18:33:09 +00:00
Zuul
f21fe6f479 Merge "Remove our urlparse wrapper" 2019年04月11日 08:16:16 +00:00
Tim Burke
049e56a5d0 Remove our urlparse wrapper
It has not been necessary since we dropped support for Python 2.6.
See https://github.com/python/cpython/commit/8c6d9d7 and
https://bugs.python.org/issue2987.
Be sure to keep a `urlparse` name in utils, though; swauth (at least)
still expects there to be a swift.common.utils.urlparse.
Change-Id: If2502868f251b8a83aa929ee22b10046e708d111
2019年04月10日 12:39:09 -07:00
Clay Gerrard
5b40f69ede Add tests for unexpected names in part dir
An earlier revision of the related change had a bug that this test would
have discovered.
Related-Change-Id: I85dcaf65b9f19ac4659fa5937f9b0b0e804fc54e
Change-Id: Iedd85ec65a11de189ce73e650d674aee0dc7e402
2019年04月10日 09:13:13 -05:00
Matthew Oliver
b86bc51607 py3: port staticweb middleware
This patch is porting the staticweb middleware to py3.
Change-Id: I5d9a13baecedd13d2b7a8ae3dd639eaff0894441
2019年04月10日 17:08:21 +10:00
Zuul
48a2e5c311 Merge "Change partition name from string to integer" 2019年04月09日 21:20:50 +00:00
Zuul
4f45f28ea5 Merge "Update openstack repo for libec install" 2019年04月09日 17:29:22 +00:00
Zuul
880e4e4a09 Merge "py3: test/unit/common/middleware/s3api/test_s3token.py" 2019年04月09日 01:15:43 +00:00
Thiago da Silva
621e924883 Update openstack repo for libec install
Update to rocky release
Change-Id: Id35a41d689a24bf68d17647879780f5daaecdf37
2019年04月08日 16:49:29 -04:00
Joe Yang
08d59ebcd4 Change partition name from string to integer
Object-replicator let user to input target partition numbers and
run the replicator job, and partition input will be stored as
integer list. But in build_replication_jobs method, it use
os.listdir method to retreve partitions in string list, so it is
failed to compare with target partition numbers.
Change-Id: I85dcaf65b9f19ac4659fa5937f9b0b0e804fc54e
Closes-Bug: #1822731 
2019年04月08日 09:44:48 +08:00
Zuul
0df50b5124 Merge "Clean up more things before running unit tests" 2019年04月05日 04:13:40 +00:00
Zuul
05a6f6aad7 Merge "Make symlink work with Unicode account names" 2019年04月05日 03:41:23 +00:00
Tim Burke
e5e22ebeba Make symlink work with Unicode account names
Also, ensure that the stored symlink headers really *are* url-encoded as
we've been assuming.
Change-Id: I1f300d69bec43f0deb430294da05a4ec04308040
Related-Bug: 1774238
Closes-Bug: #1821240 
2019年04月04日 09:58:18 -05:00
Zuul
ef7a3b4240 Merge "s3token: Add an underscore to the end of reseller_prefix if not present" 2019年04月04日 09:22:44 +00:00
Zuul
1214bb83cc Merge "api-ref: add link to SLO docs from multipart-manifest=put param" 2019年04月04日 01:33:49 +00:00
Pete Zaitcev
52bc11f097 Use labels to mount filesystems in the guide
It was a recommended practice for years to get away from straight
names in /dev, like /dev/sda1, when mounting filesystems. The
man page for mount(8) says:
 The device name of disk partitions are unstable; hardware
 reconfiguration, adding or removing a device can cause change
 in names. This is reason why it's strongly recommended to use
 filesystem or partition identificators like UUID or LABEL.
Nonetheless, novice operators sometimes follow our deployment
guide to the letter and then get into trouble when device names
shift from under their deployments. This patch fixes the problem
without bloating up the guide with general explanations.
Change-Id: I5faae158b62e0395d6e774cd67bd868c785c2186
2019年04月02日 22:45:27 -05:00
Tim Burke
0294836d9b py3: test/unit/common/middleware/s3api/test_s3token.py
Change-Id: Ibbff151703395d517452c3d6927652506a9eab66
2019年04月02日 17:47:31 -07:00
Zuul
e611f9e481 Merge "add more detail to s3api test failure" 2019年04月03日 00:16:55 +00:00
Tim Burke
adc826f376 Clean up more things before running unit tests
Apparently some versions of py3 will drop symlinks in the venv.
Change-Id: I77c52b6ad776ab75c4f9713290cc42a1fcb6e0f7
2019年04月02日 16:48:29 -07:00
Zuul
934074856c Merge "s3api: Fix get_container_info missing some sysmeta info." 2019年04月02日 20:15:34 +00:00
Zuul
0169a0c8a3 Merge "s3api: fix partition between S3 and Swift headers" 2019年04月02日 20:15:32 +00:00
Zuul
161366bd0f Merge "Run docs tox env under py3" 2019年04月02日 19:24:37 +00:00
Clay Gerrard
9d9f8b0ff2 add more detail to s3api test failure
Change-Id: I89d19c299cf67c459ee893cde7ed6f6716c04f9b
2019年04月02日 08:24:33 -05:00
Zuul
045ad1aae1 Merge "Remove "gross hack" for py3pep8 env; run releasenotes under py3" 2019年04月02日 08:15:46 +00:00
Zuul
20f53a3df7 Merge "Make reconciler test more stable in the gate" 2019年03月30日 01:26:39 +00:00
Tim Burke
e3e79a6e48 Remove "gross hack" for py3pep8 env; run releasenotes under py3
Change-Id: Ib853f79bc062ec550627342d0fc5b2b92029f25c
2019年03月29日 17:21:45 -07:00
Tim Burke
6c93c57685 Run docs tox env under py3
...and fix this one warning-treated-as-error that crept in since
https://github.com/openstack/swift/commit/d185b60
Change-Id: Id46ee3ab23e2703170191528427aaa2788aba1ee
2019年03月29日 16:16:53 -07:00
Tim Burke
ffe51501c2 api-ref: add link to SLO docs from multipart-manifest=put param
Drive-by: run api-ref tox env under py3.
Change-Id: Iebce47eabcb3b198d4aa7c1b8cfaf8f53300f7f9
2019年03月29日 16:07:59 -07:00