7a02c218bbfa72671757005aa57fc0e472ef518f
Commit Graph

2634 Commits

This Branch
This Branch
All Branches
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 
2013年01月23日 09:36:37 +09:00
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
2013年01月22日 15:24:06 -08:00
Jenkins
d54a5a93dc Merge "prevent irregular auth_prefix config in tempauth" 2013年01月22日 19:08:24 +00:00
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
2013年01月21日 20:50:46 -08:00
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
2013年01月21日 15:38:31 -08:00
Jenkins
3814f9fcdd Merge "Add --run-dir switch to swift-init" 2013年01月21日 19:10:13 +00:00
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
2013年01月21日 18:12:17 +01:00
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
2013年01月19日 15:25:27 -08:00
Jenkins
6c5fc3ca00 Merge "version bump to 1.7.7-dev" 2013年01月18日 17:20:30 +00:00
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
2013年01月18日 08:47:16 -08:00
John Dickinson
d87ce03c3e authors and changelog update for swift 1.7.6
Change-Id: Iad00e51fb17c9e829bd5ba7b56a0d24253cfe8b2
2013年01月18日 08:42:47 -08:00
Jenkins
0fce08a255 Merge "get swob.Request.blank to parse path" 2013年01月16日 20:44:36 +00:00
David Goetz
54b7594056 get swob.Request.blank to parse path
Change-Id: I3327c915b3b868bb1829103adb718632e58b1b4a
2013年01月16日 10:00:18 -08:00
Jenkins
b6d48c62e6 Merge "Fix HEAD request response when request not given to response." 2013年01月16日 00:04:41 +00:00
Jenkins
4a909cf33b Merge "swob refactors needed for sos" 2013年01月15日 19:14:08 +00:00
Jenkins
d69509a779 Merge "Fixed bug in object replicator" 2013年01月14日 23:58:10 +00:00
Jenkins
eff1862b73 Merge "consistency and grammatical tweaks" 2013年01月14日 23:02:29 +00:00
David Goetz
c8b28ba4f4 swob refactors needed for sos
Change-Id: I839c2af9e524f712e6fbeb8bf74d860af1d243e2
2013年01月14日 13:57:16 -08:00
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
2013年01月14日 12:38:46 -08:00
Jenkins
7e62056fd5 Merge "Some optimizations for ring rebalancing." 2013年01月14日 19:42:21 +00:00
Jenkins
c9f9ac1648 Merge "Add container-sync to container-server.conf doc." 2013年01月14日 19:30:56 +00:00
Jenkins
586076fddf Merge "Make object-auditor to use one logger" 2013年01月14日 18:26:11 +00:00
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
2013年01月14日 18:38:49 +09:00
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
2013年01月13日 23:34:20 -08:00
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
2013年01月12日 23:37:25 +01:00
Jenkins
d904fd4c0f Merge "swift-recon: Added oldest and most recent repl" 2013年01月12日 21:05:59 +00:00
Jenkins
34bda97aa0 Merge "Reject names with NULL characters" 2013年01月12日 20:40:22 +00:00
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
2013年01月12日 07:25:15 +00:00
gholt
592d895e31 Reject names with NULL characters
Unfortunately, SQLite truncates strings with null characters.
Additionally, XML pretty much hates them too.
Change-Id: Id9a8eaa27b841db6350d6959c202d3e3d6462b35
2013年01月12日 06:54:17 +00:00
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
2013年01月12日 05:49:14 +00:00
gholt
46c5b098f8 Fixed version req for netifaces to 0.5
Change-Id: Ic1c67ced0169658c9aa7f78ed09bf24863cc9fb6
2013年01月10日 23:07:02 +00:00
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
2013年01月10日 13:15:31 -08:00
Cory Wright
c69e130df5 consistency and grammatical tweaks
Change-Id: I0a1dc9e07f246db3e294f5c62f4ffbd3560b0afd
2013年01月09日 09:58:36 -08:00
Jenkins
b8626f9667 Merge "Allow actual paths to work for swift-get-nodes" 2013年01月08日 05:15:21 +00:00
David Goetz
ded504600f Allow actual paths to work for swift-get-nodes
Change-Id: I29f9ab73c8ca2a3c52247fb92ef951dd5b5246cb
2013年01月04日 13:48:15 -08:00
Jenkins
6e9b1a52a5 Merge "Check whether poll is available or not and let eventlet chose the best hub when it isn't." 2013年01月04日 21:15:36 +00:00
Flaper Fesp
b155da424a Check whether poll is available or not and let eventlet chose the best
hub when it isn't.
Change-Id: I5fb05a71e8c62d84cee1da9ea05f67ffbad18b9d
2013年01月03日 18:41:02 +01:00
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
2013年01月03日 08:59:46 -08:00
Jenkins
6b8ae93f2e Merge "saio truncate instead of dd (for reals)" 2012年12月21日 22:16:43 +00:00
Jenkins
9c80093e08 Merge "Fix for subtle bug from 5c8f9c52e3f2944f01cea621326532e058a225f7" 2012年12月21日 22:16:11 +00:00
gholt
5f19ccf28f Fix for subtle bug from 5c8f9c52e3
Change-Id: If2bd1d4a850936b2e575a96073c116a8b9522602
2012年12月21日 19:40:49 +00:00
Jenkins
0d6fb2e0c2 Merge "Move InputProxy to utils" 2012年12月21日 16:29:36 +00:00
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
2012年12月20日 20:12:50 -08:00
Jenkins
c1964e5f6a Merge "Revert "suggest fallocate instead of dd in saio"" 2012年12月20日 23:41:15 +00:00
Jenkins
032f44859a Merge "Fixes console logging with non-swift middleware" 2012年12月20日 21:40:03 +00:00
Michael Barton
5d5b262be8 Revert "suggest fallocate instead of dd in saio"
Change-Id: I3742c4580d920e09de434e86b75b134c62f1732e
2012年12月20日 13:35:45 -08:00
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>
2012年12月20日 15:46:28 +01:00
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
2012年12月19日 17:54:06 -06:00
Michael Barton
e81ca8daf3 suggest fallocate instead of dd in saio
Change-Id: I4d5ba8e58216749c2858dc1c0b8225b3619a7287
2012年12月19日 14:10:07 -08:00
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
2012年12月19日 12:48:27 -05:00