| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Change-Id: If0b5c982020faf0f512a1c0d9b7b495789b9aa4f
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Depends-on: https://review.opendev.org/742165
On Fedora rawhide the gear package no longer build.
https://koschei.fedoraproject.org/package/python-gear?
This patch ensures that the ssl engine does not complains about:
- ssl.SSLError: [SSL: EE_KEY_TOO_SMALL] ee key too small (_ssl.c:2951)
- ssl.SSLError: [SSL: CA_MD_TOO_WEAK] ca md too weak (_ssl.c:2951)
To reproduce the issue:
podman run -it --root fedora:rawhide
dnf install git libffi-devel python-devel tox gcc
git clone https://opendev.org/opendev/gear.git && cd gear
tox -epy39
tox -epy38
Change-Id: I57cd9c4750f27b7b76e92a0eef03e7de70c13dd5
|
|/
|
|
| |
Change-Id: Iebda27b20aaa94539766feeeb0236675c2ebdac6
|
|
|
|
|
|
|
|
|
| |
This floods the zuul test logs with poll messages which indicates that
something changed to a busy loop.
This reverts commit 103ad3e8ed78c6895c425115fda45f28441bbfaf.
Change-Id: Id3347136507e7e65ccde937f1c2fd303aa3dfbbe
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| | |
Gear currently supports keepalive only on linux platforms. On mac the
socket must be configured differently. For now just ignore the
keepalive flag in this case and emit a warning.
Change-Id: I276967b720742fa64e5bc6eb769c75590141275c
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| |
| |
| | |
Switch between Epoll and Poll depending on the OS capabilities.
Change-Id: Iaf1324d0c9d43c76e3f228f1a176e453a82a71a4
Co-Authored-By: Jan Kubovy <jan.kubovy@bmw.de>
Co-Authored-By: Tobias Henkel <tobias.henkel@bmw.de>
|
| |
| |
| |
| |
| |
| | |
Make package listing on PYPA more informative for the users.
Change-Id: Ifd20ae3ee006c8018d04782f3328799769ce4f30
|
|\ \
| |/
|/| |
|
| |
| |
| |
| |
| |
| |
| |
| | |
We're moving this from the openstack to the opendev tenant. We
should move the jobs in-repo at the same time.
Depends-On: https://review.opendev.org/688451
Change-Id: I23b4a0d78d515557bfb676f206dcc0a91ecb8502
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch does a few things to fix the documentation builds for
this project
- Move requirements to doc/requirements.txt for building docs to
avoid installing extra dependencies.
- Bump sphinx version to a newer release which is compatible with
sphinxcontrib-programoutput
- Remove default theme option to use the latest Sphinx theme that
is shipped directly from upstream.
- Bumped basepython for documentation jobs to Python 3.
These are all squashed because the job is currently broken.
Change-Id: Ib998923a5daaa5e9d3ddc748b76b6304e5c39b22
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
According to the python docs [1] it is recommended to use
SSLContext.wrap_socket to create an ssl connection since Python 3.2
and 2.7.9. This enables us to also leverage server name indication
(SNI).
One use case where SNI is beneficial is an easy and standard way to
route traffic into an Openshift cluster. The most common way to get
traffic into an Openshift cluster is using a routes. The routes in an
openshift cluster work with either HTTP, HTTPS with SNI or TLS with
SNI [2]. TLS with SNI in this case also works with non-http
connections like gearman is using.
[1] https://docs.python.org/3/library/ssl.html#socket-creation
[2] https://docs.okd.io/3.11/dev_guide/expose_service/expose_internal_ip_router.html#overview
Change-Id: I19c1edc4a14a303d2a91894e0065c8d31f89ce24
|
|\ \
| |/
|/| |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Using Python3, Gearman unexpectedly closed the socket with a client when typing the 'workers' command.
gearman-debug.log:
File "/usr/local/lib/python3.5/dist-packages/gear/__init__.py", line 3250, in handleWorkers
(fd, ip, client_id.decode('utf8'),
AttributeError: 'str' object has no attribute 'decode'
Change-Id: I610bd44c76a0e52f8d4e8f24c82c636d4ebef0ae
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:
http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html
Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
If the listen address allows for ipv4 or ipv6 values we want to prefer
ipv6 if the host is configured with working ivp6. We add the ai_flag
AF_ADDRCONFIG to filter out ipv6 (and ipv4) if the host isn't configure
for this AF_INET version. Then we sort based on the family to prefer
ipv6 over ipv4.
The reason for this is clients will prefer ipv6 before falling back to
ipv4 when attempting to connect to a hostname. If the server isn't
listening on ipv6 this makes new connections happen slowly.
Change-Id: I9f7a235b04068856c6cceeb2c230f3b56945572e
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
A gearman client only waiting for jobs will wait indefinitely if the
gearman server vanishes (e.g. due to a VM crash). In this case there
is no traffic on the connection and the client blocks forever if there
is nothing in between that forcefully terminates the connection.
Adding tcp keepalive can mitigate that and the connection will be
terminated by the kernel in this situation which then triggers a
reconnect.
Change-Id: I8589cd45450245a25539c051355b38d16ee9f4b9
|
|/
|
|
|
|
| |
Mailinglists have been updated. Openstack-discuss replaces openstack-dev.
Change-Id: Ia1f74031b69da2d50f0404fac4698823526ecd83
|
|
|
|
|
|
|
|
| |
Add the ability for an operator to control which interface to listen
on. By default we use None to maintain backwards compatibility.
Change-Id: I14c13ff500317d5a7b580e1b2a7f798a8db5de1d
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
| |
It is possible to use python3 for gear, so support both python2 and
python3 wheels.
Also update classifier to indicate which versions of python we
support.
Change-Id: I74384871cabc8d5b22f2d7555201c21f1bf37099
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
|
|
|
|
|
|
|
|
|
| |
After registering a function, if a connection is sleeping (ie,
waiting for a NOOP to wake it up), cause it to send another
grab_job in case the newly registered job is something it can
handle.
Change-Id: Ibea13726f4a451ebc67850b17e168bd4accfbc0b
|
|
|
|
| |
Change-Id: I05598ceea20169a625bbb47f15288e6eadbc88d2
|
|
|
|
|
|
|
|
|
|
|
| |
Keep track of the three main queue stats we report, so that we don't
have to iterate over all the queued jobs to determine whether they
are running.
Also, drop the workers stat because it's not very useful and not
entirely trivial to calculate.
Change-Id: Id42a05e5626096d1100a9cb9e8166c8ec5103b41
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The sendRaw method (and therefore sendPacket) was originally
thread safe by virtue of consisting of a single socket.send()
call, but when we added SSL, we added a loop within the method
to handle the increased likelihood that not all data would be
sent in one call. Of course, the method should have been written
this way to start with.
However, this means that we can end up with partial packets being
sent before a context switch to another thread which may also
want to send a packet. To handle that case, place the entire
method in a lock.
Note, this doesn't affect server connections as they use a
non-blocking connection which has a send queue, so only one thread
ever actuall transmits.
Change-Id: I3bda6fda5f762d18f28b56a43b7dc28f37dbc427
|
|/
|
|
| |
Change-Id: Ic15ab05c16f143f1d557d935aecb6d0afe419d59
|
|
|
|
|
|
| |
This method had a typo.
Change-Id: I49b745387626f664235998de52d4c58927149b4d
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The method assertEquals has been deprecated since python 2.7.
http://docs.python.org/2/library/unittest.html#deprecated-aliases
Also in Python 3, a deprecated warning is raised when using assertEquals
therefore we should use assertEqual instead.
Change-Id: Ic99ea3f57bb6fd986ce2626e800e3d310a2e3df7
Closes-Bug: #1218185
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
These classes will provide a smoother path from python2 -> python3 when
using gear, as it will relieve the need for encoding/decoding.
Change-Id: I93bfe33f898294f30a82c0a24a18a081f9752354
|
|\ \ \
| |/ / |
|
| |/
| |
| |
| |
| |
| |
| | |
This breaks the API in subtle ways, but only really for people who want
to use Python 3 and/or not utf-8 function names.
Change-Id: If6bfc35d916cfb84d630af59f4fde4ccae5187d4
|
| |
| |
| |
| |
| |
| |
| | |
With the release of pbr 2.0.0, uncap so we can use the latest version.
Change-Id: I32536cc8fb2dde06971206fefee9742400b19387
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
|
|/
|
|
|
|
|
|
| |
Sync with openstack global requirements for hacking. This allows us to
properly use pbr 2.0.0.
Change-Id: Icde44550ce50065b4f1072b65d6de0e2f7cd45c4
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This rule is not backed by the pep8 standard and should not be
enforced (in fact, it is contra-indicated by the standard). It
was previously covered by E125 in an earlier version of the pep8
tool, but has since split out.
Change-Id: Ib9d39c44de29a633e02e36b8ddae87d5ec28d874
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The line in tox.ini "select=H231" did not add H231 to the list of flake8
checks. It made us only run H231.
Remove the H231 line and then fix the flake8 issues. The most
substantial of these was the shadowing of the queue module with local
variables named queue. Made that one import queue as queue_mod because
changing the variable names in the code was yuckier to look at.
Change-Id: I4a26a20889132f7f4525b17392088dda6bd5bbd2
|
| |
| |
| |
| |
| |
| | |
testr database format gets wonky if you do python2 before python3. Yay.
Change-Id: I8c250e8f71ce95e6224c90b9596d5a176e75626d
|
|\ \
| |/
|/| |
|
| |
| |
| |
| |
| |
| |
| | |
Ubuntu 16.04 switches to this for python3, so it's good to include it in
the default list that is attempted when one runs 'tox'.
Change-Id: Idae2118b3179010df8a9559a059d50b1decca8e5
|
|\ \
| |/
|/| |
|
| |
| |
| |
| |
| |
| | |
It's only needed for python < 2.7 which is not supported
Change-Id: I582fe81f7ad07d7be1c73a4799501d5f5c5cebcc
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The default filename for documenting binary dependencies has been
changed from "other-requirements.txt" to "bindep.txt" with the release
of bindep 2.1.0. While the previous name is still supported, it will
be deprecated.
Move the file around to follow this change.
Note that this change is self-testing, the OpenStack CI infrastructure
will use a "bindep.txt" file to setup nodes for testing.
For more information about bindep, see also:
http://docs.openstack.org/infra/manual/drivers.html#package-requirements
http://docs.openstack.org/infra/bindep/
Change-Id: I184b552d34b0f2016a38167bd19287943f51be41
|