summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix docstring for get_members()2.10.1Arne Wiebalck2021-12-091-2/+2
| | | | | | Add 'asynchronously', fix a typo, and correct a copy and paste error. Change-Id: Ib11562fe3398fe5faeba0477994513f674ee5bd6
* Enable retries in redis driver2.10.0Pavlo Shchelokovskyy2021-06-162-37/+42
| | | | | | | | | this is followup to Iaab5ce609c0dcf7085f5dd43efbd37eb4b88f17b actually retry for specified number of retries instead of raising error on first ConnectionError Change-Id: Ibca3f568b65dfea252da4b67f6d5105ba7f1ecb1
* Merge "setup.cfg: Replace dashes with underscores"Zuul2021-05-260-0/+0
|\
| * setup.cfg: Replace dashes with underscoresmaaoyu2021-04-271-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: Icbbd718896cdd3858a13a149f2a65d6a3aab1c1a
* | Merge "Fix formatting of release list"Zuul2021-05-261-12/+12
|\ \
| * | Fix formatting of release listPierre Riteau2021-04-161-12/+12
| | | | | | | | | | | | Change-Id: I5b599bcc101446df96c2aebcc66962263709ad49
* | | setup.cfg: Replace dashes with underscoresyangyawei2021-05-141-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: I4b4bace2f08ce960a789fb97cf7320fc07195526
* | | Merge "Retry on redis connection errors"2.9.0Zuul2021-04-272-54/+80
|\ \ \ | |_|/ |/| |
| * | Retry on redis connection errorsMatthias Runge2021-03-312-54/+80
| | | | | | | | | | | | | | | | | | | | | Sometimes, connections get closed by the server. This change adds retrying to the code. Change-Id: Iaab5ce609c0dcf7085f5dd43efbd37eb4b88f17b
* | | Merge "Add Python3 wallaby unit tests"Zuul2021-04-161-1/+1
|\ \ \ | |_|/ |/| |
| * | Add Python3 wallaby unit testsOpenStack Release Bot2020-09-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is an automatically generated patch to ensure unit testing is in place for all the of the tested runtimes for wallaby. See also the PTI in governance [1]. [1]: https://governance.openstack.org/tc/reference/project-testing-interface.html Change-Id: Ie3e8d7b8a85251682c1a55dcfa610c232f067c8b
* | | Merge "Update master for stable/wallaby"Zuul2021-04-162-0/+7
|\ \ \
| * | | Update master for stable/wallabyOpenStack Release Bot2021-03-182-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add file to the reno documentation build to show release notes for stable/wallaby. Use pbr instruction to increment the minor version number automatically so that master versions are higher than the versions on stable/wallaby. Sem-Ver: feature Change-Id: I84eb9877fd221a1c14bf02b00f38ed77c67ed7a9
* | | | Merge "Move flake8 as a pre-commit local target."Zuul2021-04-152-4/+8
|\ \ \ \ | |_|_|/ |/| | |
| * | | Move flake8 as a pre-commit local target.Daniel Bengtsson2021-04-062-4/+8
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The goal here is to avoid conflicts between flake8 and hacking version each 2 days. Inspired from nova's approach[1]. The flake8 version to install will be determined by hacking and requirements[2] will stay aligned instead of relying on different versions. [1] https://opendev.org/openstack/nova/src/branch/master/.pre-commit-config.yaml#L26-L35 [2] https://opendev.org/openstack/hacking/src/branch/master/requirements.txt#L1 Change-Id: Ic3f3d05ce7bb10a7d29815444dac00dea4f9c9d1
* | | Cap tenacity to unblock the gateMatthias Runge2021-03-091-1/+1
|/ / | | | | | | | | | | | | Recent version 7 changed retry and dropped the retry_state parameter. Change-Id: I109d3b5770c3cd8fe0bdeae78517f4d36ba3b65f
* | Merge "Use py3 as the default runtime for tox"Zuul2021-02-241-1/+1
|\ \
| * | Use py3 as the default runtime for toxHervé Beraud2020-11-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moving on py3 as the default runtime for tox to avoid to update this at each new cycle. Wallaby support officially the following runtimes [1]: - Python 3.6 - Python 3.8 During Victoria Python 3.7 was used as the default runtime [2] however this version isn't longer officially supported. [1] https://governance.openstack.org/tc/reference/runtimes/wallaby.html#python-runtimes-for-wallaby [2] https://governance.openstack.org/tc/reference/runtimes/victoria.html#python-runtimes-for-victoria Change-Id: Id8aa147958139ddb3877c9a0066aa1513f543737
* | | Bump hacking and flake8 version to fix pep8 jobmanchandavishal2021-02-082-3/+3
|/ / | | | | | | | | | | | | This patch update hacking and flake8 version to fix pep8 job. Change-Id: Id6999d06fb2e15b5c80bc27b995bde065b342eec
* | Replace md5 with oslo version2.8.0Ade Lee2020-10-295-11/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | md5 is not an approved algorithm in FIPS mode, and trying to instantiate a hashlib.md5() will fail when the system is running in FIPS mode. md5 is allowed when in a non-security context. There is a plan to add a keyword parameter (usedforsecurity) to hashlib.md5() to annotate whether or not the instance is being used in a security context. In the case where it is not, the instantiation of md5 will be allowed. See https://bugs.python.org/issue9216 for more details. Some downstream python versions already support this parameter. To support these versions, a new encapsulation of md5() has been added to oslo_utils. See https://review.opendev.org/#/c/750031/ This patch is to replace the instances of hashlib.md5() with this new encapsulation, adding an annotation indicating whether the usage is a security context or not. Reviewers need to pay particular attention as to whether the keyword parameter (usedforsecurity) is set correctly. Change-Id: Idbef0f0896753765372c8dfac8ab15e6be49922f Depends-On: https://review.opendev.org/#/c/760160
* | Adding pre-commitHervé Beraud2020-10-0914-175/+183
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduced changes: - pre-commit config and rules. - Add pre-commit to pep8 gate, Flake8 is covered in the pre-commit hooks. - Applying fixes for pre-commit compliance in all code. Also commit hash will be used instead of version tags in pre-commit to prevend arbitrary code from running in developer's machines. pre-commit will be used to: - trailing whitespace; - Replaces or checks mixed line ending (mixed-line-ending); - Forbid files which have a UTF-8 byte-order marker (check-byte-order-marker); - Checks that non-binary executables have a proper shebang (check-executables-have-shebangs); - Check for files that contain merge conflict strings (check-merge-conflict); - Check for debugger imports and py37+ breakpoint() calls in python source (debug-statements); - Attempts to load all yaml files to verify syntax (check-yaml); - Run flake8 checks (flake8) (local) For further details about tests please refer to: https://github.com/pre-commit/pre-commit-hooks Change-Id: I7a2386a823fdd43b138956894bd915c0e11289a9 Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
* | Blacklist etcd3gw 0.2.6Elod Illes2020-09-291-1/+1
|/ | | | | | | | | | | | | | etcd3gw 0.2.6 was blacklisted in openstack/requirements [0], because that version has a bug [1]. tooz does not use openstack/requirements' upper constraints, so the same blacklisting needs to be introduced here in setup.cfg. [0] Icb6873d8c5d3a3624c0ac3d76fc9125c5d8134b2 [1] https://github.com/dims/etcd3-gateway/issues/41 Change-Id: I22b955419014dd34c63e406c488e0636ffe9013b Closes-Bug: #1891314
* Update master for stable/victoriaOpenStack Release Bot2020-09-112-0/+7
| | | | | | | | | | | | Add file to the reno documentation build to show release notes for stable/victoria. Use pbr instruction to increment the minor version number automatically so that master versions are higher than the versions on stable/victoria. Change-Id: I28b00085199c59047b66d2c13960ba518941937b Sem-Ver: feature
* Use safe_decode for decoding in zookeeper driver2.7.1Dmitriy Rabotyagov2020-07-291-3/+5
| | | | | | | | Current behaviour leds to AttributeError because py3 don't have decode attribut for the string objects. So it's better to use safe_decode from oslo_utils.encodeutils for that purpose Change-Id: I22ce4212381511e2b2631a97057d6da938024b99
* Merge "hashring: allow choosing hash function"2.7.0Zuul2020-07-213-5/+30
|\
| * hashring: allow choosing hash functionDmitry Tantsur2020-07-123-5/+30
| | | | | | | | | | | | In FIPS mode it's not possible to use md5 for any purposes. Change-Id: Ia3d9035abb645e82083fe9a796d7d7df7cf4d7a7
* | Fix breakage with PyMySQL 0.10.0Dmitry Tantsur2020-07-202-9/+13
|/ | | | | | | | In this version a Connection is no longer a context manager. Fix it by simply getting a Cursor out of it (locks don't seem to interact with transactions, at least according to MariaDB docs). Change-Id: I5ea06ebd2b976465ff82f10a74e140f30e9e803f
* Remove six libraryRiccardo Pittau2020-07-0122-86/+54
| | | | | | | The tooz project doesn't support Python 2 anymore, using the six library should not be necessary. Change-Id: I9886cabcd13cbc615065ceb372efbf037dff1aeb
* Implements Group API for the Consul driver2.6.0Nick Maludy2020-06-156-25/+330
| | | | | | | | | Also fixes tox env for py38-consul tests Update zuul script to use consul 1.7.4 (2020) vs 0.6.3 (2016) Adds ACL tokens to all session management calls. Change-Id: Iaddf21f14c434129541e7c9ec7134e0661f7be52
* Merge "Add python 3.8 to classifiers"2.5.1Zuul2020-06-081-0/+1
|\
| * Add python 3.8 to classifiersHervé Beraud2020-05-261-0/+1
| | | | | | | | Change-Id: Ife3021fe203fdb6a9a6f2f51d45a64773f5fe89c
* | Merge "Use unittest.mock instead of third party mock"2.5.0Zuul2020-06-037-15/+7
|\ \
| * | Use unittest.mock instead of third party mockHervé Beraud2020-05-157-15/+7
| | | | | | | | | | | | | | | | | | | | | Now that we no longer support py27, we can use the standard library unittest.mock module instead of the third party mock lib. Change-Id: I4ef04d18b3a6da5cbf3193330957db7846a7bc8d
* | | Merge "Stop to use the __future__ module."Zuul2020-06-035-10/+0
|\ \ \
| * | | Stop to use the __future__ module.Hervé Beraud2020-06-025-10/+0
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The __future__ module [1] was used in this context to ensure compatibility between python 2 and python 3. We previously dropped the support of python 2.7 [2] and now we only support python 3 so we don't need to continue to use this module and the imports listed below. Imports commonly used and their related PEPs: - `division` is related to PEP 238 [3] - `print_function` is related to PEP 3105 [4] - `unicode_literals` is related to PEP 3112 [5] - `with_statement` is related to PEP 343 [6] - `absolute_import` is related to PEP 328 [7] [1] https://docs.python.org/3/library/__future__.html [2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html [3] https://www.python.org/dev/peps/pep-0238 [4] https://www.python.org/dev/peps/pep-3105 [5] https://www.python.org/dev/peps/pep-3112 [6] https://www.python.org/dev/peps/pep-0343 [7] https://www.python.org/dev/peps/pep-0328 Change-Id: I95809cf4035a6bc487b24f9e91aaa715921ad842
* | | Merge "Add release notes links to doc index"Zuul2020-06-031-1/+11
|\ \ \
| * | | Add release notes links to doc indexHervé Beraud2020-04-161-1/+11
| | | | | | | | | | | | | | | | Change-Id: Ibd20fc5776b789bb869cdb1f7b1e58acc4c2c207
* | | | Switch to newer openstackdocstheme and reno versionsAndreas Jaeger2020-06-023-31/+13
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using these versions will allow especially: * Linking from HTML to PDF document * Allow parallel building of documents * Fix some rendering problems Update Sphinx version as well. Disable openstackdocs_auto_name to use 'project' variable as name. Change pygments_style to 'native' since old theme version always used 'native' and the theme now respects the setting and using 'sphinx' can lead to some strange rendering. openstackdocstheme renames some variables, so follow the renames before the next release removes them. A couple of variables are also not needed anymore, remove them. See also http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html Change-Id: I6254b8b17eea752a5b1d6031c89de47ecc865a49
* | | Merge "Update master for stable/ussuri"2.4.0Zuul2020-05-252-0/+7
|\ \ \ | |_|/ |/| |
| * | Update master for stable/ussuriOpenStack Release Bot2020-04-142-0/+7
| |/ | | | | | | | | | | | | | | | | | | | | | | Add file to the reno documentation build to show release notes for stable/ussuri. Use pbr instruction to increment the minor version number automatically so that master versions are higher than the versions on stable/ussuri. Change-Id: I5e9b7258593e10ff1323ab408acaf2f075fdc111 Sem-Ver: feature
* | Merge "Switch to Victoria tests"Zuul2020-05-152-61/+61
|\ \
| * | Switch to Victoria testsAndreas Jaeger2020-05-142-61/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This repo has been using train tests and thus was missed by the bot to update from ussuri to victoria, update manually. also, update other jobs to use now py38. See also the PTI in governance [1]. [1]: https://governance.openstack.org/tc/reference/project-testing-interface.html Change-Id: Ie1ef901d7b52800912365cfeae96b0e66108e1fc
* | | Add support for Consul ACL token parameter.JP Bourget2020-05-143-10/+37
|/ / | | | | | | | | | | | | | | | | When running Consul with ACLs enabled, the best practice is to default deny all. In order to support applying a policy to the tooz coordination KV store path, passing through an ACL is needed. Closes-Bug: #1752205 Change-Id: I98fc96468b21368ce66365e3fc38c495b1f2918a
* | Add nose as test-requirementAndreas Jaeger2020-05-141-0/+1
| | | | | | | | | | | | | | Add nose requirement, this is now needed by ddt for testing here, but not required from ddt. Change-Id: I99c029d7a153548b9cfc94f5d80d331ca87d2b70
* | Merge "ignore reno generated artifacts"Zuul2020-04-291-0/+3
|\ \
| * | ignore reno generated artifactsHervé Beraud2020-03-251-0/+3
| | | | | | | | | | | | Change-Id: I4593085e60930f039d13db2a4c7799b16a1f055a
* | | Fix mysql driver comparison operatorJP Bourget2020-04-281-1/+1
| |/ |/| | | | | | | | | | | | | A test was failing due to L67 in tooz/drivers/mysql.py using `is` instead of `==`. Change-Id: I2baa101499f170ece99ccff368103b58f31ca79a Closes-Bug: 1875749
* | Merge "Add TLS support in etcd3 and etcd3gw drivers"2.3.0Zuul2020-04-017-7/+168
|\ \
| * | Add TLS support in etcd3 and etcd3gw driversAlan Bishop2020-04-017-7/+168
| | | | | | | | | | | | | | | | | | | | | | | | The etcd3 and etcd3gw drivers parse CA, key and cert options from the coordination URL, and pass them on to the backend clients. The etcd3gw driver implements the "etcd3+https" scheme. Change-Id: I78d8ca0583f883f7f746791f82fbcc116458ce2c
* | | Drop requirements-check jobElod Illes2020-03-311-1/+0
| |/ |/| | | | | | | | | | | Since tooz project has chosen to *NOT* consume upper-constraints.txt there is no need for the requirements check job, so let's drop it. Change-Id: I372cf0c9c9b1ff3d4b83cd84997f780e5de9709a