8a6922b73e5bbb10dc045129099d4ac527bb4551
2252 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
Derek Higgins
|
387744197e |
Fixing alterations to sys.path
Fixes bug 1064249 sys.path should be extended not appended to Change-Id: I3404a50b16b843b47f5082676029a4dd3b03f812 |
||
|
Jenkins
|
fc1c5a5fd0 | Merge "remove configobj from deps" | ||
|
Victor Rodionov
|
4bc1b1f185 |
fix typing in swift/common.db, swift/container/server.db
Change-Id: I5efb3712faa7d159be2d86913fa5fbdf09b7f98f |
||
|
Michael Barton
|
c7e2e9a1f3 |
remove configobj from deps
Change-Id: Ie566e712ba0d3dca543e99efbdb576b19623e73c |
||
|
Darrell Bishop
|
e2b03267fd |
Fix two edge cases with Range: header
This fixes swob to handle "Range: bytes=-X" where X > len(content); ex. "Range: bytes=-17" when the object has 10 bytes. Based on the RFC, the range is satisfiable and all bytes should be returned. It also fixes "Range: bytes=-0" to be, correctly, not satisfiable. In addition, this case's response has Content-Length: 0 and has a zero-byte body. It also fixes an existing regression in swob for the case "Range: bytes=100-" for a body of length < 100 (Content-Length was negative and the body was returned). The relevant RFC is 2616, section 14.35.1. Change-Id: Ib3dc672e083173eb970c10801283813623f26e0e |
||
|
Jenkins
|
1ef17d8284 | Merge "add support for custom log handlers" | ||
|
Florian Hines
|
92826d0602 |
add support for custom log handlers
Add a hook to get_logger to run custom functions to add custom log handlers or the like. Change-Id: Ib04b12939dcac7e4ad6453dea9795682044c6ae0 |
||
|
Greg Lange
|
e7f3a9865e |
internal client unicode paths
made internal client handle unicode path parts by adding make_path method fixed pep8 problems in internal client and its test moved internal client unit test file to correct directory Change-Id: Id1c81c9cb0db05342e4e8a8393db93552fda4647 |
||
|
Victor Rodionov
|
5b02fded4e |
cleanup double repeated response.headers['X-Timestamp'] = file.metadata['X-Timestamp']
in swift.obj.server.HEAD Change-Id: Ie7cf853319589db7c48836dd5d7fd5e68cb009cd |
||
|
Jenkins
|
6801920785 | Merge "close_swift_conn is a method of swift.proxy.controllers.base.Controller, not function" | ||
|
Jenkins
|
026846c7b5 | Merge "local WSGI Request and Response classes" | ||
|
Victor Rodionov
|
0b756d75c4 |
close_swift_conn is a method of swift.proxy.controllers.base.Controller, not function
Change-Id: I84dd7bc2fc5ebd1190a7184f42fc5ecf5fd7b4d3 |
||
|
Darrell Bishop
|
57ebd17910 |
Warn when killing fails with EPERM
Have swift-init warn when the running user doesn't have permissions to signal processes. Fixes bug 1017494. Change-Id: Icb9048ab36f1ca73bb93b11c9c2aed882d99dfa7 |
||
|
Jenkins
|
550e876869 | Merge "Allow underscores in account/user in tempauth via encoding." | ||
|
Jenkins
|
a0d96b184d | Merge "catch no such file in hash_suffix" | ||
|
David Goetz
|
6f9473d31d |
catch no such file in hash_suffix
Change-Id: I70ee55d12b1ca91fdfe4891c3f82ab0f832f15d3 |
||
|
Darrell Bishop
|
5582f166c2 |
Allow underscores in account/user in tempauth via encoding.
This patch introduces a new user format to tempauth which starts with "user64_" and in which the account and user are base64 encoded (sans padding equal signs): user64_<account_b64>_<user_b64> = <key> [group] [group] [...] [storage_url] This allows unambiguous parsing and adds the ability to have a user or account name containing underscores. The handling of tempauth configuration is fully backward compatible and this only adds new, optional functionality. Also beefed up unit tests to get full coverage of the user parsing code in tempauth's __init__(). Change-Id: Id06304934ab8055a28921f2e1aa3c58a2036d8f8 |
||
|
Michael Barton
|
5e3e9a882d |
local WSGI Request and Response classes
This change replaces WebOb with a mostly compatible local library,
swift.common.swob. Subtle changes to WebOb's API over the years have been a
huge headache. Swift doesn't even run on the current version.
There are a few incompatibilities to simplify the implementation/interface:
* It only implements the header properties we use. More can be easily added.
* Casts header values to str on assignment.
* Response classes ("HTTPNotFound") are no longer subclasses, but partials
on Response, so things like isinstance no longer work on them.
* Unlike newer webob versions, will never return unicode objects.
Change-Id: I76617a0903ee2286b25a821b3c935c86ff95233f
|
||
|
Jenkins
|
f0bd91dd14 | Merge "allow replicator run_once to check specific devices/partitions" | ||
|
Jenkins
|
e6d720cde5 | Merge "Fix errors with fdatasync on BSD platforms" | ||
|
David Goetz
|
a6c44d2764 |
allow replicator run_once to check specific devices/partitions
Change-Id: If45f77fda269ae6e251579542e70eb71bd11fe2a |
||
|
Brian Cline
|
f91198d09b |
Fix errors with fdatasync on BSD platforms
Abstracts fdatasync/fsync/fcntl into an FsyncWrapper to determine, the first time it is used, which fsync-like call is supported on the host platform: - Linux: use fdatasync(fd) as Swift already does today. - Darwin: use fcntl(fd, F_FULLFSYNC), since Darwin provides the F_FULLFSYNC flag when you wish to fsync data you care about, ensuring that it is written to disk and not simply a buffer. - BSD/Other: use fsync for non-Darwin BSDs and as a fallback for other platforms. Change-Id: Ibcfdeef7843b2f10cf8a17a6b989038ea2364376 |
||
|
Michael Barton
|
bc60cc1160 |
base controller GETorHEAD refactor
simplify, reduce the amount of code Change-Id: I443a43030291f35a0b283cdd036cb09ec2ef9444 |
||
|
Jenkins
|
be8777965f | Merge "replace a value set with utils.TRUE_VALUES" | ||
|
John Dickinson
|
b530e62313 |
updated with 1.7.5 version bump and changelog update
Change-Id: I04be779539b2bff76e2f614f50ddba2592fe4a36 |
||
|
gholt
|
7e0c4eb152 |
Fixed leak on 499s
This fixes an issue where Request objects (and related objects) were not getting garbage collected when a 499 (client disconnect) occurred for responses that still would have had more than the proxy server's client chunk size left to send. Fixed bug #1055834 Change-Id: Ib7b5fffe970dcdec60b90a9bdcd67c49b68fb914 |
||
|
Darrell Bishop
|
57b10cd38c |
Restore old SIGPIPE handler in a proxy server test.
I think not doing this was setting the SIGPIPE handler to signal.SIG_DFL instead of the Python default of signal.SIG_IGN. This could cause other tests which make a client stop reading before all data "chunks" are read to fail harder than they should (i.e. the SIGPIPE there is benign and even expected--the other side of the socket really did get closed early). Change-Id: I946a1913714a34ec677b701a2b5724bc8b715f70 |
||
|
Jenkins
|
4b858c1860 | Merge "Gracefully handle stdin flush failure on BSD" | ||
|
Brian Cline
|
87c1c5dce9 |
Gracefully handle stdin flush failure on BSD
Catches an IOError that is thrown when starting Swift on BSD-based platforms, as the underlying system call to flush returns errno 9 (bad file descriptor), whereas on Linux it succeeds. Change-Id: Ic143d2fe6c3e1e0b39794958b40b0f5efdc17c06 |
||
|
Brian Cline
|
da99c3390b |
Only set TCP_KEEPIDLE where supported
Resolves an issue preventing Swift from starting on BSD-based platforms that do not have this TCP flag (FreeBSD, OSX/Darwin, OpenBSD); identical to Glance bug 879195, change I2f062a34, Glance commit efcdac36 (originally reported and patched by Brian Waldon). Change-Id: Ifd696fe1080464d060e608c075ad0c113baab5ab |
||
|
John Dickinson
|
8a7afa535f |
1.7.2. changelog and version bump to 1.7.3-dev
Change-Id: Id398b4c0764ca0995cec03c5f0ea6198ef877ade |
||
|
Jenkins
|
73aa3cbda1 | Merge "Fix bug where serialization_format is ignored" | ||
|
Jenkins
|
b0a2f795f4 | Merge "builder.add_devs gets next id if not provided" | ||
|
gholt
|
c97fb37e10 |
Fix bug where serialization_format is ignored
Change-Id: I5a5ac8b5f18e077105ab12e9b1f0ccafac3983f7 |
||
|
dk647
|
568b61af22 |
replace a value set with utils.TRUE_VALUES
replace a value set with utils.TRUE_VALUES, and fix some pep8 issues Change-Id: If4db41d0d538afddee0d78449d229ce319c5efba |
||
|
Dan Prince
|
411c7cb8ff |
Add README.md to the tarball.
Fixes LP Bug #1051125 Change-Id: If1f96e1d759276cafd5378b4e74b0dbcb1fa2358 |
||
|
Florian Hines
|
c4f5761101 |
builder.add_devs gets next id if not provided
Have builder.add_devs get the next id to use when adding a new device if its not specified in the dict. Change-Id: I5a0defab43f5cfc5d997080bfd8563bfe72368ad |
||
|
Jenkins
|
30337a8875 | Merge "added errno.EINVAL check to fallocate" | ||
|
John Dickinson
|
bfc114bc1d |
new more helpful README
Change-Id: Ie5e88178e061955aea8759e5451a2d33ccc76511 |
||
|
John Dickinson
|
343968b2d3 |
added disable_fallocate info to docs
Change-Id: I8130e258d77f47bfa28ecf79a51a6e34671ada22 |
||
|
John Dickinson
|
2ca379d40f |
added errno.EINVAL check to fallocate
On some systems (eg Illumos), posix_fallocate() returns EINVAL when the underlying filesystem doesn't support the operation. On Linux, the fallocate() call returns EOPNOTSUPP. The need for this patch was revealed by Victor Rodionov <victor.rodionov@nexenta.com>. Change-Id: I06fa9d49e7ec4084135843b7e0c91948dc098d27 |
||
|
Jenkins
|
a7e6d44706 | Merge "Adds Error Handling to swift-drive-audit for missing or unreadable /var/log/kern.log" | ||
|
Jenkins
|
5c67f1a695 | Merge "container_info returns a dict" | ||
|
Andy McCrae
|
463da7e170 |
Adds Error Handling to swift-drive-audit for missing or unreadable /var/log/kern.log
Fixes Bug 1049081 Change-Id: If977080350cc5cdb6bc633b6af7d3c490ed23d46 |
||
|
David Goetz
|
d24e280bf4 |
obj replicator speed up
Change-Id: If02b573353dedea9c2368ce4733fe97599229b2e |
||
|
Michael Barton
|
063789b14e |
container_info returns a dict
This change refactors container_info to return a dict instead of a tuple with 6 (and counting...) values. Also adds container size to cached info. Change-Id: If68a06ab170504fbf07323354f3d0e073850493d |
||
|
Jenkins
|
3482eb26f9 | Merge "swift constraints are now settable via config" | ||
|
Jenkins
|
67f21f5e4a | Merge "Breakout search_devs & add get_builder() for reuse" | ||
|
Jenkins
|
d96a7a89f4 | Merge "format some code according to pep8" | ||
|
Jenkins
|
aee707b78d | Merge "Fix pep8 issues" |