[PKG-Openstack-devel] Bug#909985: ceilometer: FTBFS (Failed to import test module)

Santiago Vila sanvila at debian.org
Mon Oct 1 00:03:42 BST 2018


Package: src:ceilometer
Version: 1:11.0.0-2
Severity: serious
Tags: ftbfs

Dear maintainer:

I tried to build this package in buster 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  --with python3,systemd,sphinxdoc
   dh_update_autotools_config -i
   dh_autoreconf -i
   dh_auto_configure -i
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 ...]

+ TEST_PARALLEL_OPT=--parallel
+ PKGOS_USE_PY2=no
+ shift
+ [ no = yes ]
+ [ yes = yes ]
+ py3versions -vr
+ PYTHON3S=3.6
+ [ yes = no ]
+ [ disabled = disabled ]
+ continue
+ [ 3.6 = disabled ]
+ cut -d. -f1
+ echo 3.6
+ PYMAJOR=3
+ echo ===> Testing with python (python3)
===> Testing with python (python3)
+ [ 3 = 3 ]
+ pwd
+ [ -d /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages ]
+ [ -z /<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages ]
+ [ -e .stestr.conf ]
+ rm -rf .stestr
+ subunit2pyunit
+ PYTHON=python3.6 python3-stestr run --subunit tests\.(?!(.*test_bin.*|.*functional.*|.*gabbi\.test_gabbi_prefix.*|.*meter\.test_notifications\.TestMeterProcessing\.test_fallback_meter_path.*|.*agent\.test_manager\.TestRunTasks\.test_batching_polled_samples_false.*))

=========================
Failures during discovery
=========================
b'--- import errors ---\nFailed to import test module: ceilometer.tests.unit.hardware.inspector.test_snmp\nTraceback (most recent call last):\n  File "/usr/lib/python3/dist-packages/unittest2/loader.py", line 456, in _find_test_path\n    module = self._get_module_from_name(name)\n  File "/usr/lib/python3/dist-packages/unittest2/loader.py", line 395, in _get_module_from_name\n    __import__(name)\n  File "/<<PKGBUILDDIR>>/ceilometer/tests/unit/hardware/inspector/test_snmp.py", line 23, in <module>\n    from ceilometer.hardware.inspector import snmp\n  File "/<<PKGBUILDDIR>>/ceilometer/hardware/inspector/snmp.py", line 21, in <module>\n    from pysnmp.entity.rfc3413.oneliner import cmdgen\nModuleNotFoundError: No module named \'pysnmp.entity.rfc3413.oneliner\'\n'
================================================================================
The above traceback was encountered during test discovery which imports all the found test modules in the specified test_path.

----------------------------------------------------------------------
Ran 0 tests in 1.567s

OK
+ python3-stestr slowest
+ clean_exit /tmp/CEILO-MONGODB-drAOR
+ local error_code=3
+ rm -rf /tmp/CEILO-MONGODB-drAOR
++ jobs -p
+ kill 11332 11374
+ return 3
make[1]: *** [debian/rules:32: override_dh_install] Error 3
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:7: 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/ceilometer.html

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

If this is really a bug in one of the build-depends, please use reassign and affects,
so that this is still visible in the BTS web page for this package.

Thanks.



More information about the Openstack-devel mailing list