edc413b85ec2b703d7506be9c4801eb347611c58
Commit Graph

5558 Commits

This Branch
This Branch
All Branches
Author SHA1 Message Date
Nguyen Hung Phuong
edc413b85e Fix typos in Swift files
Change-Id: I39dbf55c094c42347b57ef67520abff9e6fc24bc
2016年04月07日 13:33:20 +07: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
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" 2.7.0 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
Christian Schwede
51bea3943f Ignore files in the devices directory when auditing objects
The object auditor raises an exception if there are some files in
/srv/node (or any other defined "devices" directory). This change
simply skips any file in the devices directory when generating
locations for the object auditor.
Change-Id: I934594994adc577799723edb6c5648685682a9e7
2016年03月23日 21:58:13 +00:00
Jenkins
deded2e7a1 Merge "Container-Sync to perform HEAD before PUT object on remote" 2016年03月23日 20:44:37 +00:00
Clay Gerrard
1d03803a85 Auditor will clean up stale rsync tempfiles
DiskFile already fills in the _ondisk_info attribute when it tries to open
a diskfile - even if the DiskFile's fileset is not valid or deleted.
During this process the rsync tempfiles would be discovered and logged,
but no-one would attempt to clean them up - even if they were really old.
Instead of logging and ignoring unexpected files when validate a DiskFile
fileset we'll add unexpected files to the unexpected key in the
_ondisk_info attribute.
With a little bit of re-organization in the auditor's object_audit method
to get things into a single return path we can add an unconditional check
for unexpected files and remove those that are "old enough".
Since the replicator will kill any rsync processes that are running longer
than the configured rsync_timeout we know that any rsync tempfiles older
than this can be deleted.
Split unlink_older_than in common.utils into two functions to allow an
explicit list of previously discovered paths to be passed in to avoid an
extra listdir. Since the getmtime handling already ignores OSError
there's less concern of race condition where a previous discovered
unexpected file is reaped by rsync while we're attempting to clean it up.
Update some doc on the new config option.
Closes-Bug: #1554005
Change-Id: Id67681cb77f605e3491b8afcb9c69d769e154283
2016年03月23日 19:34:34 +00:00
OSHRITF
125d18e0ff Container-Sync to perform HEAD before PUT object on remote
This change adds a remote HEAD object request before each call to
sync_row.
Currently, container-sync-row attempts to replicate the object
(using PUT) regardless of the existance of the object on the remote side,
thus causing each object to be transferred on the wire several times
(depending on the replication factor)
An alternative to HEAD is to do a conditional PUT (using, 100-continue).
However, this change is more involved and requires upgrade of both the
client and server side clusters to work.
In the Tokyo design summit it was decided to start with the HEAD approach.
Change-Id: I60d982dd2cc79a0f13b0924507cd03d7f9c9d70b
Closes-Bug: #1277223 
2016年03月23日 17:42:48 +00:00
Jenkins
32847d2f48 Merge "Docs: Container sync does not require POST-as-COPY" 2016年03月23日 17:08:26 +00:00
OpenStack Proposal Bot
eecb1f2d54 Imported Translations from Zanata
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure
Change-Id: Ia2c2819db372da46538d71a80888a4e27538bdcd
2016年03月23日 06:16:13 +00:00
Jenkins
d9a4f18b49 Merge "Make the object auditor's run-once mode run once." 2016年03月22日 19:47:41 +00:00
Jenkins
20542f4c96 Merge "Add .eggs/* to .gitignore" 2016年03月22日 18:30:39 +00:00
Jenkins
e41c593984 Merge "Remove unused code from container sync" 2016年03月22日 15:16:33 +00:00
Jenkins
fd0bcba672 Merge "Container sync nodes shuffle cleanup" 2016年03月22日 11:59:21 +00:00
Alistair Coles
2afa3681cb Add .eggs/* to .gitignore
After running:
 python setup.py build_sphinx
there is a .eggs directory left in the repo root directory
which is not currently ignored by git.
Change-Id: Id15811f94046fd8bb22153425bf5cafe6c045453
2016年03月22日 11:53:49 +00:00
Alistair Coles
736de613f1 Docs: Container sync does not require POST-as-COPY
Updates docs to remove warnings that container sync only
works with object_post_as_copy=True. Since commit e91de49
container sync will also sync POST updates when using
object_post_as_copy=False.
Change-Id: I5cc3cc6e8f9ba2fef6f896f2b11d2a4e06825f7f
2016年03月22日 11:36:32 +00:00
Alistair Coles
88b5758957 Remove unused code from container sync
Change-Id: Ia44138aadcd30c474f744a9c552220e18302ecc6
2016年03月22日 11:10:41 +00:00
Jenkins
d08ed1011d Merge "Set backend content length for fallocate - EC Policy" 2016年03月22日 09:13:10 +00:00
OpenStack Proposal Bot
365276464c Imported Translations from Zanata
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure
Change-Id: I70db7d29a9859cb47144ac49df8c289d1c2ec3e6
2016年03月22日 06:16:34 +00:00
Jenkins
b9314d7c11 Merge "Skip already checked partitions when auditing objects after a restart" 2016年03月22日 03:43:34 +00:00
Christian Schwede
fd86d5a95d Skip already checked partitions when auditing objects after a restart
The object auditor will save a short status file on each device, containing a
list of remaining partitions for auditing. If the auditor is restarted, it will
only audit partitions not yet checked. If all partitions on the current device
have been checked, it will simply skip this device. Once all partitions on all
disks are successfully audited, all status files are removed.
Closes-Bug: #1183656
Change-Id: Icf1d920d0942ce48f1d3d374ea4d63dbc29ea464
2016年03月21日 15:39:01 -04:00
Jenkins
62fb544224 Merge "Don't ssync data when only a durable is missing" 2016年03月21日 15:31:02 +00:00
Jenkins
919608caaf Merge "Don't report recon mount/usage status on files" 2016年03月21日 09:35:39 +00:00
Jenkins
9282a9bae4 Merge "Fix ringbuilder tests" 2016年03月21日 09:33:58 +00:00
OpenStack Proposal Bot
b685e85135 Imported Translations from Zanata
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure
Change-Id: I3cae432fdcf311bc3654956a1f61ce22ecae0933
2016年03月21日 06:16:52 +00:00