Fix ussuri jobs

Squashed two changes together since both are needed to fix jobs:

Resolve PEP8

No idea how this happened, but reviews started failing the
pep8 gate job. The failures are legitimate, see the commit.
I guess the pep8 tests became smarter and found these issues.

(cherry picked from commit 52ff421e3d)

Add libc6-dev to bindep

The python-builder base image was updated to no longer install
recommends. This is inline with the other Infra images and keeps
image sizes smaller. gcc recommended libc6-dev - but it turns out
we need that for limits.h for one of our depends. Add it to fix
our image builds.

(cherry picked from commit 97d027caec)

Change-Id: Id9a0dad644134dafd68eed37fe8f41c583d7a619
This commit is contained in:
Pete Zaitcev 2020-05-14 13:53:38 -05:00 committed by Andreas Jaeger
parent c5719a12b5
commit a9e1a7981b
3 changed files with 2 additions and 2 deletions

View File

@ -2,6 +2,7 @@
# see https://docs.openstack.org/infra/bindep/ for additional information.
gcc [compile test]
libc6-dev [compile test platform:dpkg]
libffi-devel [platform:rpm]
libffi-dev [compile test platform:dpkg]
libffi6 [platform:dpkg]

View File

@ -79,7 +79,6 @@ class ProjectTests(common.IdentityTests):
'--disable '
'--property k0=v0 '
'%(name)s' % {'new_name': new_project_name,
'domain': self.domain_name,
'name': project_name})
self.assertEqual(0, len(raw_output))
# check project details

View File

@ -1832,7 +1832,7 @@ class FakeFloatingIPPortForwarding(object):
"""
attrs = attrs or {}
floatingip_id = (
attrs.get('floatingip_id') or'floating-ip-id-' + uuid.uuid4().hex
attrs.get('floatingip_id') or 'floating-ip-id-' + uuid.uuid4().hex
)
# Set default attributes.
port_forwarding_attrs = {