[PKG-Openstack-devel] Bug#884563: networking-sfc: FTBFS: tests fail with AttributeError: 'module' object has no attribute 'NAME_MAX_LEN'

Andreas Beckmann anbe at debian.org
Sat Dec 16 22:23:05 UTC 2017


Source: networking-sfc
Version: 2.0.1~git20160926.27f311e-1
Severity: serious
Justification: fails to build from source

Hi,

networking-sfc FTBFS in a current sid+experimental environment while
running the tests:

   debian/rules override_dh_auto_test
make[1]: Entering directory '/build/networking-sfc-2.0.1~git20160926.27f311e'
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
ostestr
/usr/lib/python2.7/dist-packages/os_testr/ostestr.py:120: UserWarning: No .stestr.conf file found in the CWD. Please create one to to replace the .testr.conf. You can find a script to do this in the stestr git rep
ository.
  warnings.warn(msg)

=========================
Failures during discovery
=========================
--- import errors ---
Failed to import test module: networking_sfc.tests.unit.db.test_flowclassifier_db
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/unittest2/loader.py", line 456, in _find_test_path
    module = self._get_module_from_name(name)
  File "/usr/lib/python2.7/dist-packages/unittest2/loader.py", line 395, in _get_module_from_name
    __import__(name)
  File "networking_sfc/tests/unit/db/test_flowclassifier_db.py", line 30, in <module>
    from networking_sfc.db import flowclassifier_db as fdb
  File "networking_sfc/db/flowclassifier_db.py", line 34, in <module>
    from networking_sfc.extensions import flowclassifier as fc_ext
  File "networking_sfc/extensions/flowclassifier.py", line 173, in <module>
    'validate': {'type:string': attr.NAME_MAX_LEN},
AttributeError: 'module' object has no attribute 'NAME_MAX_LEN'
[...]

Full log attached.


Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: networking-sfc_2.0.1~git20160926.27f311e-1.log.gz
Type: application/gzip
Size: 21012 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/openstack-devel/attachments/20171216/10355b17/attachment-0001.bin>


More information about the Openstack-devel mailing list