summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Changelog for 3.6.1rocky-eolrocky-em3.6.1stable/rockyTim Burke2019-10-232-0/+13
| | | | Change-Id: Idce4262ae2fa3e42639ba3e4f24c7d2e9be5ae59
* Fix SLO re-uploadTim Burke2019-08-083-18/+64
| | | | | | | | | | | | | | | | Previously, if you uploaded a file as an SLO then re-uploaded it with the same segment size and mtime, the second upload would go delete the segments it just (re)uploaded. This was due to us tracking old_slo_manifest_paths and new_slo_manifest_paths in different formats; one would have a leading slash while the other would not. Now, normalize to the stripped-slash version so we stop deleting segments we just uploaded. Change-Id: Ibcbed3df4febe81cdf13855656e2daaca8d521b4 (cherry picked from commit 9021a58c240e156f54ffafdc4609868f348d3ebc) (cherry picked from commit 2cd8b86075997f2997118bd92286849ddb0c93d7)
* Fix up stable gateTim Burke2019-08-0712-125/+147
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a combination of three commits from master: --- Isolate docs requirements ...since modern sphinx won't install on py27. While we're at it, clean up some warnings and treat warnings as errors. Also, fix up how we parse test configs so we can run func tests. Related-Change: Id3c2ed87230c5918c18e2c01d086df8157f036b1 (cherry picked from commit 113eacf3b80f61d366b3e95b558b40f82ff728a4) --- Drag forward prettytable in lower-constraints Apparently version 0.7 got unpublished recently. (cherry picked from commit 5bd66947fc3d8987d4b24d5119a346031004229e) --- docs: Clean up formatting (cherry-picked from commit 7563d9cb5642c85a31708fd863e2737f9d6c9419) --- Change-Id: I3c6bca460ee5ff99195495a29e8b8bbf4ed804ff (cherry picked from commit 172aa9016977a3b03f07da0350c6aa9ade1e55a0)
* OpenDev Migration PatchOpenDev Sysadmins2019-04-192-4/+4
| | | | | | | | | | | | | | | 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 testTim Burke2018-09-121-8/+30
| | | | | | | | | | | | | 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. Change-Id: I919c0b77ac4888350194f55a9c12e0742845024f Depends-On: https://review.openstack.org/600342 (cherry picked from commit 70e20b62e6719c97267aa0e5a80dae2e31dfba76)
* import zuul job settings from project-configNguyen Hai2018-08-281-0/+21
| | | | | | | | | | | | | | | | | | | | 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: Ie70f18d806aa92807bfe6ab4ecdc39990ef47cfe Story: #2002586 Task: #24337
* Update .gitreview for stable/rockyOpenStack Release Bot2018-07-251-0/+1
| | | | Change-Id: Icdc3c10779e5a76090fab218e2ef9a143de70eb5
* Merge "Remove unnecessary calls to parse_header_string()."3.6.0Zuul2018-07-251-8/+2
|\
| * Remove unnecessary calls to parse_header_string().Timur Alperovich2018-07-241-8/+2
| | | | | | | | | | | | | | | | Since we define the getheader() method on the response from HTTPConnection, we don't have to call parse_header_string, as the values will already be converted properly. Change-Id: Ia81e8674b828b3ff1f014454126b469e41adfc23
* | Merge "authors/changelog update for 3.6.0"Zuul2018-07-244-2/+84
|\ \
| * | authors/changelog update for 3.6.0John Dickinson2018-07-244-2/+84
| | | | | | | | | | | | Change-Id: I471d3d56d98915804aaf848f7ff98d91f586d572
* | | Merge "Back out some version bumps"Zuul2018-07-246-31/+44
|\ \ \ | |_|/ |/| |
| * | Back out some version bumpsTim Burke2018-07-116-31/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I'm giving up on trying to back out all of the test-requirements up-revs, but let's try to stay compatibile with old requests/six. As part of that, only disable some requests warnings on new-enough requests. Note that we should now be compatible with distro packages back to Ubuntu 16.04 and CentOS 6. Our six is still too new for Trusty, but hey, there's less than a year left on that anyway, right? Change-Id: Iccb23638393616f9ec3da660dd5e39ea4ea94220 Related-Change: I2a8f465c8b08370517cbec857933b08fca94ca38
* | | Merge "Properly handle unicode headers."Zuul2018-07-242-5/+85
|\ \ \
| * | | Properly handle unicode headers.Timur Alperovich2018-07-232-5/+85
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix unicode handling in Python 3 and Python 2. There are currently two failure modes. In python 2, swiftclient fails to log in debug mode if the account name has a non-ASCII character. This is because the account name will appear in the storage URL, which we attempt to pass to the logger as a byte string (whereas it should be a unicode string). This patch changes the behavior to convert the path strings into unicode by calling the parse_header_string() function. The second failure mode is with Python 3, where http_lib returns headers that are latin-1 encoded, but swiftclient expects UTF-8. The patch automatically converts headers from latin-1 (iso-8859-1) to UTF-8, so that we can properly handle non-ASCII headers in responses. Change-Id: Ifa7f3d5af71bde8127129f1f8603772d80d063c1
* | | Add close() to _RetryBody.Timur Alperovich2018-07-201-0/+3
|/ / | | | | | | | | | | | | Allows clients to give up on reading the rest of the server response, if they so choose. Change-Id: Iccc95b1b5e7d066470966ee0c62a3beb260846e5
* | Merge "Stop mutating header dicts"Zuul2018-07-172-33/+47
|\ \
| * | Stop mutating header dictsTim Burke2017-08-252-33/+47
| | | | | | | | | | | | Change-Id: Ia1638c216eff9db6fbe416bc0570c27cfdcfe730
* | | Merge "Drop py34 target in tox.ini"Zuul2018-07-171-1/+0
|\ \ \
| * | | Drop py34 target in tox.inilingyongxu2017-06-092-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | We support py35 now.so it is no need to keep the supoort for py34. Change-Id: Ie76e897bea3c184410e2b151fbe978d93bc21624
* | | | Add bash_completion to swiftclientMatthew Oliver2018-07-132-99/+245
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch basically follows the bash completion model that other OpenStack clients use. It creates a new command to swiftclient called `bash_completion`. The `bash_completion` command by default will print all base flags and exsiting commands. If you pass it a command, it'll print out all base flags and any flags that command accepts. So as you type out your swift command and auto-complete, only the current available flags are offered to you. This is used by the swift.bash_completion script to allow swift commands to be bash completed. To make it work, place the swift.bash_completion file into /etc/bash_completion.d and source it: cp tools/swift.bash_completion /etc/bash_completion.d/swift source /etc/bash_completion.d/swift Because swiftclient itself is creating this flag/command output it should automatically add anything we add to the swiftclient CLI. Change-Id: I5609a19018269762b4640403daae5827bb9ad724
* | | | Merge "Treat 404 as success when deleting segments"Zuul2018-07-121-9/+10
|\ \ \ \
| * | | | Treat 404 as success when deleting segmentsTim Burke2018-01-261-9/+10
| | | | | | | | | | | | | | | | | | | | Change-Id: I76be70ddb289bd4f1054a684a247279ab16ca34a
* | | | | Add ability to generate a temporary URL with anmmcardle2018-07-104-9/+105
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | IP range restriction Change-Id: I4734599886e4f4a563162390d0ff3bb1ef639db4
* | | | Merge "Add option for user to enter password"Zuul2018-06-303-3/+95
|\ \ \ \
| * | | | Add option for user to enter passwordAlistair Coles2018-06-113-3/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the --prompt option for the CLI which will cause the user to be prompted to enter a password. Any password otherwise specified by --key, --os-password or an environment variable will be ignored. The swift client will exit with a warning if the password cannot be entered without its value being echoed. Closes-Bug: #1357562 Change-Id: I513647eed460007617f129691069c6fb1bfe62d7
* | | | | Merge "Make OS_AUTH_URL work in DevStack by default"Zuul2018-06-292-1/+53
|\ \ \ \ \
| * | | | | Make OS_AUTH_URL work in DevStack by defaultClay Gerrard2018-06-202-1/+53
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | An earlier change added support for versionless authurls, but the huristic to detect them didn't work for some configurations I've encountered. Now we use a little bit tighter pattern matching and support auth_url values with more than one path component. Change-Id: I5a99c7b4e957ee7c8a5b5470477db49ab2ddba4b Related-Change-Id: If7ecb67776cb77828f93ad8278cc5040015216b7
* | | | | Merge "Remove some pointless code"Zuul2018-06-231-6/+0
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Remove some pointless codeTim Burke2018-06-221-6/+0
| | | | | | | | | | | | | | | | | | | | Change-Id: I3163834c330c5ea44c1096e83127588c88f0d761
* | | | | Remove PyPI downloadsChen2018-06-071-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | According to official site, https://packaging.python.org/guides/analyzing-pypi-package-downloads/ PyPI package download statistics is no longer maintained and thus should be removed. Change-Id: I05e7d48d191bdaaf029f0ad1373a9c7c8b22e81e
* | | | | Merge "Use a valid default for auth_version"Zuul2018-06-061-1/+1
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Use a valid default for auth_versionPete Zaitcev2018-05-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The valid set of values for auth_version does not include values starting with the 'v'. In this particular function, the auth_version variable is only used for comparisons with v3. So, the code worked correctly. However, let's clean this up in order to reduce review confusion and defuse possible future landmine in case of code changes. Change-Id: I671016d7992a1922b786b4eb8876b3fbb2532e15
* | | | | Merge "show option per line"Zuul2018-06-051-4/+8
|\ \ \ \ \
| * | | | | show option per lineThiago da Silva2018-03-171-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ading multiple options on the same line makes it easy to miss when quickly scanning the options. Change-Id: I8e324fca48cd05d9e381d5106135542274c2ff7f Signed-off-by: Thiago da Silva <thiago@redhat.com>
* | | | | | Merge "Make swiftclient respect region_name when using sessions"Zuul2018-06-011-1/+3
|\ \ \ \ \ \
| * | | | | | Make swiftclient respect region_name when using sessionsErik Olof Gunnar Andersson2018-05-161-1/+3
| | |/ / / / | |/| | | | | | | | | | | | | | | | Change-Id: I94aca6f1120c34616562be7345f0e5aa51a69499
* | | | | | Switch from oslosphinx to openstackdocsthemeNguyen Hai2018-05-231-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | openstackdocstheme is a theme and extension support for Sphinx documentation that is published to docs.openstack.org and developer.openstack.org. Change-Id: I37d1d50fb88b35e72b017d5dfbf148c35ac7e323
* | | | | | add lower-constraints jobDoug Hellmann2018-04-257-14/+84
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Create a tox environment for running the unit tests against the lower bounds of the dependencies. Create a lower-constraints.txt to be used to enforce the lower bounds in those tests. Add openstack-tox-lower-constraints job to the zuul configuration. Update the dependencies needed to make the unit tests pass while constrained to the lower bounds. See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html for more details. Co-Authored-By: Nguyen Hai <nguyentrihai93@gmail.com> Change-Id: I2a8f465c8b08370517cbec857933b08fca94ca38 Depends-On: https://review.openstack.org/555034 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* | | | | Trivial: Update pypi url to new urlTovin Seven2018-04-201-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pypi url changed from [1] to [2] [1] https://pypi.python.org/pypi/<package> [2] https://pypi.org/project/<package> Change-Id: Ia406e9c8be6ba672b96e8584ef26f92348c8328b
* | | | | Merge "Remove trailing white space in tox.ini"Zuul2018-04-121-1/+1
|\ \ \ \ \
| * | | | | Remove trailing white space in tox.iniKota Tsuyuzaki2018-04-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I706b69b7230390234ab255682478e8f69261cafe
* | | | | | Remove py34 from envlist in tox.iniNguyen Hai2018-04-061-1/+1
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | py35 is enough. Change-Id: Iebd7a6741dd60ed2fb11d1758bfec8e03e30a086
* | | | | Add force auth retry mode in swiftclientKota Tsuyuzaki2018-03-134-2/+84
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch attemps to add an option to force get_auth call while retrying an operation even if it gets errors other than 401 Unauthorized. Why we need this: The main reason why we need this is current python-swiftclient requests could never get succeeded under certion situation using third party proxies/load balancers between the client and swift-proxy server. I think, it would be general situation of the use case. Specifically describing nginx case, the nginx can close the socket from the client when the response code from swift is not 2xx series. In default, nginx can wait the buffers from the client for a while (default 30s)[1] but after the time past, nginx will close the socket immediately. Unfortunately, if python-swiftclient has still been sending the data into the socket, python-swiftclient will get socket error (EPIPE, BrokenPipe). From the swiftclient perspective, this is absolutely not an auth error, so current python-swiftclient will continue to retry without re-auth. However, if the root cause is sort of 401 (i.e. nginx got 401 unauthorized from the swift-proxy because of token expiration), swiftclient will loop 401 -> EPIPE -> 401... until it consume the max retry times. In particlar, less time to live of the token and multipart object upload with large segments could not get succeeded as below: Connection Model: python-swiftclient -> nginx -> swift-proxy -> swift-backend Case: Try to create slo with large segments and the auth token expired with 1 hour 1. client create a connection to nginx with successful response from swift-proxy and its auth 2. client continue to put large segment objects (e.g. 1~5GB for each and the total would 20~30GB, i.e. 20~30 segments) 3. after some of segments uploaded, 1 hour past but client is still trying to send remaining segment objects. 4. nginx got 401 from swift-proxy for a request and wait that the connection is closed from the client but timeout past because the python-swiftclient is still sending much data into the socket before reading the 401 response. 5. client got socket error because nginx closed the connection during sending the buffer. 6. client retries a new connection to nginx without re-auth... <loop 4-6> 7. finally python-swiftclient failed with socket error (Broken Pipe) In operational perspective, setting longer timeout for lingering close would be an option but it's not complete solution because any other proxy/LB may not support the options. If we actually do THE RIGHT THING in python-swiftclient, we should send expects: 100-continue header and handle the first response to re-auth correctly. HOWEVER, the current python's httplib and requests module used by python-swiftclient doesn't support expects: 100-continue header [2] and the thread proposed a fix [3] is not super active. And we know the reason we depends on the library is to fix a security issue that existed in older python-swiftclient [4] so that we should touch around it super carefully. In the reality, as the hot fix, this patch try to mitigate the unfortunate situation described above WITHOUT 100-continue fix, just users can force to re-auth when any errors occurred during the retries that can be accepted in the upstream. 1: http://nginx.org/en/docs/http/ngx_http_core_module.html#lingering_close 2: https://github.com/requests/requests/issues/713 3: https://bugs.python.org/issue1346874 4: https://review.openstack.org/#/c/69187/ Change-Id: I3470b56e3f9cf9cdb8c2fc2a94b2c551927a3440
* | | | Merge "Add a query_string option to head_object()."Zuul2018-03-062-5/+19
|\ \ \ \
| * | | | Add a query_string option to head_object().Timur Alperovich2018-03-052-5/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Submitting a path parameter with a HEAD request on an object can be useful if one is trying to find out information about an SLO/DLO without retrieving the manifest. Change-Id: I39efd098e72bd31de271ac51d4d75381929c9638
* | | | | Update links in READMEwangqi2018-03-051-2/+2
|/ / / / | | | | | | | | | | | | | | | | | | | | Change the outdated links to the latest links in README Change-Id: Ic0adc686592265f2be2acb55f0520c35d1717f76
* | | | Merge "Update the old http doc links"Zuul2018-01-314-9/+9
|\ \ \ \
| * | | | Update the old http doc linksshangxiaobj2018-01-304-9/+9
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | Update the old http doc links to the https ones according to the official OpenStack website. Change-Id: Ibf9ecbccb743d2b9a678a1ca69f0b3adc9106a12
* | | | Update reno for stable/queensOpenStack Release Bot2018-01-292-0/+7
| | | | | | | | | | | | | | | | Change-Id: I7f7b21e3dd0d1ef71c159e2b72f9ad9f963b0773