5581 Commits

Author SHA1 Message Date
Tin Lam
0e7fca576c Convert README.md to README.rst
Change-Id: I223890bd4ffe469becc2127f9362243cdb52bc08
Closes-Bug: #1567026
2016-04-12 17:46:56 -05:00
Jenkins
572be24cae Merge "Convert CONTRIBUTING.md to CONTRIBUTING.rst" 2016-04-12 14:15:06 +00:00
Jenkins
669dbd6411 Merge "Add unit tests for swift.account.reaper" 2016-04-12 11:04:18 +00:00
Jenkins
388a4edba6 Merge "Make DirectClientException report correct ip and port" 2016-04-12 10:37:07 +00:00
Jenkins
7c6b28348d Merge "Modified REPLICATE request to use replication_ip" 2016-04-12 10:29:31 +00:00
Jenkins
4c7086375a Merge "Additionally break container servers during fast-post probes" 2016-04-11 08:52:19 +00:00
Ondřej Nový
33f06dc48f Fixed Sphinx errors
doc/source/deployment_guide.rst:1372: ERROR: Malformed table.
swift/obj/diskfile.py:docstring of swift.obj.diskfile.BaseDiskFileManager.yield_hashes:13: ERROR: Unexpected indentation.
doc/source/ops_runbook/diagnose.rst:188: WARNING: Inline emphasis start-string without end-string.

Change-Id: Id20eb62eb5baebb3814e7af5676badb94f17dee5
2016-04-09 18:47:58 +02:00
Jenkins
130767cd97 Merge "Refactor CORS unit tests" 2016-04-09 02:00:14 +00:00
Jenkins
284b935330 Merge "Assert that ChunkWriteTimouts are not raised" 2016-04-09 01:58:51 +00:00
Tin Lam
a829bd5977 Convert CONTRIBUTING.md to CONTRIBUTING.rst
Change-Id: I64c42c42db35a9f55a1df9d4ab6e97a2506b8c45
Closes-Bug: #1567027
2016-04-08 19:18:16 -05:00
OpenStack Proposal Bot
a057c409ec Imported Translations from Zanata
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I9f4330ec20463e4d303e8ba3b67f86813a914ac5
2016-04-08 07:02:33 +00:00
Jenkins
ace3c0ace3 Merge "Fix infinite recursion during logging when syslog is down" 2016-04-07 22:13:20 +00:00
Alistair Coles
d09ef0da62 Assert that ChunkWriteTimouts are not raised
Follow up for change Ibbc89449e7878fc4215e47e3f7dfe4ae58a2d638
to add a test assertion that the ChunkWriteTimeout contexts are
exited without raising the timeout exception in
iter_bytes_from_response_part().

Change-Id: I6d323cb26779e457fb5940093a81b349b333a0af
2016-04-07 12:54:56 +01:00
Jenkins
5d15016669 Merge "remove unused current_status method" 2016-04-07 11:11:17 +00:00
Jenkins
342bf6a2b9 Merge "Imported Translations from Zanata" 2016-04-07 09:06:27 +00:00
OpenStack Proposal Bot
7c0f58ec2e Imported Translations from Zanata
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: Ib80e3a759fa1e4a99576710607ad07fc5f259527
2016-04-07 07:00:08 +00:00
Nguyen Hung Phuong
edc413b85e Fix typos in Swift files
Change-Id: I39dbf55c094c42347b57ef67520abff9e6fc24bc
2016-04-07 13:33:20 +07:00
Samuel Merritt
95efd3f903 Fix infinite recursion during logging when syslog is down
Change-Id: Ia9ecffc88ce43616977e141498e5ee404f2c29c4
2016-04-06 15:45:20 -07:00
Thiago da Silva
0bf518e3b0 remove unused current_status method
Change-Id: I574919eaa14cadc800f3a1f6014221ee382ee7e0
Signed-off-by: Thiago da Silva <thiago@redhat.com>
2016-04-06 16:58:36 -04:00
Jenkins
475e448366 Merge "Shutdown backend EC connection contexts on disconnect" 2016-04-06 17:28:42 +00:00
Jenkins
669c3f1e7e Merge "added javaswift to associated projects" 2016-04-06 15:28:02 +00:00
Alistair Coles
5d56f40f04 Make DirectClientException report correct ip and port
When direct_client.direct_get_suffix_hashes raises a
DirectClientException the exception message and variables
should report the replication_ip and replication_port, as
opposed to the ip and port values reported for all other
case when the exception is raised.

