Commit Graph

9 Commits

Author SHA1 Message Date
Takashi Kajinami 0a56650693 Remove usage of six library
... because now ldappool supports Python 3 only.

Change-Id: Ibeb60dbc81ef5b03f0732439ed07c2b672e78df5
2023-05-23 10:30:49 +02:00
Stephen Finucane 8b3f27b22a Update CI to use unversioned jobs template
As part of the migration of this project to the independent release
model, we failed to notice that the job template was still tied to a
specific release. We've now introduced a new unversioned job template,
'openstack-python3-jobs' [1], which was can and should use. Do this.

[1] https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/833286/

NOTE:
This adds six to requirements to make that required library installed.
This will be removed later when we get rid of usage of the six library.

Depends-On: https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/833286/
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I906db4eeb673b667667f9706e0084fe441769e84
2022-07-16 22:58:20 +09:00
Wander Way 322e0d753f Remove lower-constraints, uncap PrettyTable
The lower-constraints jobs are timing out, which means we're failing to
find a match for our specified constraints. These jobs are of limited
value so just drop them.

The change to requirements flags the cap we currently enforce on
PrettyTable. This was previously necessary due to requirements enforcing
the same case, but PrettyTable is now maintained as a Jazzband project
[1] and the cap has been removed.

Finally, while we're here, we can cleanup tox.ini somewhat and remove
now unnecessary warnings from the 'requirements.txt' file (this isn't an
issue with pip's new resolver).

[1] https://github.com/jazzband/prettytable

Change-Id: Ib0fad16f3c9b817756996f79c0b0b61f854583a3
Co-authored-by: Stephen Finucane <stephenfin@redhat.com>
2021-02-24 14:00:21 +00:00
Nathan Kinder acc14fca3a Allow pool status to be printed as a table
This patch adds a __str__() method to the ConnectionManager class,
which allows for a nice readible table to be obtained that shows
the current state of the connection pool.  This can be very useful
for troubleshooting or monitoring issues related to connection
pooling.  The table will contain a row for each connection within
the pool, with columns showing the connection slot, connectivity
status, activity status, URI, connection lifetime, and bind DN.
The header row will also indicate the pool size and maximum
connection lifetime setting.

Note that this adds a dependency on the prettytable module.  This
new dependency seems worth it for the nice readible table format
it produces.

Change-Id: If0abfef405d05ecd499bdf6201ff465bd845957b
2018-11-02 06:43:16 -07:00
Dirk Mueller f1d30bce9b Switch to python-ldap again
pyldap is meanwhile an outdated and deprecated fork, and the
Python 3.x compatibility fixes have been merged back to python-ldap.

Change-Id: I4b793a9a72b84005a57cc1e3f6f89a483d7eda5c
2018-07-18 20:25:01 +00:00
OpenStack Proposal Bot 99e1a06b0c Updated from global requirements
Change-Id: I6272cb835dc3b55a1b3b9a7b852fc069ba8b94d2
2016-09-30 19:59:55 +00:00
OpenStack Proposal Bot 26766b509d Updated from global requirements
Change-Id: Ifac3a5b2fd0964eb9cfa4a5877433367cbbe1d2c
2016-05-18 02:35:37 +00:00
Steve Martinelli 5f6748212b make ldappool py3 compatible
* properly utf8 encode password
* switch to pyldap, the drop in replacement for python-ldap

Change-Id: Ic0fc838b8e015d90c946c3d161d096afe0bb7a21
Depends-On: I9cf13a5be63a0abc964c5a6e29c92d16365d89d8
Depends-On: I330b9b8fd3b53a588f0a1ae0c7de16cf03adb3cd
2016-05-17 21:52:23 +00:00
Morgan Fainberg 6350323b7f Add support for tox unit testing
Add support for tox unit testing prior to import into openstack's
gerrit/CI system.
2016-05-12 08:36:14 -07:00