[PKG-Openstack-devel] Bug#909370: networking-arista: FTBFS (module 'neutron.db.api' has no attribute 'get_writer_session')

Santiago Vila sanvila at debian.org
Sat Sep 22 17:43:18 BST 2018


Package: src:networking-arista
Version: 2017.2.2-2
Severity: serious
Tags: ftbfs

Dear maintainer:

I tried to build this package in sid but it failed:

--------------------------------------------------------------------------------
[...]
 debian/rules build-indep
pyversions: missing X(S)-Python-Version in control file, fall back to debian/pyversions
pyversions: missing debian/pyversions file, fall back to supported versions
py3versions: no X-Python3-Version in control file, using supported versions
dh build-indep --buildsystem=python_distutils --with python3
   dh_update_autotools_config -i -O--buildsystem=python_distutils
   dh_autoreconf -i -O--buildsystem=python_distutils
   dh_auto_configure -i -O--buildsystem=python_distutils
dh_auto_configure: Please use the third-party "pybuild" build system instead of python-distutils
dh_auto_configure: This feature will be removed in compat 12.
   debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
pyversions: missing X(S)-Python-Version in control file, fall back to debian/pyversions
pyversions: missing debian/pyversions file, fall back to supported versions

[... snipped ...]

  File "/usr/lib/python3/dist-packages/neutron/tests/base.py", line 140, in func
    return f(self, *args, **kwargs)
  File "/<<PKGBUILDDIR>>/networking_arista/tests/unit/ml2/test_arista_sync.py", line 174, in test_synchronize_one_network
    db_lib.remember_tenant(tenant_1_id)
  File "/<<PKGBUILDDIR>>/networking_arista/common/db_lib.py", line 38, in remember_tenant
    session = db.get_writer_session()
AttributeError: module 'neutron.db.api' has no attribute 'get_writer_session'


======================================================================
FAIL: networking_arista.tests.unit.ml2.test_arista_sync.SyncServiceTest.test_synchronize_required
networking_arista.tests.unit.ml2.test_arista_sync.SyncServiceTest.test_synchronize_required
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/neutron/tests/base.py", line 140, in func
    return f(self, *args, **kwargs)
  File "/<<PKGBUILDDIR>>/networking_arista/tests/unit/ml2/test_arista_sync.py", line 71, in test_synchronize_required
    db_lib.remember_tenant(tenant_id)
  File "/<<PKGBUILDDIR>>/networking_arista/common/db_lib.py", line 38, in remember_tenant
    session = db.get_writer_session()
AttributeError: module 'neutron.db.api' has no attribute 'get_writer_session'


======================================================================
FAIL: networking_arista.tests.unit.ml2.test_arista_sync.SyncServiceTest.test_synchronize_shared_network_ports
networking_arista.tests.unit.ml2.test_arista_sync.SyncServiceTest.test_synchronize_shared_network_ports
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/neutron/tests/base.py", line 140, in func
    return f(self, *args, **kwargs)
  File "/<<PKGBUILDDIR>>/networking_arista/tests/unit/ml2/test_arista_sync.py", line 352, in test_synchronize_shared_network_ports
    db_lib.remember_tenant(tenant_1_id)
  File "/<<PKGBUILDDIR>>/networking_arista/common/db_lib.py", line 38, in remember_tenant
    session = db.get_writer_session()
AttributeError: module 'neutron.db.api' has no attribute 'get_writer_session'


----------------------------------------------------------------------
Ran 156 tests in 77.484s

FAILED (failures=20)
make[1]: *** [debian/rules:26: override_dh_install] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:6: binary-indep] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary-indep subprocess returned exit status 2
--------------------------------------------------------------------------------

The build was made in my autobuilder with "dpkg-buildpackage -A"
but it also fails here:

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/networking-arista.html

where you can get a full build log if you need it.

I guess you need to upload version 2018.1.0 to fix this.

Thanks.



More information about the Openstack-devel mailing list