Add option to override ip and port reported in
DirectClientException.

Also adds unit tests to verify both cases.

Related-Bug: 1566395
Change-Id: If3d952847c7199f4e9f6164858085367266386d2
2016-04-06 11:57:41 +01:00
Kota Tsuyuzaki
e15bceaa7e Refactor CORS unit tests
This is a follow-up patch for https://review.openstack.org/#/c/258392/
That one added good unit test cases for various kinds of
allowe_origin like '*' or ''(empty). However, the result of handling
in Swift proxy will depend on strict_cors_mode option configuration.

This patch refactors the unit tests to split out for
strict_cors_mode = on/off and add some missing unit tests for
each case.

Change-Id: I55f7cd279436b5c9f71d81fecf06021380e35579
2016-04-06 06:30:02 +00:00
Sivasathurappan Radhakrishnan
950b601a9c Modified REPLICATE request to use replication_ip
direct_client.direct_get_suffix_hashes doesn't use replication ip and
port for REPLICATE request. Since we have an option of doing
replication in separate network, we can add replication_ip and port
while creating rings if not it will get filled in with the regular
node's ip.

Change-Id: I34067df27042fc3146b795191ab8043ee1aed3ce
Closes-Bug:1566395
2016-04-05 22:45:17 +00:00
Jenkins
645002b956 Merge "Fix strings with positional arguments" 2016-04-05 18:39:17 +00:00
Jenkins
da6031067e Merge "Fix upgrade bug in versioned_writes" 2016-04-04 21:46:23 +00:00
Thiago da Silva
a460e5affe added javaswift to associated projects
Change-Id: I139ac3acb1c7d2498e87df554b81824ada2dbd00
Signed-off-by: Thiago da Silva <thiago@redhat.com>
2016-04-04 16:27:14 -04:00
Cheng Li
4e412e0cd8 Fix strings with positional arguments
As descriped in develop guideline,
Any message with more than one variable should use
named interpolation instead of positional
http://docs.openstack.org/developer/oslo.i18n/guidelines.html#adding-variables-to-translated-messages

Change-Id: Ia25517cfb52037cf49d0a6ebf528344267fb22cd
Closes-bug:#1559431
2016-04-03 21:24:33 +08:00
KATO Tomoyuki
ee6af69af4 [docs] Update Administrator Guide URL
Change-Id: I7f6f4ffb7033d2a321362c91e05f1576847939b0
2016-04-01 23:38:49 +09:00
Jenkins
f227072974 Merge "Correctly handle keys starting with the delimiter." 2016-04-01 02:02:44 +00:00
Tim Burke
ebf0b22012 Fix upgrade bug in versioned_writes
Previously, versioned_writes assumed that all container servers would
always have the latest Swift code, allowing them to return reversed
listings. This could cause the wrong version of a file to be restored
during rolling upgrades.

Now, versioned_writes will check that the listing returned is actually
reversed. If it isn't, we will revert to getting the full (in-order)
listing of versions and reversing it on the proxy.

Change-Id: Ib53574ff71961592426cb386ef00a75eb5824def
Closes-Bug: 1562083
2016-03-31 15:43:02 -07:00
Jenkins
e786d01192 Merge "Simplify policy-name validation slightly" 2016-03-30 21:01:17 +00:00
Nguyen Hung Phuong
59bbe27fb0 Fix typos in Swift files
Change-Id: I34e0c9a888127704ac1910e73ddd14e27ebade13
2016-03-30 04:15:23 +00:00
Tim Burke
7be55acf1b Simplify policy-name validation slightly
_validate_policy_name always either returns True or raises an exception.
Simplify it to just being a callable that may raise an exception.

Also, move the check for blank/None names into _validate_policy_name, so
it will be applied in more cases.

