summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Update TOX_CONSTRAINTS_FILE for stable/zedstable/zedOpenStack Release Bot2022-09-091-2/+2
| | | | | | | | | | | | Update the URL to the upper-constraints file to point to the redirect rule on releases.openstack.org so that anyone working on this branch will switch to the correct upper-constraints list automatically when the requirements repository branches. Until the requirements repository has as stable/zed branch, tests will continue to use the upper-constraints list on master. Change-Id: Ie6da515ab25dfe984048d8c64845a7a8e8960d6d
* Update .gitreview for stable/zedOpenStack Release Bot2022-09-091-0/+1
| | | | Change-Id: Ibc91b993a62966bef16295bb948afff8db55892d
* 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
* | Remove sixStephen Finucane2022-03-2117-175/+116
| | | | | | | | | | | | | | This mostly affects tests. Nothing too complicated Signed-off-by: Stephen Finucane <stephenfin@redhat.com> Change-Id: Iabc78f651e1d48db35638280722f8019798eccd6
* | Remove coding commentsStephen Finucane2022-03-214-5/+0
| | | | | | | | | | | | | | Everything is unicode in Python 3. Signed-off-by: Stephen Finucane <stephenfin@redhat.com> Change-Id: I6a076dc67c461f265ed99878e3959e1992a88189
* | Remove __future__ importsStephen Finucane2022-03-215-8/+2
| | | | | | | | | | | | | | These aren't needed in modern Python 3 versions. Signed-off-by: Stephen Finucane <stephenfin@redhat.com> Change-Id: I5e81d6fb2e2cb8e4bfae4ed746da002f44e871c4
* | Don't patch Requests globally on importAarni Koskela2022-03-214-41/+62
| | | | | | | | | | | | | | | | | | | | This also upgrades the Requests dependency to 2.4+ (released in 2014) to avoid having to do version comparisons altogether. Refs https://bugs.launchpad.net/python-swiftclient/+bug/1904551 Signed-off-by: Aarni Koskela <akx@iki.fi> Change-Id: I58399f6c526b0b78462f31739c43076314ba9e76
* | Drop support for Python 2Stephen Finucane2022-03-168-74/+12
| | | | | | | | | | | | | | There's a lot of cleanup possible, but this is a start. Signed-off-by: Stephen Finucane <stephenfin@redhat.com> Change-Id: Ia1176b7fd5434d52070d482a37abfbb98800cdb3
* | Add Python3 zed unit testsOpenStack Release Bot2022-03-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | This is an automatically generated patch to ensure unit testing is in place for all the of the tested runtimes for zed. See also the PTI in governance [1]. [1]: https://governance.openstack.org/tc/reference/project-testing-interface.html Change-Id: Ia832ebda47bb798876edf3c013e9b9a583405c11
* | CI: Drop swiftclient-swift-functional-py2 jobTim Burke2022-03-091-15/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | It got busted somewhere between 2022-01-15 and 2022-02-11; looks like needing to override devstack to install on bionic finally caught up with us. ;-) FWIW, it fails down in stack.sh while trying to pip install grpcio: commands.CommandError: We expect a missing `_needs_stub` attribute from older versions of setuptools. Consider upgrading setuptools. Change-Id: Iff9094e9dd7a3d0bcdb0dee3b08fa5b61c9186d0
* | Update master for stable/yogaOpenStack Release Bot2022-03-072-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | Add file to the reno documentation build to show release notes for stable/yoga. Use pbr instruction to increment the minor version number automatically so that master versions are higher than the versions on stable/yoga. Sem-Ver: feature Change-Id: I55d45e6f076974a3b44ab8b26adbccef26373f85
* | Fix copy.py example.3.13.1PAPAMICA2022-01-121-3/+3
|/ | | | Change-Id: Id2a58a085f58b0bf17eda636593bb482d614c245
* Merge "Include storage policy when listing account with --long"3.13.0Zuul2021-10-132-10/+15
|\
| * Include storage policy when listing account with --longTim Burke2021-09-212-10/+15
| | | | | | | | Change-Id: Ibc2f9445b5a8e80cfb73d0706e20a7e4c62eec4a
* | Merge "Allow functional tests to pass with etag_quoter enabled by default"Zuul2021-09-241-7/+7
|\ \
| * | Allow functional tests to pass with etag_quoter enabled by defaultTim Burke2021-05-111-7/+7
| | | | | | | | | | | | Change-Id: I861b5e0a172f0ea0a5b1fe8389cd70da8d4b5d5d
* | | Merge "Allow unit tests to be run via pytest"Zuul2021-09-231-22/+30
|\ \ \ | |/ /
| * | Allow unit tests to be run via pytestTim Burke2021-05-111-22/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | You can run all tests by just running $ pytest Or just unit tests with $ pytest test/unit/ Or one specific test with $ pytest test/unit/test_swiftclient.py::TestConnection::test_reauth Change-Id: I1dfa239f9ee9ea85663b5c1f22631a97f87b4dfc
* | | Correctly aggregate totals for >10k itemsTim Burke2021-09-212-19/+26
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, we would write out totals for every page of listings, like $ swift list sync --prefix=09-21 --total -l 80000000000 80000000000 80000000000 58096000000 Now, roll those all into a single total: $ swift list sync --prefix=09-21 --total -l 298096000000 Change-Id: Icc265636815220e33e8c9eec0a3ab80e9f899038
* | Only log the traceback for non-404sTim Burke2021-09-201-1/+1
| | | | | | | | Change-Id: I08ba4a3120e99b444b13f1ca6f5493529868df26
* | Improve formatting for billions of objectsTim Burke2021-09-202-9/+11
| | | | | | | | Change-Id: If8aa08c4c8c8ad6ca2c861602baf1eefa8642a8a
* | Add Python3 yoga unit testsOpenStack Release Bot2021-09-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | This is an automatically generated patch to ensure unit testing is in place for all the of the tested runtimes for yoga. See also the PTI in governance [1]. [1]: https://governance.openstack.org/tc/reference/project-testing-interface.html Change-Id: Icf192aedeadf7fbed6e0f217da5b348172dc4478
* | Update master for stable/xenaOpenStack Release Bot2021-09-162-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | Add file to the reno documentation build to show release notes for stable/xena. Use pbr instruction to increment the minor version number automatically so that master versions are higher than the versions on stable/xena. Sem-Ver: feature Change-Id: I79a7fbda1ea9ae034d009c54be4b401809183c42
* | Clean up extra spacesjinyuanliu2021-09-151-1/+1
| | | | | | | | | | | | Although these errors are not important, they affect the code specification. Change-Id: Ifab29d9c803a78ee994b99b4b410893864b90908
* | Changed minversion in tox to 3.18.0wu.shiming2021-07-061-5/+5
| | | | | | | | | | | | | | | | The patch bumps min version of tox to 3.18.0 in order to replace tox's whitelist_externals by allowlist_externals option: https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23 Change-Id: I244d98bb3fc7cb75624b598f4d26f784159f5428
* | Use upper-constraints for docs jobsTim Burke2021-05-252-2/+8
|/ | | | | | | | | Looks like there are some issues with too-new-Sphinx and the PDF docs builds. Also, get devstack installing on bionic again for our py2 func test job. Change-Id: I633398054694fe6ba1e0de50278f274daf69fefd
* Merge "setup.cfg: Replace dashes with underscores"xena-em3.12.0Zuul2021-05-061-3/+3
|\
| * setup.cfg: Replace dashes with underscoresyangyawei2021-05-031-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Setuptools v54.1.0 introduces a warning that the use of dash-separated options in 'setup.cfg' will not be supported in a future version [1]. Get ahead of the issue by replacing the dashes with underscores. Without this, we see 'UserWarning' messages like the following on new enough versions of setuptools: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead [1] https://github.com/pypa/setuptools/commit/a2e9ae4cb Change-Id: Ief2c7a217914dc5cacdffc6959ed0585fc6a1225
* | Merge "Use py3 as the default runtime for tox"Zuul2021-05-061-1/+1
|\ \ | |/ |/|
| * Use py3 as the default runtime for toxzhangboye2021-04-201-1/+1
| | | | | | | | | | | | | | Moving on py3 as the default runtime for tox to avoid to update this at each new cycle. Change-Id: I4a54455e7e8b1b4de2f9656d13f65ef090da68eb
* | Fix Typo in shell.pyjonasdlindner2021-04-291-1/+1
|/ | | | Change-Id: I2615e0d6b54d8cc020c24d1b5b4064e038f0934b
* Merge "Add Python3 xena unit tests"Zuul2021-03-261-1/+1
|\
| * Add Python3 xena unit testsOpenStack Release Bot2021-03-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | This is an automatically generated patch to ensure unit testing is in place for all the of the tested runtimes for xena. See also the PTI in governance [1]. [1]: https://governance.openstack.org/tc/reference/project-testing-interface.html Change-Id: Ic272b2583f9e0ff5f1b542ce9596af9d3bf8edef