summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* OpenDev Migration Patchpike-eolstable/pikeOpenDev Sysadmins2019-04-192-7/+7
| | | | | | | | | | | | | | | This commit was bulk generated and pushed by the OpenDev sysadmins as a part of the Git hosting and code review systems migration detailed in these mailing list posts: http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html Attempts have been made to correct repository namespaces and hostnames based on simple pattern matching, but it's possible some were updated incorrectly or missed entirely. Please reach out to us via the contact information listed at https://opendev.org/ with any questions you may have.
* Use Swift's in-tree DSVM testpike-em3.4.1Tim Burke2018-09-121-6/+64
| | | | | | | | | | | | | | | | While we're at it, make a new job that inherits from it to bring the legacy-swiftclient-dsvm-functional testing in-tree, too. For naming, follow naming policy and remove "dsvm" from names. Remove legacy jobs, they are not needed anymore. Note this backport follows change 600346 and uses an identity-v2 job in addition. Change-Id: I919c0b77ac4888350194f55a9c12e0742845024f Depends-On: https://review.openstack.org/600346 (cherry picked from commit 70e20b62e6719c97267aa0e5a80dae2e31dfba76)
* import zuul job settings from project-configNguyen Hai2018-08-284-36/+31
| | | | | | | | | | | | | | | | | | | | This is a mechanically generated patch to complete step 1 of moving the zuul job settings out of project-config and into each project repository. Because there will be a separate patch on each branch, the branch specifiers for branch-specific jobs have been removed. Because this patch is generated by a script, there may be some cosmetic changes to the layout of the YAML file(s) as the contents are normalized. See the python3-first goal document for details: https://governance.openstack.org/tc/goals/stein/python3-first.html Change-Id: Iad080827488c1938eacd620238cf53c1318fcc62 Story: #2002586 Task: #24337
* Add support for versionless endpointsChristian Schwede2017-09-192-2/+35
| | | | | | | | | | | | | | | Newer deployments are using versionless Keystone endpoints, and most OpenStack clients already support this. This patch enables this for Swift: if an auth_url without any path component is found, it assumes a versionless endpoint will be used. In this case the v3 suffix will be appended to the path if none auth_version is set, and v2.0 is appended if auth_version requires v2. Closes-Bug: 1554885 Related-Bug: 1691106 Change-Id: If7ecb67776cb77828f93ad8278cc5040015216b7 (cherry picked from commit 2ff3102cf779a507af8fa39296154a17a60f540a)
* Update UPPER_CONSTRAINTS_FILE for stable/pikeOpenStack Release Bot2017-07-281-1/+1
| | | | Change-Id: I2877028999b110cf2f3ceac5f8743189dd9d29fa
* Update .gitreview for stable/pikeOpenStack Release Bot2017-07-281-0/+1
| | | | Change-Id: Ib8c97110142b06cf0c1d0d2f7173fc631d28d39d
* 3.4.0 authors/changelog update3.4.0John Dickinson2017-07-263-0/+55
| | | | Change-Id: Ib6a7c97ff90f03a26fe7396c0104c5a0c483c226
* Allow for uploads from standard input.Timur Alperovich2017-07-265-10/+74
| | | | | | | | | | | | | If "-" is passed in for the source, python-swiftclient will upload the object by reading the contents of the standard input. The object name option must be set, as well, and this cannot be used in conjunction with other files. This approach stores the entire contents as one object. A follow on patch will change this behavior to upload from standard input as SLO, unless the segment size is larger than the content size. Change-Id: I1a8be6377de06f702e0f336a5a593408ed49be02
* moved cli doc to the right place for new links processJohn Dickinson2017-07-262-1/+1
| | | | Change-Id: I5d2f681ba5ce1f95d006eb7208cdb388a64811c9
* Update the documentation link for doc migrationHangdong Zhang2017-07-244-6/+6
| | | | Change-Id: I1a5a354675b3ca6a7dbb5ab2dc78bf60209fa2b5
* merged openstack-manuals content with existing contentJohn Dickinson2017-07-211-116/+632
| | | | Change-Id: I05bc8f80daefbb32f32727550a9cbe43e9754e2f
* Buffer reads from diskTim Burke2017-07-113-19/+20
| | | | | | | Otherwise, Python defaults to 8k reads which seems kinda terrible. Change-Id: I3160626e947083af487fd1c3cb0aa6a62646527b Closes-Bug: #1671621
* Option to ignore mtime metadata entry.Christopher Bartz2017-07-065-2/+64
| | | | | | | | | | | | | | | Currently, the swiftclient upload command passes a custom metadata header for each object (called object-meta-mtime), whose value is the current UNIX timestamp. When downloading such an object with the swiftclient, the mtime header is parsed and passed as the atime and mtime for the newly created file. There are use-cases where this is not desired, for example when using tmp or scratch directories in which files older than a specific date are deleted. This commit provides a boolean option for ignoring the mtime header. Change-Id: If60b389aa910c6f1969b999b5d3b6d0940375686
* Merge "Skip checksum validation on partial downloads"Jenkins2017-06-222-0/+11
|\
| * Skip checksum validation on partial downloadsTim Burke2017-04-212-0/+11
| | | | | | | | | | | | | | | | If we get back some partial content, we can't validate the MD5. That's OK. Change-Id: Ic1d65272190af0d3d982f3cd06833cac5c791a1e Closes-Bug: 1642021
* | Merge "Tolerate RFC-compliant ETags"Jenkins2017-06-222-22/+43
|\ \ | |/
| * Tolerate RFC-compliant ETagsTim Burke2017-04-212-22/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since time immemorial, Swift has returned unquoted ETags for plain-old Swift objects -- I hear tell that we once tried to change this, but quickly backed it out when some clients broke. However, some proxies (such as nginx) apparently may force the ETag to adhere to the RFC, which states [1]: An entity-tag consists of an opaque *quoted* string (emphasis mine). See the related bug for an instance of this happening. Since we can still get the original ETag easily, we should tolerate the more-compliant format. [1] https://tools.ietf.org/html/rfc2616.html#section-3.11 or, if you prefer the new ones, https://tools.ietf.org/html/rfc7232#section-2.3 Change-Id: I7cfacab3f250a9443af4b67111ef8088d37d9171 Closes-Bug: 1681529 Related-Bug: 1678976
* | Merge "Stop sending X-Static-Large-Object headers"Jenkins2017-06-142-2/+0
|\ \
| * | Stop sending X-Static-Large-Object headersTim Burke2017-04-102-2/+0
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | If we were to include this in a normal PUT, it would 400, but only if slo is actually in the pipeline. If it's *not*, we'll create a normal Swift object and the header sticks. - This is really confusing for users; see the related bug. - If slo is later enabled in the cluster, Swift starts responding 500 with a KeyError because the client and on-disk formats don't match! Change-Id: I1d80c76af02f2ca847123349224ddc36d2a6996b Related-Change: I986c1656658f874172860469624118cc63bff9bc Related-Bug: #1680083
* | Merge "Do not set Content-Type to '' with new requests."Jenkins2017-06-132-4/+21
|\ \
| * | Do not set Content-Type to '' with new requests.Timur Alperovich2017-06-132-4/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, python-swiftclient worked around a requests issue where Content-Type could be set to application/x-www-form-urlencoded when using python3. This issue has been resolved and a fix released in requests 2.4 (fixed in subsequent releases as well). The patch makes the workaround conditional on the requests version, so that with sufficiently new requests libraries, the Content-Type is not set. For reference, requests 2.4 was released August 29th, 2014. The specific issue filed in the requests tracker is: https://github.com/requests/requests/issues/2071. Related-Change: I035f8b4b9c9ccdc79820b907770a48f86d0343b4 Closes-Bug: #1433767 Change-Id: Ieb2243d2ff5326920a27ce8c3c6f0f5c396701ed
* | | Merge "Fix MockHttpResponse to be more like the Real"Jenkins2017-06-121-44/+31
|\ \ \ | |/ / |/| |
| * | Fix MockHttpResponse to be more like the RealClay Gerrard2017-03-081-44/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change pulls out that relatively new [1] little string to pull at in the MockHttpResponse that I think is sorta ugly. And replaces it with the correct behavior that's representative of the Real for which it's standing in (which is sadly our wrapper to make a requests response feel like a httplib.HTTPResponse). It's not clear (to me) the history which allowed this difference in the behavior of the Real and Fake to persist - it seems to have always been this way [2]. I also reworded a relatively new test [1] to cover more code, and make assertions on the desired behavior of the client instead of "just" the http_log method. FWIW, I don't think there was necessarily anything wrong with the scope of the new test [1] - and it certainly makes sense to see new tests copy nearby existing tests. But I subjectively think this smaller test is more demonstrative of the desired behavior. 1. Related-Change-Id: I6d7ccbf4ef9b46e890ecec58842c5cdd2804c7a9 2. Related-Change-Id: If07af46cb377f3f3d70f6c4284037241d360a8b7 Change-Id: Ib99a029c1bd1ea1efa8060fe8a11cb01deea41c6
* | | Merge "ISO 8601 timestamps for tempurl"Jenkins2017-05-186-62/+310
|\ \ \
| * | | ISO 8601 timestamps for tempurlChristopher Bartz2017-03-296-62/+310
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Client-side implementation for ISO 8601 timestamp support of tempurl middleware. Please see https://review.openstack.org/#/c/422679/ Change-Id: I76da28b48948475ec1bae5258e0b39a316553fb7
* | | | respect bulk delete page size and fix logic errorJohn Dickinson2017-04-203-32/+156
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, using SwiftService to delete "many" objects would use bulk delete if available, but it would not respect the bulk delete page size. If the number of objects to delete exceeded the bulk delete page size, SwiftService would ignore the error and nothing would be deleted. This patch changes _should_bulk_delete() to be _bulk_delete_page_size(); instead of returning a simple True/False, it returns the page size for the bulk deleter, or 1 if objects should be deleted one at a time. Delete SDK calls are then spread across multiple bulk DELETEs if the requested number of objects to delete exceeds the returned page size. Fixed the logic in _should_bulk_delete() so that if the object list is exactly 2x the thread count, it will not bulk delete. This is the natural conclusion following the logic that existed previously: if the delete request can be satisfied by every worker thread doing one or two tasks, don't bulk delete. But if it requires a worker thread to do three or more tasks, do a bulk delete instead. Previously, the logic would mean that if every worker thread did exactly two tasks, it would bulk delete. This patch changes a "<" to a "<=". Closes-Bug: 1679851 Change-Id: I3c18f89bac1170dc62187114ef06dbe721afcc2e
* | | Optimize the link addressM V P Nitesh2017-04-101-2/+2
|/ / | | | | | | | | | | Use https instead of http to ensure the safety Change-Id: I1e072bd3288f2de530ac22a4e99899f18f1ceaf3
* | Fix some reST field lists in docstringsliuyamin2017-03-292-11/+11
| | | | | | | | | | | | | | | | | | | | Probably the most common format for documenting arguments is reST field lists [1]. This change updates some docstrings to comply with the field lists syntax. [1] http://sphinx-doc.org/domains.html#info-field-lists Change-Id: Ic011fd3e3a8c5bafa24a3438a6ed5bb126b50e95
* | Removing duplicated doc from client-apiNelson Marcos2017-03-271-20/+0
| | | | | | | | Change-Id: I1a9ef0c33c68a32808686194c74c27d66d2617e0
* | Merge "[trivial] Be consistent in using example.com"Jenkins2017-03-222-3/+3
|\ \
| * | [trivial] Be consistent in using example.comPetr Kovar2017-03-132-3/+3
| | | | | | | | | | | | | | | | | | * Use distro-agnostic example.com in all examples. Change-Id: If0a7217b7312875bb4ca8258f4ef86c52cd2e577
* | | Merge "Close file handle after upload job"Jenkins2017-03-202-70/+106
|\ \ \
| * | | Close file handle after upload jobKazufumi Noto2017-03-162-70/+106
| |/ / | | | | | | | | | | | | | | | | | | | | | The opened file for upload is not closed. This fix prevents possible file handle leak. Closes-Bug: #1559079 Change-Id: Ibc58667789e8f54c74ae2bbd32717a45f7b30550
* | | Merge "Don't recommend to overwrite imported `session` variable"Jenkins2017-03-171-2/+2
|\ \ \ | |/ / |/| |
| * | Don't recommend to overwrite imported `session` variableKota Tsuyuzaki2017-03-161-2/+2
| | | | | | | | | | | | Change-Id: I34e25e674aac3a85a4702779053d95962b292281
* | | Change swift.o.o URLAndreas Jaeger2017-03-081-1/+1
| |/ |/| | | | | | | | | | | This is an obsolete URL that redirects, use docs.o.o - and use https for it. Change-Id: I7ba2c49db2c620071f8eeb96d0b63af8381ed899
* | Fix logging of the gzipped bodyVitaly Gridnev2017-03-084-5/+73
| | | | | | | | | | Change-Id: I6d7ccbf4ef9b46e890ecec58842c5cdd2804c7a9 Closes-bug: 1670620
* | Expose --prefix as an option for st_deleteJoel Wright2017-02-231-1/+3
| | | | | | | | | | | | | | | | | | The SwiftService and shell support the ability to limit deletions to only those objects that match a specified prefix, so let's expose that (really useful) behaviour in the command line help as well :) Change-Id: I9ef177aa96e4829196b5200dd8e9d0d2f7f89b63
* | 3.3.0 authors/changelog updateocata-em3.3.0John Dickinson2017-01-253-1/+23
| | | | | | | | Change-Id: Idc92915d5b23019bc0d65d17b1f5104b3dca57ee
* | Merge "Make functests py3-compatible"Jenkins2017-01-241-15/+20
|\ \
| * | Make functests py3-compatibleTim Burke2016-08-241-15/+20
| | | | | | | | | | | | Change-Id: I2b3bf17e874cf049eccab4c85ceac7da10d258ef
* | | Merge "Accept more types of input for headers/meta"Jenkins2017-01-243-12/+37
|\ \ \
| * | | Accept more types of input for headers/metaTim Burke2016-11-183-12/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, we only accepted iterables of strings like 'Header: Value'. Now, we'll also accept lists of tuples like ('Header', 'Value') as well as dictionaries like {'Header': 'Value'}. This should be more intuitive for application developers, who are already used to being able to pass dicts or lists of tuples to libraries like requests. Change-Id: I93ed2f1e8305f0168b7a4bd90c205b04730da836
* | | | Merge "Add Constraints support"Jenkins2017-01-243-4/+41
|\ \ \ \
| * | | | Add Constraints supportTony Breeds2016-12-273-4/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adding constraints support to libraries is slightly more complex than services as the libraries themselves are listed in upper-constraints.txt which leads to errors that you can't install a specific version and a constrained version. This change adds constraints support by also adding a helper script to edit the constraints to remove python-swiftclient. Change-Id: I3947a6165eaa9f5cb62a7df4f5a2c16065da2f1d
* | | | | prefix-based tempurls supportChristopher Bartz2017-01-196-16/+102
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implements client-side functionality for prefix-based tempurls. Please see: https://review.openstack.org/#/c/274048/ Change-Id: I8d7701daee888ed1120271a96c0660b01543ca2d
* | | | Fix typo in shell.pyzhangyanxian2016-12-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | TrivialFix Change-Id: I0b0a21df1433ec8f355c452c91a818feb9f6f134
* | | | Typo fixwangxiyuan2016-12-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Change "novaclient" to "swiftclient" Change-Id: I685b476cb05c223959c977b135a8217fb961afb1
* | | | Merge "Add commands examples for copy and delete"Jenkins2016-12-151-2/+28
|\ \ \ \
| * | | | Add commands examples for copy and deletezheng yin2016-10-201-2/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are no examples for copy and delete command. For beginners, they may not use both commands. Therefore, I add examples, then beginners are able to understand how to use both commands. Change-Id: Id702dc3f9ab903c1c1183c1e229dc6ebedaac0a7