ba5a0b0fe15fe129ed6df8cca2c2baac0a31bdde
Commit Graph

2506 Commits

This Branch
This Branch
All Branches
Author SHA1 Message Date
Jenkins
ba5a0b0fe1 Merge "Change logger name to module itself instead of root" 2013年04月02日 14:45:12 +00:00
Jenkins
01a5a47610 Merge "Dynamic Large Object sleeps too much" 2013年04月02日 07:27:10 +00:00
David Goetz
7c0b9a7424 Dynamic Large Object sleeps too much
DLO is supposed to sleep 1 second per segment after 10 (default) initial
segments are loaded to prevent abuse of the system. Currently, if the user
did a range request to the 11th segment the 1 sec delay would start immediately
on the 11th segment because the skipped segments were counted as initial
segments. This path fixes that.
Change-Id: I53bbc24af54921ddc04d9cb3b704366b51b3f740
2013年04月01日 10:19:35 -07:00
Jenkins
b524a90bd9 Merge "fixes some problems pyflakes complains about" 2013年03月29日 10:12:10 +00:00
John Dickinson
602bf524b8 updated AUTHORS and CHANGELOG
These updates are to reflect the changes that have been
backported into the 1.8.0 release candidate.
Change-Id: I9b2abb9809fa6715a427dc0dbe0474aba140a596
2013年03月28日 21:01:49 -07:00
Greg Lange
7920cbd80a fixes some problems pyflakes complains about
Change-Id: I1eb16fa595b0b1d97ae14279b8aa25bd2740f511
2013年03月28日 18:49:28 +00:00
Greg Lange
44f00a23c1 fixed some minor things in tests that pyflakes complained about
Change-Id: Ifeab56a964630bcf941e932fcbe39e6572e62975
2013年03月26日 20:42:26 +00:00
David Goetz
d2d9a15ddf Fixing SLO range requests
Change-Id: I355e99c971cfe8f7f8dedcd8f9f08c97079863cc
2013年03月26日 09:40:03 -07:00
Leah Klearman
60489cdedd additional unit test coverage for container/server.py
Change-Id: Id510cceb88f062f921450a5d25d7c97b7ca5943b
2013年03月22日 19:49:47 -07:00
David Hadas
a979c8007b Add support for Hash Prefix
A new configuration parameter is added to /etc/swift/swift.conf
[swift-hash]
swift_hash_path_prefix = 'random unique string'
New installations are advised to set this parameter to a random secret,
which would not be disclosed ouside the organization.
The same secret needs to be used by all swift servers of the same cluster.
Existing installations should set this parameter to an empty string
(the default)
DocImpact
Fixes: Bug #1157454
Change-Id: I63b10d0b7d6dd3f74e0f10bb41b5f240fa03578a
2013年03月22日 19:41:55 +02:00
Jenkins
37e96663ec Merge "Fix for unicode issues in staticweb" 2013年03月21日 22:48:30 +00:00
Jenkins
1eb08bfd29 Merge "Fix bugs in bulk and slo and small doc change." 2013年03月21日 18:52:59 +00:00
Jenkins
b5b2eaea13 Merge "instruction command was not documented in right format." 2013年03月21日 17:46:41 +00:00
David Goetz
92e877ae51 Fix bugs in bulk and slo and small doc change.
Added 411 responses in bulk and slo when needed.
Make X-Static-Large-Object an illegal header with slo installed- somehow
that got lost with some refactor I did.
Change-Id: I986c1656658f874172860469624118cc63bff9bc
2013年03月21日 09:56:54 -07:00
tong li
c1dfe891e7 instruction command was not documented in right format.
Instructions for a Multiple Server Swift Installation (Ubuntu) doc
for creating /var/run/swift and changing owner command were not
using the right format. Missing two colons.
Change-Id: Ie23007a0da498373fbfb137c7edb3d80813c6ba5
Fixes: bug #1158310 
2013年03月21日 09:45:13 -04:00
Donagh McCabe
7df4323745 Fix for attempted COPY of objects gt MAX_FILE_SIZE
If X-Copy-From is a manifest object, it can be bigger than MAX_FILE_SIZE.
Currently this fails with 503. It should be 413.
Bug #1158279
Change-Id: I7ec16088046c84e42d5be9c865e1338eb07845b6
2013年03月21日 13:05:31 +00:00
Eohyung Lee
05c8d61aeb Fix for unicode issues in staticweb
When prefix or subdir is unicode, it fails.
Fixes: bug #1158092
Change-Id: I966a7a198a5ca5ea152872c94240e8c2ebe57d36
2013年03月21日 11:35:11 +09:00
Jenkins
3cf99ecc33 Merge "Fix misspelled variable." 2013年03月21日 02:19:56 +00:00
Samuel Merritt
70aa7f9053 Fix misspelled variable.
Change-Id: I243de23d5acee135113dc81fca6244d651a2d9a8
2013年03月20日 16:56:52 -07:00
Jenkins
18c03d9aa7 Merge "increase unit test coverage on account server" 2013年03月20日 18:39:20 +00:00
Jenkins
fc27698fd4 Merge "fix stupid bug with bulk delete max items" 2013年03月20日 16:42:13 +00:00
David Goetz
1b150749f7 fix stupid bug with bulk delete max items
Change-Id: I52160b5e7480112d536c45dd4b0b10a808adcdcd
2013年03月19日 11:48:14 -07:00
Kun Huang
7dd966192a Use role in insensitive case in keystoneauth.
Using insensitive case could tolerate human error. For example,
user maybe set like this "operator_roles = Admin, swiftoperator"
- also fix a mistake in test, ['admin'] is correct value for roles, not
 'admin' (it will be looped as ['a', 'd', 'm', 'i', 'n'])
