2352b9d66f7a767376d36bd5b79d4b2c328ea45a
1992 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
Clark Boylan
|
2352b9d66f |
Add nosehtmloutput as a test dependency.
Adding nosehtmloutput as a test dependency allows nose to output its results to an html file. This will be used by Jenkins to save logs on a different server. Change-Id: I6bd4736e8cc4132db65bfe8cdfe1f3a388369fa8 |
||
|
Jenkins
|
a0a8b484cc | Merge "Updated probe tests" | ||
|
Jenkins
|
73b00ca9de | Merge "handle exception correctly in _make_app_iter_reader" | ||
|
Jenkins
|
ba9158886e | Merge "To simulate the real workloads, the objects to be uploaded could be created in the random sizes, which are bounded (lower_object_size and upper_object_size) by the user inputs." | ||
|
Jenkins
|
eabe9ba444 | Merge "update object versions docs" | ||
|
Florian Hines
|
e7c2ae985a |
Cleanup after LockTimeout
- If lock_file encounters a LockTimeout a fd can be left behind - Fixes bug 1038191 Change-Id: Ib3f45d18aeeec91eedf0b4f0492664d33b4f57fa |
||
|
gholt
|
fa661d5b21 |
ring.py: Uses simplejson if avail and pep8 1.3.1
Change-Id: I1f91a82da064c9f0e64779f4fa8951962678831b |
||
|
Jenkins
|
f2f3b75802 | Merge "Use custom encoding for RingData, not pickle." | ||
|
MORITA Kazutaka
|
edd38035be |
handle exception correctly in _make_app_iter_reader
_make_app_iter_reader uses a queue to pass read data to _make_app_iter, and uses an empty string as a terminator. The problem is that it pushes the same terminator even if it fails to reads the data. If an exception happens before pushing all data to the queue, _make_app_iter exits without yielding all data. In that case, proxy-server stops in the middle of sending data, and a client waits for all data to come infinitely. This patch uses a boolean value for the terminator instead of an empty string to distinguish the results, and raises an exception in the error cases. Fixes bug 890888. Change-Id: Ie4d48025843aa1bb600446da6f4fc49f82a440bf |
||
|
John Dickinson
|
3c82151c44 |
update object versions docs
Change-Id: I00bf2e20c2683d0440ca425461e0ab87197ee720 |
||
|
Jenkins
|
b06bfa69a6 | Merge "all in one setup rc.local needs -p for mkdir command" | ||
|
Jenkins
|
cb03022366 | Merge "Report all unmounted drives" | ||
|
Tong Li
|
d8c5c0c897 |
all in one setup rc.local needs -p for mkdir command
bug fixes for swift 1033089 Swift 1.6.0 All in One setup uses rc.local to create a set of directories like the following: /var/cache/swift /var/cache/swift2 /var/cache/swift3 /var/cache/swift4 /var/run/swift without -p for mkdir command, when some of these directories already exist, the rc.local fails so that the next set of command won't execute. This causes swift fail to start because of /var/run/swift does not exist. Adding -p to both mkdir command solves this problem. Change-Id: Ia26c9a857723747008293c0631c9acc1b58eca7e |
||
|
Darrell Bishop
|
f8ce43a218 |
Use custom encoding for RingData, not pickle.
Serialize RingData in a versioned, custom format which is a combination of a JSON-encoded header and .tostring() dumps of the replica2part2dev_id arrays. This format deserializes hundreds of times faster than rings serialized with Python 2.7's pickle (a significant performance regression for ring loading between Python 2.6 and Python 2.7). Fixes bug 1031954. swift.common.ring.ring.RingData is now responsible for serialization and deserialization of its data via a new load() class method and save() object method. The new implementation is backward-compatible; if a ring does not begin with a new-style magic string, it is assumed to be an old-style pickle-dumped ring and is handled as before. So new Swift code can read old rings, but old Swift code will not be able to read newly-serialized rings. THIS SHOULD BE MENTIONED PROMINENTLY IN THE RELEASE NOTES. I didn't want to bite of more than necessary, so I didn't mess with builder file serialization. Change-Id: I799b9a4c894d54fb16592443904ac055b2638e2d |
||
|
ning_zhang
|
aad7cdc364 |
To simulate the real workloads, the objects to be uploaded could be created in the random sizes, which are bounded (lower_object_size and upper_object_size) by the user inputs.
Change-Id: I64647c5d613a0794f0807886a4833cd5c31c0c5e |
||
|
gholt
|
ef3f8bb335 |
Ensure parameters sent to db are utf8 strs
Change-Id: I45952adfcfbc813477ee9966f05dcdeef23c683b |
||
|
gholt
|
d2b51dd2b6 |
Updated use of iter_nodes for handoff logging
Change-Id: I95a750613b01bdc4d64444d7e7fae8190760d697 |
||
|
gholt
|
7923c56afa |
Fixed proxy logging.
It wasn't logging the full path, depending on if WebOb's path_info_pop had been called. Change-Id: I612d4cae7a4dc1bf5164356af329496245ad85dc |
||
|
gholt
|
0d38c710a5 |
Cleaner fix to format regression fix
This ensures req.accepts is only assigned a valid content type. Change-Id: Idf19277959c516398d31f771cf42dec0733d1bc0 |
||
|
gholt
|
de9b81baee |
Fixes regression with format=somethingelse
The WebOb 1.2 support patch introduced a regression where an unknown format= query used to just default back to plain but now returns a 400. This will break anyone that uses format=text for instance, or anything else "invalid". Arguably, it makes the most sense to 400 in the case of an invalid format requested, but since it is also a backwards compatibility break, I recommend we keep the previous behavior. Retaining the previous behavior seems less damaging than enforcing the new behavior. Change-Id: I6db015b33a6f3ab239b8cb4a3562ebdba1f76590 |
||
|
Florian Hines
|
f2f6b2f26c |
Report all unmounted drives
- swift-recon cli now reports all unmounted drives. - Fixes bug 1031060 Change-Id: Ia9e6bbf05215879b602e9dcb77d007094c494dc1 |
||
|
John Dickinson
|
ceaf7606fe |
updated changelog with patch from review
Change-Id: Ib2d54da92a3f7e7325998e3e52f562a1bf538c28 |
||
|
Jenkins
|
f20d5fdfc2 | Merge "Logging improvements: handoffs and thread locals" | ||
|
gholt
|
a1a4d35362 |
Logging improvements: handoffs and thread locals
A warning log line is emitted whenever the proxy has to use a handoff node. Monitoring these warnings can indicate a problem within your cluster; however, you can disable these log lines by setting the proxy conf's log_handoffs to false. While working on this, I also noticed why many proxy log lines did not have txn_id and client_ip -- subcoroutines. Now the logger thread locals are copied to the subcoroutines. Change-Id: Ibac086e1b985f566c068d083620287509de35da8 |
||
|
gholt
|
3800fdc1a9 |
Fixed bug in staticweb with log_headers
Change-Id: I7e5e254660e2ce35bc7fa95435db0a987d5acd0a |
||
|
John Dickinson
|
21616c2fc9 |
1.6.1 version bump
Change-Id: I683633ef1c7a5df7522299a85090f1ffda0c287a |
||
|
John Dickinson
|
53e35ba4ff |
changelog for 1.6.0
Change-Id: Ia97050ac2b0b438535f31a8eb400801c782160f9 |
||
|
Victor Rodionov
|
a2bec22ac0 |
Fix typing in DiskFile put method comment
Change-Id: I4a07ff105f2acc4174de0aef4e24cfcde323bea8 |
||
|
John Dickinson
|
03cec57e5d |
version bump to reflect current dev effort
Change-Id: Ic2869ab7f728ed1a4d8b34c37f0540c582d7dbcc |
||
|
Florian Hines
|
0da1b4f82d |
Create and configure /var/cache/swift in SAIO
Fixes bug #1024477 Change-Id: Id09bbff6bb4a5d032727d3ca53b3276b4769d178 |
||
|
Jenkins
|
6d4ba010eb | Merge "Fix problem with logger and libc loader" | ||
|
Jenkins
|
baa04b9bda | Merge "ensure that accessing the ring devs reloads the ring if necessary" | ||
|
Jenkins
|
a9887c0e15 | Merge "Move swift_auth middleware from keystone to swift." | ||
|
John Dickinson
|
de3b663a73 |
ensure that accessing the ring devs reloads the ring if necessary
Change-Id: If5a6d32c40de02183a2eed6e2a32d62ba38df32d |
||
|
Victor Rodionov
|
43437558fe |
Fix problem with logger and libc loader
If fallocate can't be loaded from libc, bit posix_fallocate loaded user will Swift will log warning messages. So it will be better to write log only if both version of fallocate can't be loaded. Change-Id: I2a9ffe4756e77b3010ccd82b33c208d6d9b9f7b7 |
||
|
Vincent Untz
|
faff4ae769 |
Forbid substrings based on a regexp in name_filter middleware
In comments from https://review.openstack.org/8798 it was raised that it might make sense to forbid some substrings in the name_filter middleware. There is now a new forbidden_regexp option for the name_filter middleware to specify which substrings to forbid. The default is "/\./|/\.\./|/\.$|/\.\.$" (or in a non-regexp language: the /./ and /../ substrings as well as strings ending with /. or /..). This can be useful for extra paranoia to avoid directory traversals (bug 1005908), or for more general filtering. Change-Id: I39bf2de45b9dc7d3ca4d350d24b3f2276e958a62 DocImpact: new forbidden_regexp option for the name_filter middleware |
||
|
Victor Rodionov
|
31ff3da485 |
Fix wrong assert in manager unit test, self._assert(len(m.servers), 4)
don't check that number of servers equal 4. Change-Id: I4a597eaf2b16b5b2cfc7fd706ac024357e9af2c2 |
||
|
Jenkins
|
a5242dbe2c | Merge "Fix Dispersion report and swift-bench on saio" | ||
|
Iryoung Jeong
|
de4d23c2a5 |
Adapt Swift for WebOb 1.2
Based on PatchSet 3 of https://review.openstack.org/#/c/7569/ , make them to pass all funcional tests with both webob 1.x and 1.2.
The additional following compatibility issues were addressed:
- Until patch for range header issue is merged into official webob release, testRangedGetsWithLWSinHeader() should skip test against webob 1.2
(
|
||
|
Florian Hines
|
5f72a8db4a |
Fix Dispersion report and swift-bench on saio
We're still using saio:11000 in a few spots so a few things don't work out of the box on the saio. Fixes bug #1024561 Change-Id: I226de54c2785b0d0b681c8d0cc24260adbd3d663 |
||
|
Jenkins
|
0ab4f2ab4a | Merge "add UDP protocol support for logger" | ||
|
Jenkins
|
47385a2d8f | Merge "Validate devices and partitions to avoid directory traversals" | ||
|
gholt
|
4a9d19197c |
Updated probe tests
The probe tests were woefully out of date with all the changes that have ocurred since they were written. I've updated most of them and removed some that are hopeless outdated. I also greatly improved the timing issues (hopefully completely solved them? I ran them 25 times with no problems) and made them pep8 1.3.1 safe. Change-Id: I8e9dbb6e7d6e04e293843b1dce1ded99d84e0348 |
||
|
Chmouel Boudjnah
|
afa4f70024 |
Move swift_auth middleware from keystone to swift.
- Rename it to keystoneauth for consistenties. - Implements blueprint keystone-middleware. Change-Id: I208fecdf3ee991694b4239f065032324d297fd35 |
||
|
Vincent Untz
|
cc1907eef5 |
Validate devices and partitions to avoid directory traversals
swift.common.utils.validate_device_partition is a new function to check that a device and a partition are valid. This means that they don't contain '/' and are not '.' or '..'. We use this new function every time we get devices and partitions from a request. Fix bug 1005908 Change-Id: Ia545ba8f877e85b4b576d6d7d09d890877ea6d34 |
||
|
gholt
|
d8c2d0e1bc |
FormPost logging bugfix and slight refactor
In the interest of getting us to pep8 1.3.1 compliance I also fixed all violations in the two files I was modifying anyway. Fixes bug 1019051 Change-Id: I52eb7d59d2e2810a8cee2461f7ca869124e734e7 |
||
|
Jenkins
|
329b1da07b | Merge "Fixed bug 1011636 with segmented objects" | ||
|
Jenkins
|
501a3e4929 | Merge "Remove ambiguity in memcache_servers documentation" | ||
|
Jenkins
|
217676c06c | Merge "swift-bench should be able to use auth version 2.0" | ||
|
gholt
|
f2a61ab50e |
Fixed bug 1011636 with segmented objects
The X-Object-Manifest header value should be url encoded to allow for "special" characters to be used. This fix decodes such encoding. A corresponding fix to python-swiftclient (and any other clients) needs to be made to url encode the header value when sending. I also fixed any pep8 1.3.1 violations I found in the test I modified to verify this. Change-Id: I67f23dec1dc95ee37354dfdd9897f34758135ee6 |