7a02c218bbfa72671757005aa57fc0e472ef518f
2634 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
Eohyung Lee
|
04037aee5d |
Fixed bug in domain_remap and cname_lookup middleware
If domain_remap and cname_lookup received request which has no host header, then returns 500 error. This fixes that problem. Change-Id: Ibb457e9b4cb21181d8243858c04ce255365690da Fixes: bug #1100632 |
||
|
John Dickinson
|
ee98288345 |
Update auto-generated docs
Removed sidebar with broken (static) links referencing out-of-date docs. Added an external link to the Swift API docs fixes bug #1025099 Change-Id: I7f3106175b84b1063f74aa6c5693ab1e422cdb59 |
||
|
Jenkins
|
d54a5a93dc | Merge "prevent irregular auth_prefix config in tempauth" | ||
|
Kota Tsuyuzaki
|
161aa89bd5 |
prevent irregular auth_prefix config in tempauth
Tempauth handles a authorization request by request path. If a request's path start with auth_prefix, tempauth middleware handles that request to authorization method. Therefore, when configuring auth_prefix to '/', all requests handle to authorization method. This change enables tempauth to prevent invalid auth_prefix config '/' and similar empty auth_prefix in initialization method. Fixes bug #1096538. Change-Id: I20b157e2a0809c17409fc65a8eff0858fe4aff29 |
||
|
Samuel Merritt
|
035e49cf4b |
Fix superfluous GET requests in swift-bench.
If you specified num_gets = 0 for a benchmarking run (say, if you're benchmarking PUT rate), you'd still get each swift-bench-client process doing 1 GET request. Now you don't. This should also fix the case where you've got more objects than swift-bench-client processes, for example when you're uploading a few large objects and then doing lots of parallel GETs of those objects. Now you'll get the number requested, not max(number-requested, number-of-bench-clients). Change-Id: Ied9eb733dd9af51a3c6af8b815ad6cff0ff746b7 |
||
|
Jenkins
|
3814f9fcdd | Merge "Add --run-dir switch to swift-init" | ||
|
Chmouel Boudjnah
|
3282e3885c |
Add --run-dir switch to swift-init
- Add ability to specify an alternative run_dir than the default /var/run/swift. - DocImpact Change-Id: I17677588f2c8da563b7fec2dc4fdc52da87126ed |
||
|
Darrell Bishop
|
8801b74090 |
Make statsd sample rate behave better.
As Dieter pointed out in bug 1090495 (https://bugs.launchpad.net/swift/+bug/1090495), the volume of metrics can vary wildly between StatsD metrics. This patch implements a partial solution by reducing the sample_rate used for known high-volume metrics (operational experience will need to inform this over time) and introducing a new tunable, log_statsd_sample_rate_factor which is multiplied by the sample_rate for every statsd stat. This tunable can be used to reduce StatsD traffic proportionally for all metrics and is intended to replace log_statsd_default_sample_rate, which is left alone for backward-compatibility, should anyone be using it. This patch also includes a drive-by fix for log_udp_port which wasn't being converted to an int (I didn't verify that actually causes trouble in SysLogHandler(), but it's definitely an improvement regardles). Change-Id: Id404636e3629f6431cf1c4e64a143959750a3c23 |
||
|
Jenkins
|
6c5fc3ca00 | Merge "version bump to 1.7.7-dev" | ||
|
John Dickinson
|
633d1aa599 |
version bump to 1.7.7-dev
I expect the next release to actually be 1.8, but to prevent issues if we decide to release 1.7.7, I'm only moving the rev number. Change-Id: Ia9e05c5f036b8fbf67972470f240e84f7595223a |
||
|
John Dickinson
|
d87ce03c3e |
authors and changelog update for swift 1.7.6
Change-Id: Iad00e51fb17c9e829bd5ba7b56a0d24253cfe8b2 |
||
|
Jenkins
|
0fce08a255 | Merge "get swob.Request.blank to parse path" | ||
|
David Goetz
|
54b7594056 |
get swob.Request.blank to parse path
Change-Id: I3327c915b3b868bb1829103adb718632e58b1b4a |
||
|
Jenkins
|
b6d48c62e6 | Merge "Fix HEAD request response when request not given to response." | ||
|
Jenkins
|
4a909cf33b | Merge "swob refactors needed for sos" | ||
|
Jenkins
|
d69509a779 | Merge "Fixed bug in object replicator" | ||
|
Jenkins
|
eff1862b73 | Merge "consistency and grammatical tweaks" | ||
|
David Goetz
|
c8b28ba4f4 |
swob refactors needed for sos
Change-Id: I839c2af9e524f712e6fbeb8bf74d860af1d243e2 |
||
|
Samuel Merritt
|
6ff644b945 |
Allow for multiple X-(Account|Container)-* headers.
When the number of account/container or container/object replicas are different, Swift had a few misbehaviors. This commit fixes them. * On an object PUT/POST/DELETE, if there were 3 object replicas and only 2 container replicas, then only 2 requests would be made to object servers. Now, 3 requests will be made, but the third won't have any X-Container-* headers in it. * On an object PUT/POST/DELETE, if there were 3 object replicas and 4 container replicas, then only 3/4 container servers would receive immediate updates; the fourth would be ignored. Now one of the object servers will receive multiple (comma-separated) values in the X-Container-* headers and it will attempt to contact both of them. One side effect is that multiple async_pendings may be written for updates to the same object. They'll have differing timestamps, though, so all but the newest will be deleted unread. To trigger this behavior, you have to have more container replicas than object replicas, 2 or more of the container servers must be down, and the headers sent to one object server must reference 2 or more down container servers; it's unlikely enough and the consequences are so minor that it didn't seem worth fixing. The situation with account/containers is analogous, only without the async_pendings. Change-Id: I98bc2de93fb6b2346d6de1d764213d7563653e8d |
||
|
Jenkins
|
7e62056fd5 | Merge "Some optimizations for ring rebalancing." | ||
|
Jenkins
|
c9f9ac1648 | Merge "Add container-sync to container-server.conf doc." | ||
|
Jenkins
|
586076fddf | Merge "Make object-auditor to use one logger" | ||
|
Hodong Hwang
|
d46f90e17a |
Make object-auditor to use one logger
This commit makes that AuditorWorker gets a logger from ObjectAuditor class (instead of creating new one) so the auditor uses minimum unix-sockets. Fixes: bug #1089215 Change-Id: Ia47d862cbe7505db821784b01fcce6f22196e79f |
||
|
Darrell Bishop
|
0bba07111f |
Some optimizations for ring rebalancing.
For a part-power 18 ring with a small number of devices (12), this drops "swift-ring-builder ... rebalance" from ~7.2 seconds to ~3.6s on OS X with Python 2.7 (2.7 GHz i7 processor). Under the profiler, that part-power 18 rebalance now spends only slightly more time rebalancing the ring than it does writing out the results. I haven't done more extensive before/after comparison with larger numbers of devices and larger part-power values... Change-Id: I25735bc71da2f11617cc436d4f8e0c4f3f82bfec |
||
|
Chmouel Boudjnah
|
0df6fe817d |
Add container-sync to container-server.conf doc.
- In howto install multi nodes container-sync was not included in the config example. Change-Id: I2682d47c5cae28ff321ba03d70dae2fea00c276f |
||
|
Jenkins
|
d904fd4c0f | Merge "swift-recon: Added oldest and most recent repl" | ||
|
Jenkins
|
34bda97aa0 | Merge "Reject names with NULL characters" | ||
|
gholt
|
95d5cf851b |
Fixed bug in object replicator
If the object replicator couldn't create a device's object directory (due to permissions or whatever) it wouldn't do any work at all. This fixes that. Change-Id: I6a30439d036b29c9cfdb660428d13668e0dc8632 |
||
|
gholt
|
592d895e31 |
Reject names with NULL characters
Unfortunately, SQLite truncates strings with null characters. Additionally, XML pretty much hates them too. Change-Id: Id9a8eaa27b841db6350d6959c202d3e3d6462b35 |
||
|
gholt
|
a88b412e17 |
swift-recon: Added oldest and most recent repl
I've been doing this with cluster-wide log searches for far too long. This adds support for reporting the oldest replication pass completion as well as the most recent. This is quite useful for finding those odd replicators that have hung up for some reason and need intervention. Change-Id: I7fd7260eca162d6b085f3e82aaa3cf90670f2d53 |
||
|
gholt
|
46c5b098f8 |
Fixed version req for netifaces to 0.5
Change-Id: Ic1c67ced0169658c9aa7f78ed09bf24863cc9fb6 |
||
|
Darrell Bishop
|
e2929ec58a |
Fix HEAD request response when request not given to response.
If a middleware (swift3, I'm looking at you), doesn't pass a Request object into the Response constructor, Response._response_iter cannot know to send zero bytes in the body of the HEAD response. This patch fixes this usage of swob by making Response.__call__ helpfully reify self.request from env if it wasn't already set by the Response object's constructor. This fixes a bug in swift3 + swob-enabled-Swift where HEAD requests to swift3 resulted in a response with a body in violation of the relevant RFC and confusing clients. Thanks to kostecky for finding the bug and describing it accurately. Change-Id: I2bdb098052b161e1cddf1e4e482ab4dfafeb18c0 |
||
|
Cory Wright
|
c69e130df5 |
consistency and grammatical tweaks
Change-Id: I0a1dc9e07f246db3e294f5c62f4ffbd3560b0afd |
||
|
Jenkins
|
b8626f9667 | Merge "Allow actual paths to work for swift-get-nodes" | ||
|
David Goetz
|
ded504600f |
Allow actual paths to work for swift-get-nodes
Change-Id: I29f9ab73c8ca2a3c52247fb92ef951dd5b5246cb |
||
|
Jenkins
|
6e9b1a52a5 | Merge "Check whether poll is available or not and let eventlet chose the best hub when it isn't." | ||
|
Flaper Fesp
|
b155da424a |
Check whether poll is available or not and let eventlet chose the best
hub when it isn't. Change-Id: I5fb05a71e8c62d84cee1da9ea05f67ffbad18b9d |
||
|
John Dickinson
|
dc8d0e0692 |
Functional tests use x-auth-token rather than x-storage-token
This change allows other auth systems to test against the functests but not require them to support x-storage-token (which was deprecated before swift was even open-sourced). All other places in the code where x-storage-token is used is only to populate x-auth-token if x-auth-token doesn't already exist. Change-Id: Ie903d0f7135fc643353b74a61c14becf7dfc4d9d |
||
|
Jenkins
|
6b8ae93f2e | Merge "saio truncate instead of dd (for reals)" | ||
|
Jenkins
|
9c80093e08 | Merge "Fix for subtle bug from 5c8f9c52e3f2944f01cea621326532e058a225f7" | ||
|
gholt
|
5f19ccf28f |
Fix for subtle bug from 5c8f9c52e3
Change-Id: If2bd1d4a850936b2e575a96073c116a8b9522602 |
||
|
Jenkins
|
0d6fb2e0c2 | Merge "Move InputProxy to utils" | ||
|
Michael Barton
|
c37954d935 |
saio truncate instead of dd (for reals)
Changing that complex dd to a functionally equivalent truncate that's easier to read and modify. DocImpact Change-Id: I64404318364608e62a1d80f6a0550271eb4cd03a |
||
|
Jenkins
|
c1964e5f6a | Merge "Revert "suggest fallocate instead of dd in saio"" | ||
|
Jenkins
|
032f44859a | Merge "Fixes console logging with non-swift middleware" | ||
|
Michael Barton
|
5d5b262be8 |
Revert "suggest fallocate instead of dd in saio"
Change-Id: I3742c4580d920e09de434e86b75b134c62f1732e |
||
|
Julien Danjou
|
6df28545ff |
Move InputProxy to utils
This class is being used at least by Ceilometer in its Swift middleware, and since it's a general one anyway, it looks good to move it to common.utils. This is a follow-up to Chmouel suggestion in https://review.openstack.org/#/c/18231 Change-Id: I8d0ed8600c4152b91be9a88a3b396c3967d0add2 Signed-off-by: Julien Danjou <julien@danjou.info> |
||
|
Chuck Thier
|
53ed90beef |
Fixes console logging with non-swift middleware
Fixes logging if logging to the console with non-swift middleware (such as keystone) enabled. This also fixes issues with swift in devstack Change-Id: Ib8b691b62b657a6d4ecdb1648d1fc2f3a0479982 |
||
|
Michael Barton
|
e81ca8daf3 |
suggest fallocate instead of dd in saio
Change-Id: I4d5ba8e58216749c2858dc1c0b8225b3619a7287 |
||
|
Dan Prince
|
97f79b9dda |
Convert LICENSE to use unix style line endings.
Ran dos2unix on LICENSE to convert to unit style line endings. This makes building packages which contain the LICENSE file a bit nicer... and matches other LICENSE files under the openstack umbrella which have unix style line endings as well. Change-Id: Id724d1ba402a590725a2d200f5e0599bce696e5a |