- add test for insensitive cases
Fixes: bug #1013120
Change-Id: I56d71da8bc503e48e92dd743692ba6fc237f029e
2013年03月19日 16:26:22 +08:00
Jenkins
85b7346808 Merge "Improved container-sync resiliency" 2013年03月19日 07:20:57 +00:00
John Dickinson
62278171b9 version bump for 1.8.1
first commit for openstack havana
Change-Id: If9fe0fb73c676d5f6d1ed53ccfa300faa0aad8db
2013年03月18日 22:30:04 -07:00
John Dickinson
9e777bd233 AUTHORS/CHANGELOG uploades for the next release
also bumped the dev version to 1.8.0 to reflect the
current dev target
Change-Id: Ib05cb4f0616c0d297ce5cd7073af766c7a4300d9
1.8.0.rc1
2013年03月18日 20:15:24 -07:00
Leah Klearman
a5ba0d5edc increase unit test coverage on account server
Change-Id: Id728a17180f4ee2e31edaef0af6d26446b6014c2
2013年03月18日 18:01:16 -07:00
Jenkins
157d5c7d49 Merge "Basic ring builder validation." 2013年03月19日 00:27:31 +00:00
Jenkins
220db2e5b5 Merge "Give friendly notification in swift-get-nodes" 2013年03月18日 23:29:41 +00:00
Jenkins
591a3a599d Merge "Small clarification to swift-recon section of admin guide." 2013年03月18日 23:29:15 +00:00
Jenkins
a0d5d7f725 Merge "Permit functional tests against Swift with Keystone" 2013年03月18日 22:03:22 +00:00
Jenkins
2c2fc454de Merge "swift-ring-builder blows up when not supported command requested." 2013年03月18日 20:15:57 +00:00
Jenkins
4360744767 Merge "Instruction for multi node setup misses /var/run/swift creation" 2013年03月18日 19:20:57 +00:00
Jenkins
7b03ca15b2 Merge "Fix crash in swift-ring-builder's list_parts command." 2013年03月18日 18:25:51 +00:00
tong li
68355d7ea5 Instruction for multi node setup misses /var/run/swift creation
Multiple Server Swift Installation (Ubuntu) instruction does not
indicate that the directory /var/run/swift needs to be created.
That directory actually needs to be created and the ownship needs
to be changed to the user/group which swift service runs under.
This patch will fix the document and gives the steps how to create
the directory and set the ownership right. It also gives instruction
on how the script can be added so that swift services can be resarted
after system reboots.
Change-Id: Id61aa67cc0d6f66d749701e6ea824b1ff3b2c478
Fixes: bug #1156631 
2013年03月18日 13:57:40 -04:00
Samuel Merritt
d42a78a3aa Basic ring builder validation.
This prevents people from creating bogus ring builder files.
Example: "swift-ring-builder object.builder create 33 0.9 -4".
Fixes bug 924577.
Change-Id: I7bfc04f7fa5f55f70a4eaae96c414f6b2872e283
2013年03月18日 09:50:45 -07:00
tong li
b530de2ad5 swift-ring-builder blows up when not supported command requested.
swift-ring-builder uses outdated unbounded class method to handle
not supported command. It worked for python 2.6 or older but not
for python 2.7 or newer. This patch fixes the problem.
Change-Id: I7dbc681ef6be44f6d79ff93189ccca13c51eab74
Fixes: bug #1154882 
2013年03月18日 09:04:50 -04:00
Samuel Merritt
d88d12b120 Small clarification to swift-recon section of admin guide.
Apparently the use of port 6030 was causing some confusion.
Fixes bug 1095474.
Change-Id: I0cc71f4733ad91694e015a9b75c3eda080aca6fb
2013年03月17日 15:58:06 -07:00
Jenkins
c2f8f00a3e Merge "Fix format device" 2013年03月16日 19:40:16 +00:00
Jenkins
94defcbc53 Merge "Add tests and doc entry for request.environ[reseller_request]" 2013年03月16日 19:29:47 +00:00
Kun Huang
45dda5e356 Change logger name to module itself instead of root
Using root logger will make public module log failed by unknow keyword.
Just change the logger name to module itself could dismiss this impact.
And disable logger.propagate could prevent double outputing.
Change-Id: I18696d124ebac9ca970d502558972e51de759097
Fixes: bug #1105133 
2013年03月17日 01:59:40 +08:00
Ilya Kharin
e56832c138 Fix format device
Change-Id: Icef35175682c11a406ef85accc6c6e1acbf89f4d
2013年03月16日 12:41:14 +04:00
Samuel Merritt
229ba53a19 Fix crash in swift-ring-builder's list_parts command.
If you run list_parts against a builder that has never been
rebalanced, you'd get a crash. Now you don't.
To reproduce:
$ swift-ring-builder foo.builder create 8 3 1
$ swift-ring-builder foo.builder add r1z1-1.2.3.4:6000/sda 100
$ swift-ring-builder foo.builder list_parts z1
Change-Id: Ic3edffab0c5c2e9551a2f89ddb881153f0b07db7
2013年03月14日 18:49:30 -07:00
Jenkins
b115356af6 Merge "Remove check for valid Origin for the "actual request"." 2013年03月14日 11:29:17 +00:00
Jenkins
8e58c9c2a9 Merge "Add missing CONTRIBUTING.md to source tarball" 2013年03月13日 22:53:39 +00:00
Jenkins
fd3a8a6650 Merge "Fix swift-ring-builder's list_parts command." 2013年03月13日 22:53:34 +00:00
David Goetz
f6e29b81d0 Remove check for valid Origin for the "actual request".
The only place in the spec that I could see the Origin being checked was
during the pre-flight OPTIONS request. If it gets to the actual request
let auth decide. Please correct me if this is wrong.
Change-Id: Ic31b71746ec056091c7778ebff3db7becc32bd9c
2013年03月13日 13:43:19 -07:00
Samuel Merritt
35acd5912f Fix swift-ring-builder's list_parts command.
I broke it in 7548cb9 when a ring's replica count changed from an int
to a float.
Change-Id: I49fa7e2961a09daad0c96e19cf1e39fec248d998
2013年03月13日 13:34:19 -07:00
Samuel Merritt
ebcd60f7d9 Add a region tier to Swift's ring.
The region is one level above the zone; it is intended to represent a
chunk of machines that is distant from others with respect to
bandwidth and latency.
Old rings will default to having all their devices in region 1. Since
everything is in the same region by default, the ring builder will
simply distribute across zones as it did before, so your partition
assignment won't move because of this change. If you start adding
devices in other regions, of course, the assignment will change to
take that into account.
swift-ring-builder still accepts the same syntax as before, but will
default added devices to region 1 if no region is specified.
Examples:
$ swift-ring-builder foo.builder add r2z1-1.2.3.4:555/sda
$ swift-ring-builder foo.builder add r1z3-1.2.3.4:555/sda
$ swift-ring-builder foo.builder add z3-1.2.3.4:555/sda
Also, some updates to ring-overview doc.
Change-Id: Ifefbb839cdcf033e6c9201fadca95224c7303a29
2013年03月13日 10:00:58 -07:00
Thierry Carrez
b3732787ea Add missing CONTRIBUTING.md to source tarball
Fixes MANIFEST.in to include missing CONTRIBUTING.md into source
code tarballs.
Change-Id: I81876adad14e0f1b2211d39ec6471e35f5464120
2013年03月13日 11:35:42 +01:00