summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Changelog for 4.3.0 (and 4.2.0)HEAD4.3.0masterTim Burke2023-04-042-0/+83
| | | | Change-Id: Ia5f65c19bc31053dbdb4482a23ce977aa0c3f565
* Merge "Ensure v*password auth_type correctly implies auth version"Zuul2023-03-242-5/+100
|\
| * Ensure v*password auth_type correctly implies auth versionTim Burke2023-03-232-5/+100
| | | | | | | | Change-Id: I787b0988b7518850f1e1f93ca269f39f8cdec15c
* | Merge "trivial: Refactor os_options processing"Zuul2023-03-241-19/+20
|\ \ | |/
| * trivial: Refactor os_options processingTim Burke2023-03-231-19/+20
| | | | | | | | Change-Id: I01c096084172ea8ebeda791016a603c59c7924cd
* | shell: Allow uploads from stdin to specify --use-dloTim Burke2023-03-231-1/+1
|/ | | | Change-Id: Id6818ab416380242cc215a980a541fc59109c69c
* Merge "Use SLO by default for segmented uploads if the cluster supports it"Zuul2023-03-224-13/+168
|\
| * Use SLO by default for segmented uploads if the cluster supports itTim Burke2023-03-214-13/+168
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We've had SLO for nearly ten years, and it is preferable for most use-cases. It's time to default to SLO rather than DLO. Add a new --use-dlo option to give users a way to return to old behavior; ensure there is still a --use-slo option so we don't break existing scripts that may use it. UpgradeImpact: ============== The default segmented-upload behavior has changed; Static Large Objects are now used by default rather than Dynamic Large Objects. To revert to the old behavior: * CLI users may use the new `--use-dlo` option * Service API users may explicitly set `use_slo` to False in their options dicts Change-Id: Iebcd64ced8eab6efebb9f02a0c4be6bf6338cb3b
* | Merge "docs: Fix code-generated docs"Zuul2023-03-211-0/+5
|\ \
| * | docs: Fix code-generated docsTim Burke2023-03-211-0/+5
| |/ | | | | | | | | | | Skip multithreading since some upstream docstrings have invalid ReST. Change-Id: I682238b8307e5a2f9bd7607676749497cd6d4261
* | Merge "Retry on SSLError"Zuul2023-03-212-3/+64
|\ \
| * | Retry on SSLErrorTim Burke2023-03-202-3/+64
| |/ | | | | | | | | | | | | | | ...provided it isn't something to do with certification validation. Closes-Bug: #1641363 Closes-Bug: #2011731 Change-Id: Ic3acbf431e444fcd8bc0fe79571fe2db4140cf22
* | shell: Allow timeouts to have unitsTim Burke2023-03-203-2/+37
|/ | | | | Related-Change: Ibbe7e5aa8aa8e54935da76109c2ea13fb83bc7ab Change-Id: Ifeaaea790d1dadc84b157a7cf2be7590949c70f0
* Merge "Metadata updates"Zuul2023-03-201-0/+6
|\
| * Metadata updatesTim Burke2023-03-171-0/+6
| | | | | | | | | | | | | | | | Include project_urls so PyPI gets more sidebar links. Include long_description_content_type to quiet a twine warning. Change-Id: Id3b90927ba24fd47efdbeeb2107bdae9e86e93ba
* | Include transaction ID on content-check failuresTim Burke2023-03-152-9/+27
|/ | | | Change-Id: I6b667db26ffc5dccdcadfc8c73f7accb81f03dac
* Merge "service: Check content-length before etag"Zuul2023-03-152-9/+25
|\
| * service: Check content-length before etagTim Burke2023-03-142-9/+25
| | | | | | | | | | | | | | | | If the received content-length does not match expectations, of course the etag won't match! Co-Authored-By: Alistair Coles <alistairncoles@gmail.com> Change-Id: I1a0c066c11b94718fffbb11e13b82d0b16e01626
* | Switch from pkg_resources to importlibTim Burke2023-03-141-8/+22
|/ | | | | | | | | | Seen on Arch Linux: ModuleNotFoundError: No module named 'pkg_resources' On new enough Python, we don't need it anyway. Change-Id: I3d46319a36a1c2477e9f7dae0c7e40a362a17639
* Merge "Update master for stable/2023.1"Zuul2023-03-082-0/+7
|\
| * Update master for stable/2023.1OpenStack Release Bot2023-03-062-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | Add file to the reno documentation build to show release notes for stable/2023.1. Use pbr instruction to increment the minor version number automatically so that master versions are higher than the versions on stable/2023.1. Sem-Ver: feature Change-Id: I757174e91ffd514d97a76886ab728652ddba79e9
* | Retry with fresh socket on 499Tim Burke2023-02-152-1/+4
|/ | | | Change-Id: I0c22eefb587375997672724c03744c9cda473708
* Merge "Back-fill a bunch of ChangeLog releases"4.2.0Zuul2023-01-252-0/+118
|\
| * Back-fill a bunch of ChangeLog releasesTim Burke2023-01-062-0/+118
| | | | | | | | Change-Id: I3d89c3ff3d2789d64ba8f9c46fd1cd27c4c3a845
* | Merge "Switch to 2023.1 Python3 unit tests and generic template name"Zuul2023-01-251-1/+1
|\ \
| * | Switch to 2023.1 Python3 unit tests and generic template nameOpenStack Release Bot2022-09-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is an automatically generated patch to ensure unit testing is in place for all the of the tested runtimes for antelope. Also, updating the template name to generic one. See also the PTI in governance [1]. [1]: https://governance.openstack.org/tc/reference/project-testing-interface.html Change-Id: I4b8d75aab6b5d80756fbd83ffb62e5135365a685
* | | Merge "Allow tempurl to be used to sign /info requests"Zuul2023-01-252-3/+37
|\ \ \ | |_|/ |/| |
| * | Allow tempurl to be used to sign /info requestsTim Burke2022-08-292-3/+37
| | | | | | | | | | | | Change-Id: I1f9d26541e9c8f5aec7a6790c87df397d178efe6
* | | Add experimental jobs for py36/37Tim Burke2023-01-051-0/+5
| | | | | | | | | | | | Change-Id: I6452aa6019d66da21dd512a6b4267a896d4893d4
* | | Mark Python 3.10 testing as votingTim Burke2023-01-052-0/+5
| | | | | | | | | | | | Change-Id: I4743973e34ef1fcba9e5b64e32b2f1f458de75ba
* | | Drop *_proxy from passenvTim Burke2023-01-052-1/+4
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For tox 3.x and earlier, passenv was a space-separated list; as of tox 4.0.0, it's comma-separated. For a while, our spaces would be silently included in the now-one-and-only passenv value parsed (which wasn't great, but mostly just caused confusion) -- as of tox 4.0.6, however, it became a hard error, and all tests would fail like pass_env values cannot contain whitespace, use comma to have multiple values in a single line, invalid values found 'SWIFT_* *_proxy' Unfortunately, we don't really know what versions of tox all our various stakeholders might want/need to use (though we currently set a minversion of 3.18.0), and (to my knowledge) there's no way to specify multiple values for passenv in a way that would be compatible with both old and new tox. Fortunately, as of 3.14.4, tox include HTTP_PROXY, HTTPS_PROXY, and NO_PROXY in passenv by default. I'm fairly certain those were the only reason we had *_proxy to begin with, so just drop it. Change-Id: I8ddfbc6376434c39e231846135a99bd0bdca9497
* | Update master for stable/zedOpenStack Release Bot2022-09-102-0/+7
|/ | | | | | | | | | | | Add file to the reno documentation build to show release notes for stable/zed. Use pbr instruction to increment the minor version number automatically so that master versions are higher than the versions on stable/zed. Sem-Ver: feature Change-Id: Ibe6a46e97a8e08c2ec38ad1a3b80a1f63659a689
* Merge "Allow tempurl times to have units"4.1.0Zuul2022-08-254-42/+112
|\
| * Allow tempurl times to have unitsTim Burke2022-08-194-42/+112
| | | | | | | | | | | | | | Specifically, let users add a suffix for seconds, minutes, hours, or days. Change-Id: Ibbe7e5aa8aa8e54935da76109c2ea13fb83bc7ab
* | Merge "Add option to skip container PUT during upload"Zuul2022-08-233-48/+102
|\ \
| * | Add option to skip container PUT during uploadTim Burke2022-01-113-48/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, a user with read/write access to a container (but without access to creat new containers) recieves a warning every time they upload. Now, allow them to avoid the extra request and warning by specifying --skip-container-put on the command line. This is also useful when testing: developers can HEAD a container to ensure it's in memcache, shut down all container servers, then upload and creaate a bunch of async pendings. Previously, the 503 on container PUT would prevent the object upload from even being attempted. Closes-Bug: 1317956 Related-Bug: 1204558 Change-Id: I3d9129a0b6b65c6c6187ae6af003b221afceef47 Related-Change: If1f8a02ee7459ea2158ffa6e958f67d299ec529e
* | | Merge "Fix misuse of assertTrue"Zuul2022-08-191-3/+3
|\ \ \
| * | | Fix misuse of assertTrueTakashi Natsume2022-08-181-3/+3
| | |/ | |/| | | | | | | | | | | | | | | | | | | Replace assertTrue with assertEqual. Change-Id: Ia3524bc5b3b01c0039bede6bb172535eb85bac08 Closes-Bug: 1986948 Signed-off-by: Takashi Natsume <takanattie@gmail.com>
* | | Merge "Expand retry handling on ratelimit response"Zuul2022-08-192-25/+31
|\ \ \
| * | | Expand retry handling on ratelimit responseClay Gerrard2022-08-182-25/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have seen middlewares that return ratelimit responses as 498 or 429, so tolerate either. Closes-Bug: #1879572 Change-Id: I027222157f6c2ad7882a0508302c9de097baae4c
* | | | Merge "Enable retry_on_ratelimit by default"Zuul2022-08-193-5/+9
|\ \ \ \ | |/ / / | | / / | |/ / |/| |
| * | Enable retry_on_ratelimit by defaultTim Burke2022-08-183-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | UpgradeImpact ============= The Connection class now enables retry_on_ratelimit by default. If you need to return to the old behavior, explicitly pass retry_on_ratelimit=False as a keyword arg. The SwiftService class will now enables the retry_on_ratelimit option by default. If you need to return to the old behavior, explicitly set it to false in your options dict. Change-Id: I3221fda84f0b8031c50128aa600e2c19deb5b102
* | | Merge "More cleanup following py2 removal"Zuul2022-08-186-24/+7
|\ \ \ | |/ / |/| |
| * | More cleanup following py2 removalTim Burke2022-05-246-24/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Drop py2-only hacking pin from test-requirements. * Remove quote() helper; urllib.parse.quote() works fine. * Remove some useless code. Change-Id: I9ffc923f58f1d11538f83ff26f7beb53cdf134c3
* | | tempurl: Support sha256 and sha512 signatures4.0.1Tim Burke2022-06-084-48/+151
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Up the default to sha256 since * the proxy has supported (and defaulted to allowing) it for four years now, and * Rackspace has supported it for even longer. Include a note in the --help about older clusters likely requiring sha1. Change-Id: Ibac2bb7e2e4c9946c7384f0aab8e43d0d79ba645 Related-Change: Ia9dd1a91cc3c9c946f5f029cdefc9e66bcf01046 Related-Bug: #1733634 Closes-Bug: #1977867
* | | doc: Comment out language optionTakashi Kajinami2022-06-071-1/+1
|/ / | | | | | | | | | | | | | | | | | | ... because explicit language=None causes the below warning since Sphinx 5.0.0. Invalid configuration value found: 'language = None'. Update your configuration to a valid language code. Falling back to 'en' (English). Change-Id: I842fd6c1eb5c0e14d85f8eec6078d735fbd506b8
* | Remove use of mockSteve Kowalik2022-05-248-41/+39
| | | | | | | | | | | | | | Since Python 3.4, the unittest module has provided mock, negating the need for the external dependancy. Switch to using unittest.mock. Change-Id: Idec3aaed2fddd1ece3ed86ee0bcc48f7616d56fa
* | Add timeout for Swift service4.0.0Pavel Abalikhin2022-04-212-0/+4
| | | | | | | | | | | | | | Connection class has timeout parameter but SwiftService and shell don't use it. That can lead to an endless wait when network is unreachable. Change-Id: Iafa42fc2f8b56feefa2bc8ea6a1b8845717d3bab
* | Remove unnecessary unicode prefixesStephen Finucane2022-03-217-119/+119
| | | | | | | | | | | | | | | | All strings are unicode by default in Python 3. No need to mark them as such. Signed-off-by: Stephen Finucane <stephenfin@redhat.com> Change-Id: I68fb60ef271abfddebcc9d2137424f5db2a17e92
* | Remove unnecessary object subclassingStephen Finucane2022-03-218-25/+25
| | | | | | | | | | | | | | All classes subclass from object by default in Python 3. Signed-off-by: Stephen Finucane <stephenfin@redhat.com> Change-Id: I5a1ad57bcc092861ce969759b06a07c880ad3d35