Commit Graph

86 Commits

Author SHA1 Message Date
Stephen Finucane aeb1f4c19f Remove unnecessary dependencies
pbr is not a runtime dependency, so there's no need to list it as one.
Similarly, we don't need to install pre-commit in our test environment
nor do we use nose of python-subunit (at least directly). Remove them
all.

We also remove so notes about dependency order that have not been
relevant since the new dependency resolver was introduced in pip 20.3.

Change-Id: Iea7a68dae4c96bc7118e946fc6d494a8799942af
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2024-03-28 10:20:41 +00:00
Tobias Urdin 0a7c3050e8 Bump tenacity dependency to >= 5.0.0
This bumps the tenacity dependency to
>= 5.0.0 because that is what should have
been done with the fix in [1] where that
new support was added.

[1] https://review.opendev.org/c/openstack/tooz/+/829412

Change-Id: I5aef75c3dba44b975b850c0745bfe317837d2c12
2022-03-29 09:06:40 +00:00
Tobias Urdin 5fbb63fa4f Support later tenacity versions
Instead of lambda func use the defined
retry_never Retrying class.

Change-Id: I756b44443d8b5892c04bd1be9faa010e39c763fc
2022-03-21 12:08:19 +00:00
Matthias Runge a025b4d4ee Retry on redis connection errors
Sometimes, connections get closed by the server. This change
adds retrying to the code.

Change-Id: Iaab5ce609c0dcf7085f5dd43efbd37eb4b88f17b
2021-03-31 10:49:35 +02:00
Matthias Runge f2005df3d6 Cap tenacity to unblock the gate
Recent version 7 changed retry and dropped the
retry_state parameter.

Change-Id: I109d3b5770c3cd8fe0bdeae78517f4d36ba3b65f
2021-03-09 16:14:24 +00:00
Ade Lee 54448e9d8b Replace md5 with oslo version
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
2020-10-29 15:44:36 -04:00
Riccardo Pittau 5ac72fcb3d Remove six library
The tooz project doesn't support Python 2 anymore, using the
six library should not be necessary.

Change-Id: I9886cabcd13cbc615065ceb372efbf037dff1aeb
2020-07-01 15:56:53 +02:00
Andreas Jaeger ba27954b06 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Parent tox py36/py37 jobs to openstack-tox-py36/37 so that the correct
interpreter is installed.

Change-Id: I14a01f0a9989195e30c3ed0dadec35490f41bd48
2020-02-03 22:19:47 +01:00
Thomas Bechtold 535121d613 Move grpcio from requirements.txt to extras
It is only needed for the etcd3 driver.

Change-Id: I0a0215f56b37d9a4286097b7f748f68d59afcb35
2019-07-04 08:23:54 +02:00
Hervé Beraud 89b61cddb2 Update Sphinx requirement and uncap grpcio
Sphinx 2.0 no longer works on python 2.7, so we need to start capping it there.

grpcio-1.16.0 introduced a bug that is breaking the tooz unit tests.
cf. I8b026a0680a91a68281e354a59012565f4db1b95 for more info. 1.18.0
fixes the problem, so bump our minimum requirement to that version.

Change-Id: I4b672563f4a80ce0e0478c867b7f85842ac3b0d3
2019-06-04 09:24:49 +02:00
Ben Nemec 70f144abde Unblock tooz gate
We have a couple of issues blocking tooz test jobs right now. This
is a combination of two commits that fix the problem.

Cap grpcio<1.16.0

1.16.0 introduces a bug that is causing our etcd3 tests to fail on
a consistent basis. Until that is resolved we can't use any higher
versions of grpcio.

1.0.0 is used as the lower bound on the assumption that any version
of the current major release will work. Since we weren't setting a
bound before that seems relatively safe.

Partial-Bug: 1808046

Fix requirements

The requirements check job is failing on a couple of the entries in
this project. enum34 needs a lower bound, and futurist has an
exclusion that isn't in global-requirements.

enum34 is given the same lower bound as oslo.upgradecheck, and
futurist's lower bound is increased to the last global lower bound
(before lower bounds were removed), which eliminates the need for
the exclusion.

