5383 Commits

Author SHA1 Message Date
Jenkins
d9f500a128 Merge "Make _get_addr() method a function in utils." 2016-02-22 20:30:22 +00:00
Jenkins
3e3ad5cb16 Merge "Fail early if the memcache address is invalid." 2016-02-22 19:42:20 +00:00
Jenkins
c4284f89f0 Merge "Use 201 insted of 200 in PUT test case" 2016-02-22 19:41:23 +00:00
Jenkins
01b07026c0 Merge "Changing the base version to python2.7 for pep8 checks" 2016-02-22 19:40:27 +00:00
Jenkins
bc34f79163 Merge "Add unit tests for checking responses in ContainerController" 2016-02-22 12:35:41 +00:00
Jenkins
d53210e1d6 Merge "functest for x-timestamp validation" 2016-02-22 10:22:11 +00:00
Takashi Kajinami
406e8996fb Use 201 insted of 200 in PUT test case
There are some unit test cases which assumes 200 as the response
of PUT request, but 200 is never returned in PUT.
This patch replaces 200 in PUT by 201, and adapt unit test cases
to real case.

Change-Id: I35fc7a4fe7fcc5558a9e6c6371105793c2710f3e
2016-02-22 16:10:09 +09:00
Hisashi Osanai
5b18455cef Add unit tests for checking responses in ContainerController
This patch provides unit tests to check responses for various situation
in three/four replicas env.

Change-Id: Ifcc4392ffa4df485ce3c62a35d0fcc8c93de74aa
2016-02-22 16:08:23 +09:00
Jenkins
99bc2a4a7d Merge "Fixed log format in object auditor" 2016-02-19 22:21:44 +00:00
Jenkins
b510442b15 Merge "Make write-only container access consistent" 2016-02-19 12:56:38 +00:00
Jenkins
9f2a7b1d2f Merge "Add unit tests for checking responses in AccountController" 2016-02-19 07:23:53 +00:00
Tim Burke
002513d217 Make write-only container access consistent
Previously, if a user could write to (but not read from) a container,
the behavior for object POST would vary depending on whether
object_post_as_copy was enabled (403 response) or disabled (202
response).

Now, POSTs will consistently be allowed, regardless of whether fast-POST
is enabled.

Change-Id: I1d6dcbc4f5034a322a1073850fc3b059ebb1c0fa
2016-02-18 15:45:15 -08:00
Ondřej Nový
9a6c6b5571 Fixed log format in object auditor
Change-Id: I218e08446c5ffda2db7c774ec8bb9d28ce9f63e7
2016-02-18 17:38:42 +01:00
Jenkins
ebe61381c2 Merge "Keep the Usage of exit()/sys.exit() Consistent" 2016-02-18 14:26:49 +00:00
Kazuhiro MIYAHARA
c3201f256c Remove execute permissions from doc files and swift.conf-sample
Some doc files and swift.conf-sample were added execute permissions in past changes.
This patch remove execute permissions from them.

Change-Id: Id8844989a8321578e9207566ebd6660f5b9523f0
2016-02-18 08:52:03 +00:00
Jenkins
f73b7a5d64 Merge "Bump PyECLib requirement to >= 1.2.0" 2016-02-18 00:27:40 +00:00
Jenkins
8bec700e7b Merge "Add note on using printable chars for swift_hash_path_suffix/prefix" 2016-02-18 00:23:28 +00:00
Jenkins
6d6629f7b1 Merge "Added links to API reference and usage guides" 2016-02-17 22:03:58 +00:00
Christian Schwede
e46d6b1725 Add note on using printable chars for swift_hash_path_suffix/prefix
Using unprintable characters for swift_hash_path_prefix/suffix might lead to
hard problems when parsing of these values changes, for example due to newer
Python versions or changes in the parsers itself. Let's avoid this and add a
note that deployers should use printable strings for these values.

Change-Id: I976982b753b6af831ab91d7190f50f8f15bf73bf
2016-02-17 20:47:53 +01:00
Donagh McCabe
b8fa480808 Added links to API reference and usage guides
Added a link to the API reference (where headers and query
strings are documented; click the "detail" button to see).
Also added a reference to Swift section of the OpenStack end
user guide. This contains some additional details about the API.

No attempt was made to reconcile duplicate information. Instead
this patch links documents that might otherwise be overlooked.
However, I fixed text, originally in a table, that had become
garbled in a prior patch.

Change-Id: I0910cbeb0c8bffc00e510f35585603e7b7a67790
2016-02-17 18:39:22 +00:00
Jenkins
6a3b5f9aec Merge "Additional info log message for drive-audit" 2016-02-17 11:51:55 +00:00
Jenkins
1c2fe040fa Merge "Improved test coverage of form_signature" 2016-02-17 03:25:36 +00:00
Jenkins
2b6cb05aa8 Merge "Remove '#! /usr/bin/env python' from unexecutable files" 2016-02-17 02:23:36 +00:00
Jenkins
87f4a27337 Merge "Static methods should be @staticmethods" 2016-02-17 02:23:28 +00:00
Jenkins
d7529726b4 Merge "Fix missing txn_id logs in GreenAsyncPile's spawned functions" 2016-02-17 00:20:03 +00:00
Jenkins
222a644a7a Merge "Add SwiftHLM to associated projects" 2016-02-17 00:18:28 +00:00
Jenkins
6ef66378c9 Merge "Docstring omission in class BaseDiskFileManager." 2016-02-16 21:47:35 +00:00
Kazuhiro MIYAHARA
aa7204d106 Remove '#! /usr/bin/env python' from unexecutable files
'cli/recon.py' and 'cli/ring_builder_analyzer.py' have '#! /usr/bin/env
python' in spite of they don't have execute permissions.  This patch
removes '#! /usr/bin/env python' from them.