Change-Id: I7832a0c9c895cd75ba4c6d0e8b5568a3c8a0ea25
2016-03-29 19:41:23 -07:00
Jenkins
c4bff88b09 Merge "Fix account-reaper unable to delete all containers." 2016-03-30 00:39:23 +00:00
Jenkins
fe4672e529 Merge "Ignore files in the devices directory when auditing objects" 2016-03-29 18:14:02 +00:00
Jenkins
f8867fd6ff Merge "Fix py34 error of indexing 'dict_keys' object" 2016-03-29 10:21:27 +00:00
OpenStack Proposal Bot
5902015fa8 Imported Translations from Zanata
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I3b5d401649fa3dea6dc43654516f7075bb06ee0d
2016-03-26 06:35:18 +00:00
Clay Gerrard
7402d7d9cf Shutdown backend EC connection contexts on disconnect
When eventlet.wsgi closes an ECAppIter on client disconnect we need to
make sure our sub-iterators are also closed.  We already kill the
backend sockets, but the executing contexts are left running until
they timeout.  A slow client can result in needlessly holding queued
backend fragments until the client_timeout (default 60s).

Update associated test that exposed the problem to demonstrate the
issue more quickly.

Change-Id: Ibbc89449e7878fc4215e47e3f7dfe4ae58a2d638
2016-03-25 12:12:14 -07:00
Jenkins
64701d4921 Merge "Removing some redundant words" 2016-03-25 11:21:36 +00:00
Anh Tran
2f7d0f4a2a Removing some redundant words
This patch removes some redundant words.

Change-Id: Ia79717664b06ed9a41c3c5dcf1a25e9e49e21cf2
2016-03-25 17:20:24 +07:00
OpenStack Proposal Bot
925546ae8a Imported Translations from Zanata
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I6ba2f35913e6ae83607b5e268645432d455d587c
2016-03-25 06:36:40 +00:00
Jenkins
cfb0b6a029 Merge "Handle tempurl Content-Disposition header missing from HEAD" 2016-03-24 22:19:24 +00:00
Jenkins
e0bac5e9e8 Merge "Check marker params in SimpleClient full listing requests" 2016-03-24 20:20:20 +00:00
Jenkins
9c014e855c Merge "Fix full_listing in internal_client" 2016-03-24 20:19:29 +00:00
David Liu
3407d737c7 Handle tempurl Content-Disposition header missing from HEAD
Content-Disposition headers should make no difference between
GET and HEAD according to HTTP rfc.

Closes-Bug: #1539805

Change-Id: Ifa41a7cda2f321eb8e36420ede7912ed0a549712
2016-03-24 16:12:46 +08:00
Alistair Coles
2f24fb9683 Check marker params in SimpleClient full listing requests
Follow up for change [1] to add some assertions to check that
marker param is included in sequential GET requests sent during
a full listing.

Extract multiple FakeConn class definitions to single class at
module level and share between all classes.

Also, explicitly unpack the return values from base request calls
made in the full listing section of base_request, and explicitly
return a list to make more consistent with rest of the method.

[1] Change-Id: I6892390d72f70f1bc519b482d4f72603e1570163

Change-Id: Iad038709f46364b8324d25ac79be4317add79df5
2016-03-23 23:14:06 +00:00
Christian Schwede
a696c1e89e Fix full_listing in internal_client
The internal_client is used in swift-dispersion-report, and in case one has more
than 10000 containers or objects these are not queried.

This patch adds support to the internal_client to iterate over all
containers/objects if the listing exceeds the default of 10000 entries and the
argument full_listing=True is used.

Closes-Bug: 1314817
Closes-Bug: 1525995
Change-Id: I6892390d72f70f1bc519b482d4f72603e1570163
2016-03-23 23:03:42 +00:00
John Dickinson
5d00ce9e3a 2.7.0 authors and changelog updates
Change-Id: I16ad0c61b048921ca01fa96862ae7eea0eec6017
2016-03-23 15:26:41 -07:00
Jenkins
4be3701805 Merge "Auditor will clean up stale rsync tempfiles" 2016-03-23 22:21:51 +00:00