5c1a7871d9173db9fbd855b72a98ecd8ff163800
2797 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
Newptone
|
5c1a7871d9 |
Unified format of boolean params in conf files
In swift conf files, boolean options use different format: some use true/false, and some use True/False. This patch is aim to using lowcase true/false to unify boolean params formats in swift conf files. Fix Bug #1203421 Change-Id: I3e1bfc6e43231f51e0710aa54869f3774ee896b1 |
||
|
Alex Gaynor
|
0fdad0d9d9 |
Close SQLite cursors when creating functions.
If the cursors are not closed, then when create_function is called, if they are not GC'd then create_function will fail. On Pythons without reference counting (e.g. PyPy) they will not be GC'd immediately. Change-Id: I39210616d323691ccb745149f24430a7a61382ec |
||
|
Alex Gaynor
|
3b1ee1f6a3 |
Remove list comprehension where the result is unused.
Using a list comprehension here makes the code less readable, and is also slower (since it has to allocate and grow a list that is unused). Change-Id: I74cc9d2cf2e271a2c45d45cc5ea777189c02eacb |
||
|
Jenkins
|
39b48e1e9f | Merge "Ensure that files are always closed in the tests." | ||
|
Jenkins
|
bbaf490887 | Merge "Refactor and add tests for db_replicator" | ||
|
Alex Gaynor
|
710e4a007f |
Ensure that files are always closed in the tests.
A failure to close files in a timely fassion means that data is not necessarily written immediately on Pythons which do not use reference counting (e.g. PyPy). Change-Id: I5d363249676032a025a22a67275c2eed3151b264 |
||
|
Clay Gerrard
|
c9de9f2b8d |
Forklift the DiskFile interface into it's own module
* new module swift.obj.diskfile I parameterized two constants from obj.server into the DiskFile's __init__ * DATADIR -> obj_dir * DISALLOWED_HEADERS -> disallowed_metadata_keys I'm not sure if this is the right long term abstraction but for now it avoids circular imports. Change-Id: I3962202c07c4b2fbfc26f9776c8a5c96292ae199 |
||
|
Jenkins
|
167897bba5 | Merge "Refactor auditors to rely on expected gen names" | ||
|
Jenkins
|
f805abb1fc | Merge "Move replication allow method to decorators" | ||
|
Peter Portante
|
9480ff8a28 |
Refactor auditors to rely on expected gen names
Refactor the various auditors to rely on the audit_location_generator yielding tuples containing paths with the expected suffix. We also fix the exception handling for container_sync to not expect a broker object (since the act of creating a broker object can raise an exception). For the object auditor we removed an unneeded check for disk_file since get_data_file_size() will raise DiskFileNotExist under the same condition (raises code coverage slightly). Change-Id: I11d405e629063177ef21543b75e9076da1a03b61 |
||
|
Peter Portante
|
bc99f58c76 |
Fix unit tests to properly marked deleted files
The unit tests were playing fast and loose with the tombstone marker, where the test framework was setting up a DiskFile object which had its data written to the .ts file, not the .data file. This behavior did not reflect how the interfaces to DiskFile were supposed to work. Change-Id: Idd6e8882e062ba2e13489f14189223ab4158677c Signed-off-by: Peter Portante <peter.portante@redhat.com> |
||
|
Chmouel Boudjnah
|
18a0813d9b |
Add documentation about flake8+hacking.
- Fixes bug 1201431. Change-Id: If025a41caf3a629b9efb4d67c53c423796d37a91 |
||
|
Dirk Mueller
|
8aba2d602e |
Start using Hacking
Instead of blacklisting Hacking globally, only blacklist those that currently occur frequently (for a later followup patch), and fix the rest. In detail: H101 Use TODO(NAME) H201 no 'except:' at least use 'except Exception:' H231 octal number 022 should be written as 0o22 H401 docstring should not start with a space H701 Empty localization string Change-Id: Ib3b3d56b68d1cf15d3b67ac9749fcbdb876dc52a |
||
|
Jenkins
|
cbc29e43be | Merge "Extract quorum-size calculation to utility method." | ||
|
Jenkins
|
eb43021e62 | Merge "Make keystoneauth reseller_prefix check for _" | ||
|
Vladimir Vechkanov
|
bc08215f83 |
Move replication allow method to decorators
Remove logic of allowed methods list from object, container and account servers. Instead of it add replicator decorator to utils and use new decorator for REPLICATE methods in object/account/container servers. This decorator mark method as special for usfor use only by the replication. If the option replication_server is not used, then this mechanism is not enabled. If the replicaton_server option is set (not None) then the respective server is a replicator (option value is True) and should use ONLY the methods marked for replication server using the decorator, or it is a normal server type and should NOT use methods marked for the replication server. Change-Id: I1041b31413cd0c39000317cc57a8c27816e1dfe8 |
||
|
Greg Lange
|
e7b5e9d44f |
make internal client metadata methods return dicts with lower case keys
Change-Id: I19ced30b6e92133766310f8e41286202607c5b4c |
||
|
Jenkins
|
72faf7b86d | Merge "Revert "docfix apache2 now supports client chunked encodin"" | ||
|
Chmouel Boudjnah
|
6f57b06c7c |
Make keystoneauth reseller_prefix check for _
- Automatically add underscore if there wasn't one already. - This makes consistent with tempauth. - Fixes bug 1198878. - This should probably need to be mentioned in the release changelog for upgrades. Change-Id: Ia82f14f82c380c7ed2ddd190116f1493e410cfbe |
||
|
Samuel Merritt
|
151313ba8c |
Fix flaky test.
test_DELETE_x_container_headers_with_more_container_replicas() would sometimes fail, and it's because a test helper method was defaulting to sorting the captured headers by X-Container-Partition. Well, in tests we use FakeRing, and the partition is always 1, so that sorting didn't buy us much. Now the sorting is done by X-Container-Device, which actually differs meaningfully. Change-Id: Ibe5b2fcd3f23280ed2caaa703111a98861331866 |
||
|
Jenkins
|
7bb1d07cd0 | Merge "Record some simple object stats in the object auditor" | ||
|
David Hadas
|
fcfb8012cd |
Revert "docfix apache2 now supports client chunked encodin"
This reverts commit
|
||
|
David Goetz
|
043bfb77f4 |
Record some simple object stats in the object auditor
Change-Id: I043a80c38091f59ce6707730363a4b43b29ae6ec |
||
|
Vladimir Vechkanov
|
1f7d2a60d6 |
Refactor and add tests for db_replicator
* Create class for testing _repl_to_not and replicate_object fuctions to prevent duplication code by adding all preparation into setUp function. * Move existed test function which testin _repl_to_not and replicate_object into created classes. * Add tests for replicate_object and _repl_to_node functions. Change-Id: I75ac7c6f0230e71bfb24328e44c33734b520b4cd |
||
|
Jenkins
|
bc35717a61 | Merge "small cleanup to associated projects page" | ||
|
Samuel Merritt
|
885e02102d |
Extract quorum-size calculation to utility method.
The behavior's the same as before; this just makes the code (IMHO) a little easier to read. Change-Id: Ie54d836d81af7410057219f60b72b840c9ce51b9 |
||
|
John Dickinson
|
9b2ee07ee3 |
small cleanup to associated projects page
Change-Id: I5d6d6d6c32b6573474288897f6fa174b6f150183 |
||
|
David Goetz
|
a24c89e5bd |
adding copyright notice
Change-Id: Ic2c79d52770208c22b39cb2b00f2f8a6a86e8aa7 |
||
|
Jenkins
|
4a90414fc7 | Merge "docfix apache2 now supports client chunked encodin" | ||
|
Jenkins
|
1f7c86ec91 | Merge "Update docs to use default XFS inode size" | ||
|
Chuck Thier
|
581f7f5517 |
Update docs to use default XFS inode size
In past couple of years, the XFS team has greatly improved inode use in xfs. With more recent kernels, there is no performance penalty for using the default inode size, and a smaller inode size gives us improvements in other areas where disk access is involved. DocImpact Change-Id: Ie9da53a6e8bf43d1d02881befbb52595462c9f2e |
||
|
Jenkins
|
e759dad84f | Merge "Add test for swift.common.utils.lock_file" | ||
|
Tom Fifield
|
68cb91097b |
docfix apache2 now supports client chunked encodin
As reported in the documentation bug, the apache deployment guide's reference to apache2 mod_wsgi not supporting client chunked encoding has become outdated. It now supports this feature, using an optional parameter. Updated the paragraph in question to reflect this patchset 2 mentions the WSGIChunkedRequest variable and adds it to the sample configs - On by default. Feedback welcome fixes bug 1194935 Change-Id: I07c5c8506ac34e1e0e08fa6d961babde2f9b7367 |
||
|
Felipe Reyes
|
0e602979c9 |
Add test for swift.common.utils.lock_file
Change-Id: Id03f130ad7016b11b740050b7aadf879773d5a5f |
||
|
Jenkins
|
c6e53721e0 | Merge "Make formpost work with multiple tempurl keys." | ||
|
Jenkins
|
2a91768911 | Merge "TempAuth: don't return 401/403 if .r without .rlistings" | ||
|
Jenkins
|
53908a1147 | Merge "Allow SLOs to be made up of other SLOs" | ||
|
Samuel Merritt
|
bd00f0c8c9 |
Make formpost work with multiple tempurl keys.
Formpost wouldn't look at X-Account-Meta-Temp-URL-Key-2 for signature
validation, which was confusing to users. Now it does, and there's a
utility function that formpost and tempurl both use to help prevent
divergence in the future.
Also removed formpost's custom cache-lookup logic. Formpost was
looking for tempurl keys in memcache, but it's been broken since
commit
|
||
|
David Goetz
|
9f942b1256 |
Allow SLOs to be made up of other SLOs
We've gone back and forth about this. In the initial commit, it couldn't possibly work because you wouldn't be able to get the Etags to match. Then it was expressly disallowed with a custom error message, and now its allowed. The reason we're allowing it is that 1,000 segments isn't enough for some use cases and we decided its better than just upping the number of allowed segments. The code to make it work isn't all that complicated and it allows for virtually unlimited SLO object size. There is also a new configurable limit on the maximum connection time for both SLOs and DLOs defaulting to 1 day. This will hopefully alleviate worries about infinite requests. Think I'll leave the python-swift client support for nested SLOs to somebody else though :). DocImpact Change-Id: Id16187481b37e716d2bd09bdbab8cc87537e3ddd |
||
|
Chuck Thier
|
b012fd998c |
Change ring partition size for SAIO
Making this smaller (10 instead of 18) can make some of the tests run faster and makes rebuilding of the rings faster. Change-Id: Ibe46011d8e6a6482d39b3a20ac9c091d9fbc6ef7 |
||
|
Jenkins
|
1620f4e99e | Merge "Adding unit tests for direct client" | ||
|
Kun Huang
|
8ff374de97 |
TempAuth: don't return 401/403 if .r without .rlistings
When checking referer (.r, .rlistings), tempauth return 401/403 if '.r' exists without '.rlistings' or obj. Actually it should skip this kind of authorizing and check the following authorizing. And remove some unnecessary lines Change-Id: Ib60e59b7c80331a699cb5c3496f948cf32135d0b |
||
|
Jenkins
|
66a0817e99 | Merge "Remove dead code and tests for staticweb." | ||
|
Jenkins
|
882078dcf1 | Merge "version bump to 1.9.1" | ||
|
Jenkins
|
fefdf5f90b | Merge "updated changelog and authors update for 1.9.0 release" | ||
|
Samuel Merritt
|
8b4520a483 |
Remove dead code and tests for staticweb.
Dead since
|
||
|
John Dickinson
|
68fc163fdd |
version bump to 1.9.1
Change-Id: If04c88f7e686f4b4709c5b68351ebbbea97d12bd |
||
|
David Hadas
|
8226761889 |
Deleted account respond as non existing accounts
Currently clients can not distinguish between non existing accounts (which can be created) and accounts marked for deletion, which has not yet been reaped and therefore cannot be re-created until reaped. Following this patch, if an account is marked as deleted but hasn't been reaped and is still on disk, responses will include a status header: 'X-Account-Status' = 'Deleted' Fixes:Bug #1188609 Change-Id: Ibd39965ae3f5d45fd78f130e0e31f5a0141a8633 |
||
|
John Dickinson
|
abda080366 |
updated changelog and authors update for 1.9.0 release
Change-Id: I61ffbaba01aba86d61e4f3d988b5abeee8f07813 |
||
|
Jenkins
|
edf4068c8b | Merge "Local write affinity for object PUT requests." |