f2295a688cd6e60f016ca6035bb2358e863dc0d9
Commit Graph

7540 Commits

This Branch
This Branch
All Branches
Author SHA1 Message Date
gaofei
f2295a688c Fix typo in sharding docs
This patch removes an additional 'and' added to a sentence.
Change-Id: I6ab47637ef2d2f97f35188a84e741274c2b504e8
2018年06月13日 04:44:44 +00:00
Zuul
eb9a21b22b Merge "Allow domain remap storage_domain to be configured for func tests" 2018年06月12日 21:12:54 +00:00
Zuul
8faa26d203 Merge "Rearrange some error handling to reduce indent" 2018年06月12日 11:28:45 +00:00
Tim Burke
fcd7a05e8c Fix up insecure behavior for functional tests
At some point, we should probably plumb in a ca_cert option or something.
Change-Id: I3b719be3e2ae5620ad84bd275516f6c8843ceaa4
2018年06月11日 11:58:26 -07:00
Tim Burke
0318e7c874 Rearrange some error handling to reduce indent
Change-Id: Ife00798a450828c7b640142def8929a38e23d5ad
Related-Change: Icb88902f0a89b8d980c860be032d5e822845d03a
2018年06月11日 10:44:45 -07:00
Zuul
c51e1c6a9c Merge "Fix typos replace a OpenStack bucket with an OpenStack bucket" 2018年06月11日 12:41:41 +00:00
baiwenteng
e726473e26 Fix typos
replace a OpenStack bucket with an OpenStack bucket
Change-Id: I4ada68720dcf23fb9b94c922ddb3eefd42aa80a7
2018年06月11日 18:39:48 +08:00
baiwenteng
284da567cb Fix grammar errors
replace a object with an object
Change-Id: Ied9cd7c7d0efaf455370e184abd31734574bff07
2018年06月11日 17:00:39 +08:00
Alistair Coles
8b44c9df29 Allow domain remap storage_domain to be configured for func tests
Previously some tests in /test/functional/test_staticweb.py assumed
that domain_remap middleware was configured with the default
storage_domain 'example.com'. As a result those tests would fail if
run against a cluster with domain_remap middleware installed but not
having an 'example.com' storage_domain.
This patch allows a storage_domain to be configured in the test.conf
file so that the tests may be successfully run against any cluster. If
the option is not set then the tests will be skipped.
To ensure that the in process test job func-domain-remap-staticweb
still runs all the tests in test_staticweb.py, its config loader is
modified to add the required storage_domain option to the test config
with the same value used by the domain_remap middleware.
Related-Change: I6bc70039c1b99b8a5bf5a30e9c6877d4f0aa638d
Co-Authored-By: Tim Burke <tim.burke@gmail.com>
Change-Id: Ifab84fc3ef66b9790e96ebb8e5c8061a12636045
2018年06月07日 11:59:08 +01:00
Zuul
c01c43d982 Merge "Adds read_only middleware" 2018年06月07日 06:49:26 +00:00
Zuul
720aa6961a Merge "Update SERVER_ADDR/SERVER_PORT from PROXY protocol" 2018年06月06日 08:48:38 +00:00
Zuul
ba5c13e9dd Merge "Add assertion to test_consolidate_hashes_raises_exception" 2018年06月05日 18:03:48 +00:00
Zuul
3e9fdfceb4 Merge "Refactor object updater's async-pending finder" 2018年06月05日 12:14:44 +00:00
Zuul
46443b7fbf Merge "Make final stats dump after reconstructor runs once" 2018年06月05日 10:15:59 +00:00
Zuul
aee13b0e40 Merge "copy: Stop hanging per-request data on middleware instance" 2018年06月05日 05:38:36 +00:00
Zuul
ec066392b5 Merge "Make If-None-Match:* work properly with 0-byte PUTs" 2018年06月05日 02:45:06 +00:00
Zuul
8896fbccbc Merge "Remove redundant elif in tempauth" 2018年06月05日 02:08:49 +00:00
Tim Burke
9ef2a82816 copy: Stop hanging per-request data on middleware instance
Change-Id: Ib7b208669e900b84a7759819ef76b7b5b7ce8c9a
Closes-Bug: 1774719
2018年06月04日 17:54:58 -07:00
Samuel Merritt
1424ff71f9 Refactor object updater's async-pending finder
Pulled the FS walking out into its own function so that finding
async_pendings is in one place and processing them is in another. This
should make it easier to add greenthread-based concurrency later.
Also refactored rate limiting to use utils.RateLimitedIterator instead
of calling ratelimit_sleep ourselves. The functionality's the same,
but the interface is easier.
Change-Id: I02f9e3201e9434080c6fb87ac5e249d8b327a231
2018年06月04日 16:08:34 -07:00
Samuel Merritt
ecf47553b5 Make final stats dump after reconstructor runs once
When running in multiprocess mode, the object reconstructor would
periodically aggregate its workers' recon data into a single recon
measurement. However, at the end of the run, all that was left in
recon was the last periodic measurement; any work that took place
after that point was not recored in the aggregate. However, it was
recorded in the per-disk stats that the worker processes emitted.
This commit adds a final recon aggregation after the worker processes
have finished.
Change-Id: Ia6a3a931e9e7a23824765b2ab111a5492e509be8
2018年06月04日 15:24:45 -07:00
Zuul
84f2bfcb2e Merge "Make multiprocess reconstructor's logs more readable." 2018年06月04日 16:19:24 +00:00
Zuul
2d3ceeda28 Merge "Log updater stats once per pass, not per policy" 2018年06月04日 15:40:25 +00:00
Zuul
eee3e08f25 Merge "Improve user logging" 2018年06月04日 12:09:55 +00:00
Alistair Coles
76344e5150 Remove redundant elif in tempauth
Related-Change: I12eb55a42e5a8dc2dff5a4687f7fe31452f9508e
Change-Id: I0a7479e56b91a8e69bffd9c7df1c26b839ab13a2
2018年06月04日 11:08:17 +01:00
Tim Burke
2044673174 Improve user logging
The first item in groups is the account, the second item is the account_user.
The second one is *way* more useful for debugging.
Change-Id: I12eb55a42e5a8dc2dff5a4687f7fe31452f9508e
2018年06月01日 13:41:21 -07:00
John Dickinson
5acefa3dc9 made changelog section breaks more consistent
Change-Id: I791b03a7cabd63bf363e17f7ac603744d8dbf130
2018年06月01日 10:01:10 -07:00
Zuul
7f12d608be Merge "Verify diff stat is unchanged when syncing only shard ranges" 2018年06月01日 08:56:05 +00:00
Zuul
ad98818043 Merge "Fix marker and end_marker descriptions in API ref" 2018年06月01日 08:46:50 +00:00
Alistair Coles
e748ef4637 Verify diff stat is unchanged when syncing only shard ranges
Add test assertions to verify that the related change fixes usync diff
stats being erroneously incremented as a side-effect of syncing shard
ranges when the object tables are in sync.
Related-Change: I2630bb127841837b35e7786b59895fa50090719b
Change-Id: Idffe93c63d16e74ea9ca42b33a636c0c0d9e35b5
2018年06月01日 08:49:52 +01:00
Zuul
8cf85756b5 Merge "display swift services in apache2" 2018年06月01日 02:54:45 +00:00
Zuul
02a2788438 Merge "Fix suffix-byte-range responses for zero-byte EC objects." 2018年06月01日 00:07:56 +00:00
Zuul
7f970597ec Merge "Use X-Timestamp when checking object expiration" 2018年05月31日 23:55:59 +00:00
Zuul
78126b2555 Merge "Remove some Python 2.6 compatibility code in ring" 2018年05月31日 23:55:57 +00:00
Zuul
4790ac61e6 Merge "Add detail to container server GET docstring" 2018年05月31日 23:45:23 +00:00
Alistair Coles
bb9e427262 Add detail to container server GET docstring
The container server GET method became more complex with the
introduction of shard ranges [1]. This patch adds some commentary to
the docstring. The additional docstring is not intended to be
exhaustive, particularly where it would duplicate the API docs.
[1] Related-Change: I029782ae348f38c5fb76d2759609f67a06c883ef
Change-Id: Id661f5dd67768e1698901ca06e33900291e80964
2018年05月31日 17:43:14 +01:00
Zuul
b709d4c785 Merge "Stop overriding _in_sync in container replicator" 2018年05月31日 14:05:02 +00:00
Alistair Coles
7d7601777f Fix marker and end_marker descriptions in API ref
Make the descriptions generic since they are used in both account and
container API specs.
Change-Id: Id3f8d87da00e6c57a3f4a41471ac64ada71f49ee
2018年05月31日 13:26:28 +01:00
Zuul
4a6508cf08 Merge "removed specific reference to two core reviewers" 2018年05月31日 02:32:19 +00:00
Zuul
9363a90fdb Merge "Added PyPI validation check for the readme." 2018年05月31日 01:22:26 +00:00
John Dickinson
076f20bfc3 removed specific reference to two core reviewers
Change-Id: Id9dbf27e93bd9a4a38a1547953be0af0bf0c19c2
2018年05月30日 16:14:03 -07:00
Samuel Merritt
47aff724bb Log updater stats once per pass, not per policy
The object updater emits a log line saying "Object update sweep
completed on <disk> in <time>: <lots-of-stats>" after finishing each
storage policy's async pendings. That's not right; an update sweep is
completed on a device when you've looked at all the async pendings on
the device.
This commit moves the "sweep completed" message so it's once per
device, not per policy.
Change-Id: Ibb5f02a18ac431da230afe30c556a756f60d1680
2018年05月30日 14:35:21 -07:00
Zuul
56aeb20f98 Merge "container-updater: log LockTimeout exceptions at INFO, not ERROR" 2018年05月30日 18:14:54 +00:00
John Dickinson
fb3b43f713 Added PyPI validation check for the readme.
See https://review.openstack.org/#/c/571007/ and
https://review.openstack.org/#/c/570999/ for context.
Change-Id: Ib6045de3cb9097ed7e6d48646109f35612cbbc74
2018年05月30日 07:55:42 -07:00
Zuul
c03701d7b7 Merge "Remove unhelpful log message in copy middleware" 2018年05月30日 05:19:03 +00:00
Zuul
a15f55b1c9 Merge "Catch and log errors from process_container, then keep updating" 2018年05月30日 05:00:42 +00:00
Greg Lange
5d601b78f3 Adds read_only middleware
This patch adds a read_only middleware to swift. It gives the ability
to make an entire cluster or individual accounts read only.
When a cluster or an account is in read only mode, requests that would
result in writes to the cluser are not allowed.
DocImpact
Change-Id: I7e0743aecd60b171bbcefcc8b6e1f3fd4cef2478
2018年05月30日 03:26:36 +00:00
Zuul
f270466de3 Merge "authors/changelog update for 2.18.0 release" 2.18.0 2018年05月30日 02:43:04 +00:00
Zuul
8da8df3279 Merge "Add s3api headers to allowed_headers by default" 2018年05月30日 02:03:14 +00:00
Samuel Merritt
a954f59f4c container-updater: log LockTimeout exceptions at INFO, not ERROR
Lock timeouts happen, especially on very busy containers. It's not
worth a stack trace, and it's not an error. Now we still log the
lock timeout, but at INFO level and without a stack trace.
Change-Id: Ia202c876fb726f9ae6040d875a83105dd975539b
2018年05月29日 17:38:19 -07:00
Samuel Merritt
553bef0d1d Remove unhelpful log message in copy middleware
We probably don't need an extra INFO-level message every time a user
makes a PUT request with X-Copy-From set. It's still in the proxy's
access logs.
Change-Id: I32ce8ff16cb296dd5acef07202a59bc5125111c1
2018年05月29日 16:59:14 -07:00