5419 Commits

Author SHA1 Message Date
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
Clay Gerrard
db87a5a988 Mock sleep in direct_client retry tests
... and fixup some assertions, and other mocks

Change-Id: Iadf839d1d3d735109fed24049fc3d829776b7b65
2016-02-16 10:52:01 -08:00
Tim Burke
8eb30afd7c Static methods should be @staticmethods
Change-Id: Ifee5d68e00bbb3571aaac885cdd7490c79732985
2016-02-16 10:45:44 -08:00
Chaozhe.Chen
4a44e27e00 Replace assertEqual(None, *) with assertIsNone in tests
As swift no longer supports Python 2.6, replace assertEqual(None, *)
with assertIsNone in tests to have more clear messages in case of
failure.

Change-Id: I94af3e8156ef40465d4f7a2cb79fb99fc7bbda56
Closes-Bug: #1280522
2016-02-16 23:49:06 +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
Jenkins
4e370e5116 Merge "Port FileLikeIter to Python 3" 2016-02-10 07:36:51 +00:00
Jenkins
45a7a15674 Merge "Insert versioned_writes in correct pipeline position" 2016-02-09 21:59:17 +00:00
Christian Berendt
b98c1c60f9 Remove executable flag from sample config file
swift.conf-sample should not be executbale

Change-Id: I960058e2af10b43efc6324a7534d9a23c810e39a
2016-02-09 12:57:24 +00:00
Jenkins
b140d7d8b8 Merge "Changed EC backend from jerasure to liberasurecode in examples and docs" 2016-02-09 08:04:21 +00:00
Alistair Coles
87fc21c7cf Speed up functional testing
test/functional/tests.py:TestObjectVersioningUTF8 does not clean
up the versions files it creates because the class's multiple
inheritance is such that it does not call the tearDown method in
TestObjectVersioning.

As a result, any attempt to clean up account containers wastes
time retrying container delete requests. This occurs either in
the setUp for TestSloEnv, if the TestSlo class is included in a
test run, or in the tests.py package tearDown method.

On the author's dev machine this patch reduces the execution
time of functional tests in tests.py by approx 30% or 1 minute.

Change-Id: I8194672bf2ca82435df5868720b6a55a79b94413
2016-02-08 15:56:20 +00:00
Jenkins
76c38670c2 Merge "Fix missing Accept-Ranges" 2016-02-08 12:33:25 +00:00
Jenkins
98589640ce Merge "Monkeypatch everything the same" 2016-02-08 10:35:03 +00:00
Mingyu Li
3b94bd4540 Keep the Usage of exit()/sys.exit() Consistent
It's better to keep the usage of exit()/sys.exit() consistent
in one file. Furthermore, sys.exit() is considered good to be
used in production code, while exit is for interactive shell.

Change-Id: Ia3092853a648922588e2bc11db37d6decdec1b48
2016-02-07 21:41:08 +08:00
janonymous
f05da4c8fa Changing the base version to python2.7 for pep8 checks
tox was taking python3 as it's base version which lead to
tox pep8 check failing on local env:
http://paste.openstack.org/show/486183/

Change-Id: Ia822ec5b5e12a1fc30b676f1e6d95e287b9b3368
2016-02-06 16:59:57 +05:30
Sarafraj Singh
13edc9a865 Improved test coverage of form_signature
Added four new test cases to execute path of invalid arguments. This
improved test coverage of file specified from 80% to 91%.

Change-Id: I63c2e7bab3f01121301d78b687687208a58401c0
2016-02-05 19:17:30 +00:00
Kota Tsuyuzaki
b173995666 Fix missing Accept-Ranges
Since commit 4f2ed8bcd0468f3b69d5fded274d8d6b02ac3d10, the response
header for GET EC object doesn't include the Accept-Ranges header.

This patch fixes it and also adds a few unittests to prevent regression.

Closes-Bug: #1542168

Change-Id: Ibafe56ac87b14bc0028953e620a653cd68dd3f84
2016-02-04 21:53:58 -08:00
Jenkins
e6c28c4ac7 Merge "Fixed manpages errors." 2016-02-05 04:22:32 +00:00
Richard Hawkins
d78e861d85 Add option for label to static web listings
By default listings are rendered with a label of:
"Listing of /v1/account/container/path"

This change adds a new custom metadata key/value pair
"X-Container-Meta-Web-Listings-Label: <label>" that
when set, will cause the following:
"Listing of <label>/path" to be rendered instead.

Change-Id: I47c5d21834f47e566b380920196926882ff83abf
2016-02-04 18:14:51 +00:00
Jenkins
ab448f2b6d Merge "Stop nesting functions unnecessarily" 2016-02-04 15:43:05 +00:00
Ondřej Nový
ae632abbd8 Fixed manpages errors.
account-server.conf.5
105: warning: numeric expression expected (got `)')

container-server.conf.5
111: warning: numeric expression expected (got `)')

object-expirer.conf.5
79: warning: numeric expression expected (got `)')

object-server.conf.5
114: warning: numeric expression expected (got `)')

proxy-server.conf.5
121: warning: numeric expression expected (got `)')
331: warning: numeric expression expected (got `[')
1005: warning: macro `*' not defined

Change-Id: I203dcfde83035e3b1dcb91109b72b5d08bb7840e
2016-02-04 16:20:14 +01:00
Alistair Coles
f2fca9aafa Fix time-shifting of objects PUT with container-sync
When container-sync PUTs an object to a destination container
it uses the timestamp from the container row rather than the
actual timestamp of the object being copied. The actual timestamp
of the object can be newer, so the sync'd object may end up with
the right content but at the wrong, older, timestamp.

This patch changes the timestamp sent with the sync'd object
to be that of the actual source object being sent.

Drive-by fix to make code more readable by removing a variable
rename mid-function, fix a typo and remove a redundant function
call.

Change-Id: I800e6de4cdeea289864414980a96f5929281da04
Closes-Bug: #1540884
2016-02-04 13:28:06 +00:00
Jenkins
3281b2cb7d Merge "Fixing typo in unit test" 2016-02-04 12:10:34 +00:00
venkatamahesh
050e3b35dd Use uppercase 'S' in word "OpenStack"
Change-Id: I4692aa58b5173b1b662d5eee19fac770ae5aaed0
2016-02-04 16:48:13 +05:30
Jenkins
eaf6af3179 Merge "Allow IPv6 addresses/hostnames in StatsD target" 2016-02-04 03:23:01 +00:00