Change-Id: I1b279e138325b596f5ec2c61717029d2f7bdd075
Depends-On: https://review.openstack.org/#/c/624759/
2018-12-17 22:36:59 +00:00
Dirk Mueller 78caecd878 msgpack-python has been renamed to msgpack
Change-Id: I92cb78b4e361023f04424b3c52ac8ec8e0c82d5f
Related-Bug: #1743445
2018-01-15 21:17:01 +01:00
Julien Danjou 533341aebb Replace retrying with tenacity
Change-Id: I1f4710ac0b7a3fd32cd3406254ecbd6b7ae1dfa2
Closes-Bug: #1635406
2016-11-24 10:25:52 +01:00
OpenStack Proposal Bot b322024617 Updated from global requirements
Change-Id: Ic03b166406e4b43f99c71de2d4ff50dbde0b5737
2016-07-18 00:04:57 +00:00
OpenStack Proposal Bot 324482fa96 Updated from global requirements
Change-Id: I3fdc2c1e9b42e52d2b9d21781b968542af68a987
2016-07-09 19:28:37 +00:00
OpenStack Proposal Bot 67164564f4 Updated from global requirements
Change-Id: I820f2f82e98671a87fc8ccf2482d192943de0bf8
2016-06-30 18:51:17 +00:00
Julien Danjou e8d37b018a Change dependency to use flavors
This makes sure we install the correct and only the correct dependencies
when installing tooz, based on the driver one wants to use.

Change-Id: I58825cf228771a00b28d515a552141b42f884efa
2016-06-09 10:40:48 +02:00
Julien Danjou 36655c68fe Remove unused iso8601 dependency
Change-Id: I3d91a6548de6dfa655a1e485a78db2337b728568
2016-06-09 10:40:16 +02:00
OpenStack Proposal Bot fdcaff6db7 Updated from global requirements
Change-Id: I31800fa778009a20802c49bb042f817234b417dd
2016-06-08 15:15:42 +00:00
OpenStack Proposal Bot c2f96711af Updated from global requirements
Change-Id: I4324dc5ccd7766589578b0264fad506fcc80ab99
2016-05-31 03:07:44 +00:00
OpenStack Proposal Bot ccf6b7a2c1 Updated from global requirements
Change-Id: Ia85537281753383058c70529a821f15afcf19c72
2016-05-17 14:11:30 +00:00
OpenStack Proposal Bot 38cd610a03 Updated from global requirements
Change-Id: I5d8c739cda2d4f2b7c47258106114c977262e2ca
2016-05-12 18:35:20 +00:00
Jenkins a9c620c803 Merge "Add a consul based driver" 2016-05-12 18:29:24 +00:00
Vilobh Meshram f917844ee5 Add a consul based driver
For now it only supports locks, in the
future it may support more functionality
as time allows (and/or if people want to
add it).

Co-Authored-By: Joshua Harlow <harlowja@gmail.com>

Implements: bp add-consul-driver

Change-Id: I6064383e9db4e90fd16f17065bd7b0934ca7e125
2016-05-12 08:23:49 +00:00
OpenStack Proposal Bot de9f0beeaf Updated from global requirements
Change-Id: I8004b9b0baa5347c5fb74135ac0dba88316f5916
2016-04-30 18:09:52 +00:00
Joshua Harlow 82afcb5481 Drop babel as requirement since its not used
See the following thread for more details.

http://lists.openstack.org/pipermail/openstack-dev/2016-April/thread.html#92510

