Fix pylint warning with eventlet > 0.22.0

When eventlet was bumped up to 0.24.1 in upper-constraints [1]
it started generating a pylint warning, since neutron has
support for older versions such as 0.22.0 that take a different
number of arguments. Just silence the warning.

Also, in order to get this through the gate, the
neutron-grenade-dvr-multinode check job is being temporarily
set to non-voting and removed from the gate.  That change
should be reverted as soon as we fix bug 1791989.

[1] https://review.openstack.org/#/c/589382/

Change-Id: I169ecb6f33b670c5469919214a32645cd9eda206
Closes-Bug: #1791178
Related-Bug: #1791989
This commit is contained in:
Brian Haley 2018-09-12 10:54:47 -06:00
parent eaff4be1c1
commit db7e19d2ba
2 changed files with 8 additions and 1 deletions

View File

@ -49,7 +49,8 @@
- neutron-tempest-linuxbridge
- neutron-tempest-iptables_hybrid
- neutron-grenade-multinode
- neutron-grenade-dvr-multinode
# NOTE(haleyb) revert this as soon as we fix bug 1791989
# - neutron-grenade-dvr-multinode
- neutron-grenade
- openstack-tox-lower-constraints
- openstack-tox-cover
@ -230,6 +231,8 @@
- openstack/neutron
nodeset: ubuntu-xenial-2-node
irrelevant-files: *tempest-irrelevant-files
# NOTE(haleyb) revert this as soon as we fix bug 1791989
voting: false
- job:
name: neutron-tempest-multinode-full

View File

@ -405,6 +405,10 @@ class UnixDomainHttpProtocol(eventlet.wsgi.HttpProtocol):
if not client_address:
client_address = ('<local>', 0)
# base class is old-style, so super does not work properly
# NOTE: eventlet 0.22 or later changes the number of args to 2.
# If we install eventlet 0.22 or later into a venv for pylint,
# pylint complains this. Let's skip it. (bug 1791178)
# pylint: disable=too-many-function-args
eventlet.wsgi.HttpProtocol.__init__(
self, request, client_address, server)
else: