[PKG-Openstack-devel] Bug#834840: neutron: FTBFS too much often (ImportError: No module named pep8)

Santiago Vila sanvila at debian.org
Fri Aug 19 17:17:36 UTC 2016


Package: src:neutron
Version: 2:8.1.2-1
Severity: serious

Dear maintainer:

I tried to build this package with "dpkg-buildpackage -A"
(which is what the "Arch: all" autobuilder would do to build it)
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
pyversions: missing X(S)-Python-Version in control file, fall back to debian/pyversions
pyversions: missing debian/pyversions file, fall back to supported versions
dh build-indep --buildsystem=python_distutils --with python2,systemd
   dh_testdir -i -O--buildsystem=python_distutils
   dh_update_autotools_config -i -O--buildsystem=python_distutils
   dh_auto_configure -i -O--buildsystem=python_distutils
   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

[... snipped ...]

neutron.tests.unit.tests.test_post_mortem_debug.TestGetIgnoredTraceback.test_no_ignored_tracebacks ... ok
neutron.tests.unit.tests.test_post_mortem_debug.TestGetIgnoredTraceback.test_single_member_trailing_chain
neutron.tests.unit.tests.test_post_mortem_debug.TestGetIgnoredTraceback.test_single_member_trailing_chain ... ok
neutron.tests.unit.tests.test_post_mortem_debug.TestGetIgnoredTraceback.test_two_member_trailing_chain
neutron.tests.unit.tests.test_post_mortem_debug.TestGetIgnoredTraceback.test_two_member_trailing_chain ... ok
neutron.tests.unit.tests.test_post_mortem_debug.TestTesttoolsExceptionHandler.test__get_debugger
neutron.tests.unit.tests.test_post_mortem_debug.TestTesttoolsExceptionHandler.test__get_debugger ... ok
neutron.tests.unit.tests.test_post_mortem_debug.TestTesttoolsExceptionHandler.test_exception_handler
neutron.tests.unit.tests.test_post_mortem_debug.TestTesttoolsExceptionHandler.test_exception_handler ... ok
neutron.tests.unit.tests.test_tools.ImportModulesRecursivelyTestCase.test_object_modules
neutron.tests.unit.tests.test_tools.ImportModulesRecursivelyTestCase.test_object_modules ... ok
Slowest Tests
Test id                                                                                                        Runtime (s)
-------------------------------------------------------------------------------------------------------------  -----------
neutron.tests.unit.extensions.test_extraroute.ExtraRouteDBSepTestCase.test_router_add_interface_ipv6_subnet    4.841
neutron.tests.unit.extensions.test_extraroute.ExtraRouteDBIntTestCase.test_router_add_interface_ipv6_subnet    4.484
neutron.tests.unit.extensions.test_l3.L3NatDBSepTestCase.test_router_add_interface_ipv6_subnet                 4.116
neutron.tests.unit.extensions.test_l3.L3NatDBIntTestCase.test_router_add_interface_ipv6_subnet                 3.749
neutron.tests.unit.extensions.test_l3.TestL3DbOperationBoundsTenant.test_floatingip_list_queries_constant      3.564
neutron.tests.unit.extensions.test_l3.TestL3DbOperationBounds.test_floatingip_list_queries_constant            3.543
neutron.tests.unit.extensions.test_extraroute.ExtraRouteDBSepTestCase.test_floatingip_update_different_router  3.494
neutron.tests.unit.db.test_agentschedulers_db.OvsAgentSchedulerTestCase.test_router_sync_data                  3.247
neutron.tests.unit.plugins.ml2.test_agent_scheduler.Ml2AgentSchedulerTestCase.test_router_sync_data            3.032
neutron.tests.unit.extensions.test_l3.L3NatDBSepTestCase.test_floatingip_update_different_router               3.019

======================================================================
FAIL: unittest2.loader._FailedTest.neutron.tests.unit.hacking.test_checks
unittest2.loader._FailedTest.neutron.tests.unit.hacking.test_checks
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
ImportError: Failed to import test module: neutron.tests.unit.hacking.test_checks
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 "/<<PKGBUILDDIR>>/neutron/tests/unit/hacking/test_checks.py", line 15, in <module>
    from neutron.hacking import checks
  File "/<<PKGBUILDDIR>>/neutron/hacking/checks.py", line 17, in <module>
    import pep8
ImportError: No module named pep8


----------------------------------------------------------------------
Ran 7338 tests in 1774.457s

FAILED (failures=1, skipped=54)
debian/rules:177: recipe for target 'override_dh_auto_test' failed
make[1]: *** [override_dh_auto_test] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:9: recipe for target 'build-indep' failed
make: *** [build-indep] Error 2
dpkg-buildpackage: error: debian/rules build-indep gave error exit status 2
--------------------------------------------------------------------------------

Because this source package only generates "Arch: all" packages, this
is the same as a FTBFS bug in the usual sense, and the fact that I was
doing "dpkg-buildpackage -A" does not mean anything special.

Thanks.



More information about the Openstack-devel mailing list