Change-Id: I70a5118d289d95559a3b0500a6853d2a88048941
2016-04-20 18:51:39 -07:00
OpenStack Proposal Bot 340dc4c579 Updated from global requirements
Change-Id: Ie8a763a2e335bbe80584ab0b34800de06204433d
2016-04-19 12:30:08 +00:00
OpenStack Proposal Bot 512f58ce43 Updated from global requirements
Change-Id: I43f17dfefe1e80939d93f19dd8f43261ae31df2e
2016-04-13 12:49:43 +00:00
OpenStack Proposal Bot 0ea96feac3 Updated from global requirements
Change-Id: I062ef06ab2843dc5ea2f7603dde0a9f999e5c7da
2016-02-20 22:01:51 +00:00
OpenStack Proposal Bot 3687a581ad Updated from global requirements
Change-Id: I0d5ab27c75efbc58d4baf5da14a42d01846673b7
2016-02-11 15:15:52 +00:00
OpenStack Proposal Bot 233714390d Updated from global requirements
Change-Id: I6fbd3ecb40d03f0cda21f24bf42e956efaa15125
2016-01-23 09:46:05 +00:00
OpenStack Proposal Bot 1a73b68485 Updated from global requirements
Change-Id: Iafa97879f99837bc7dea4fce0be2742c3975895f
2016-01-18 22:47:10 +00:00
OpenStack Proposal Bot a949282edd Updated from global requirements
Change-Id: I7e206ac84796527b47e9c41ca9dcce5197d8ec0a
2016-01-16 03:33:52 +00:00
Jenkins 543efc9a9c Merge "Use voluptuous instead of jsonschema" 2016-01-08 17:03:58 +00:00
Jenkins 349834f39c Merge "Add programatic introspection of drivers characteristic(s)" 2016-01-08 17:02:01 +00:00
Joshua Harlow bc9d6de048 Use voluptuous instead of jsonschema
The voluptuous is easier to use for non-rest oriented
library & services (which is really the place for jsonschema
to be used, as the schema for rest-services can be sent
to the user in json if needed) so use voluptuous internally
instead of jsonschema for simplicity and ease of use.

Change-Id: I0246708a5f8b60a9bedcddd0a8971d7d18eb589a
2016-01-07 12:44:16 -08:00
Joshua Harlow a3f22fe90c Add programatic introspection of drivers characteristic(s)
Change-Id: Icf187db9ba7d076b1a0f3cc9343acb0eaa1862cb
2016-01-07 12:38:15 -08:00
OpenStack Proposal Bot 7859e70327 Updated from global requirements
Change-Id: I64854e89646274bb44e600d69ab5f0d63807dcfb
2016-01-07 17:19:10 +00:00
Jenkins dbde7f4787 Merge "etcd: driver with lock support" 2016-01-04 14:54:23 +00:00
Julien Danjou d2529173ec etcd: driver with lock support
Change-Id: Ibac90b9b2a751eb4f502e2f8b723e5608dcaad18
2015-12-29 10:02:05 +01:00
OpenStack Proposal Bot b2e517dcbf Updated from global requirements
Change-Id: Ic593db906bfc570c019f70f485f7cfb0d3298257
2015-12-19 14:39:34 +00:00
Joshua Harlow 815c363de9 Add basic file content schema validation
Using jsonschema we can validate (at a basic level)
that the files created and the contents written were
not altered to be of a different format so add some
basic format validation to help in detecting format
issues/changes.

This also avoids having to use type errors to try to
detect this same kind of tampering/data format change.

Change-Id: I80b4e560f24162e079cf4adab06d35ec75f4b70c
2015-12-17 18:02:35 -08:00
OpenStack Proposal Bot fd36017628 Updated from global requirements
Change-Id: I6be25677470a03a3d45877442e4e9fd1d93ab995
2015-12-15 19:01:12 +00:00
OpenStack Proposal Bot 5f0be849f3 Updated from global requirements
Change-Id: I6aa1d9767f5da59c88b940f6ca7ed56abff41166
2015-12-11 15:27:10 +00:00
OpenStack Proposal Bot d7c2d1d4e2 Updated from global requirements
Change-Id: I1fb982064db18005f1df6b5d44a7f8cafe00779b
2015-11-18 20:52:48 +00:00
OpenStack Proposal Bot 3c1dfd8c9d Updated from global requirements
Change-Id: I82a9eef2426db1478c4f4542a4c0630f3bcf1ca7
2015-11-09 12:34:52 +00:00
OpenStack Proposal Bot 924fd939ce Updated from global requirements
Change-Id: I1362b8e0313f9ce353468905ba0713c9ffa13ece
2015-10-19 23:33:54 +00:00
OpenStack Proposal Bot 3b6dcc405f Updated from global requirements
Change-Id: I6055a8249e653a572cf1b86e30f830f8965c3b80
2015-10-16 01:01:49 +00:00
OpenStack Proposal Bot cc729345a5 Updated from global requirements
Change-Id: Iedea200bc9fb9244713d7227b8305055a0424ea5
2015-09-17 12:17:45 +00:00
OpenStack Proposal Bot 7cfb5529bc Updated from global requirements
Change-Id: Ibc718f2d80ab2b464f630b02f11b3d8554572c4f
2015-08-26 14:15:29 +00:00