Change-Id: I1917ccc84b1673af3d862be1796f54595f94c5ca
2016-02-16 21:27:35 +00:00
Tim Burke
8eb30afd7c Static methods should be @staticmethods
Change-Id: Ifee5d68e00bbb3571aaac885cdd7490c79732985
2016-02-16 10:45:44 -08:00
Christian Schwede
42f4b3fc1e Add SwiftHLM to associated projects
Change-Id: I5ea3de34e61f22abec803b35fec8adde18a793e9
2016-02-16 13:53:52 +00:00
Ankur Gupta
025ebf2901 Docstring omission in class BaseDiskFileManager.
Added documentation for missing Docstring variables.

Change-Id: I29a53b8141c5607815f234a6123e2289200bca34
2016-02-16 11:30:42 +00:00
Janonymous
4906b4c431 Fix missing txn_id logs in GreenAsyncPile's spawned functions
This commit ensures that the logger thread_locals
value is passed to and set in _get_conn_response methods
executed in a green thread.

Added partial bug tag because in bug description a more
relevant fix is suggested which would fix the bug completely
but for now this makes sense to add this commit for logging.

Co-Authored-By: Clay Gerrard <clay.gerrard@gmail.com>
Change-Id: I13bbf174fdca89318d69bb0674ed23dc9ec25b9a
Partial-Bug: #1409302
2016-02-15 08:49:48 +05:30
Jenkins
7f230f82d3 Merge "Remove execute permission from swift/cli/ringbuilder.py" 2016-02-12 21:54:41 +00:00
Kazuhiro MIYAHARA
511a1b8698 Remove execute permission from swift/cli/ringbuilder.py
In Change-Id: Ia63f59a8faca1fad990784f27532ca07a2125454,
'bin/swift-ring-builder' is renamed to 'swift/cli/ringbuilder.py'.
However, execute permission and '#! /usr/bin/env python' are left on
the file.

This patch removes execute permission and '#! /usr/bin/env python'
from the file.

Change-Id: I66370f825ce9ed9a40ec21f2745aa6aff22c8709
2016-02-12 19:47:45 +00:00
Jenkins
e2c570c0ab Merge "Port parse_mime_headers() to Python 3" 2016-02-12 15:11:15 +00:00
Ondřej Nový
973d9358d2 Bump PyECLib requirement to >= 1.2.0
This was discussed at last Swift meeting [1] and conclusion was
to require newest PyECLib version.

[1] http://eavesdrop.openstack.org/meetings/swift/2016/swift.2016-02-10-21.00.log.html#l-268

Depends-On: I0fd58f26bc0a3e7715356ff74344981f22786152
Change-Id: I54e89d99b48e00e614d2d457814c00354763c83b
2016-02-12 15:00:46 +00:00
Jenkins
a5bdb45757 Merge "Fix typos in comments" 2016-02-12 11:41:02 +00:00
Tomas Matlocha
d3dd137cad Additional info log message for drive-audit
An additional info log message was added for case of
running drive-audit without failed device unmounting.

Change-Id: I11abee40a712b6c6de65e63626b6f7f0a9c9f4c7
2016-02-12 11:26:16 +01:00
Jenkins
791412f90d Merge "Make handoffs_first a more useful "mode"" 2016-02-12 03:26:17 +00:00
Jenkins
02fb983dc6 Merge "Removed unused parameter in server.py" 2016-02-12 00:39:57 +00:00
Sarafraj Singh
c4158bd674 Fixed params on autocreate_account docstring
... in proxy.controllers.base

Change-Id: Ic5c27cbf0f19b65fcaa3e6587583f03e56d646a0
2016-02-11 20:59:54 +00:00
Samuel Merritt
f56d18e143 Fix typos in comments
Change-Id: I4f98d447bd2ddd8eeb2f4da66d069bd7d6f00dc6
2016-02-11 10:59:43 -08:00
Jenkins
a2405e99af Merge "Add functional test for access control (RBAC) with Keystone" 2016-02-11 15:07:39 +00:00
Jenkins
bf4c26d7ef Merge "Enable in-process func tests to optionally use fast-post" 2016-02-11 08:29:56 +00:00
Jenkins
4322fa61a8 Merge "Script for checking sanity of manpages" 2016-02-11 06:14:13 +00:00
Jenkins
ca1a509979 Merge "Remove executable flag from sample config file" 2016-02-11 02:05:26 +00:00
Jenkins
74bebe82bc Merge "Removed default value for log_statsd_host" 2016-02-11 00:55:56 +00:00
Ondřej Nový
cc8dc88b55 Script for checking sanity of manpages
Change-Id: Ia27b0ecf6a3267eb51f8a6562721dca72f128915
2016-02-10 14:16:56 -08:00
root
bcada66b90 Removed unused parameter in server.py
The variable max_large_object_get_time is no longer used and was
removed to reflect the change.

Change-Id: I43051181dcb38245de6d13fab63876e83f46fc39
Closes-Bug: #1538834
2016-02-10 14:26:10 -06:00
gh159m
b5311f63db Removed default value for log_statsd_host
Multiple files and documents showed that log_statsd_host had
a default value, usually localhost.  This was incorrect, instead
setting a value for log_statsd_host enables statsd logging.

Removed any reference of log_statsd_host having a default value.

Also changed descriptions to show setting a value enables logging.

Change-Id: I3ca5c0e8b8e4981de3aa6db0c476072b5a59723d
Closes-Bug: #1542227
2016-02-10 10:36:59 -06:00