[PKG-Openstack-devel] Bug#880129: ceilometer: FTBFS: tests fail with ImportError: No module named zaqarclient.queues.v2

Andreas Beckmann anbe at debian.org
Sun Oct 29 19:30:14 UTC 2017


Source: ceilometer
Version: 1:9.0.1-1
Severity: serious
Justification: fails to build from source

ceilometer FTBFS in a minimal up-to-date sid+experimental environment:

   debian/rules override_dh_auto_test
make[1]: Entering directory '/build/ceilometer-9.0.1'
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
rm -rf .testrepository
testr init
set -e ; \
        TEMP_REZ=`mktemp -t` ; \
        bash -x ./debian/setup-test-env-mongodb.sh testr run --subunit --parallel '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.*))' | tee $TEMP_REZ | subunit2pyunit ; \
        cat $TEMP_REZ | subunit-filter -s --no-passthrough | subunit-stats ; \
        rm -f $TEMP_REZ ;
+ set -e
+ source debian/functions.sh
+ '[' testr = --coverage ']'
+ export PATH=/usr/sbin:/usr/bin:/sbin:/bin:/sbin:/usr/sbin
+ PATH=/usr/sbin:/usr/bin:/sbin:/bin:/sbin:/usr/sbin
+ check_for_cmd mongod
+ which mongod
++ mktemp -d /tmp/CEILO-MONGODB-XXXXX
+ MONGO_DATA=/tmp/CEILO-MONGODB-SHNbO
+ MONGO_PORT=29000
+ trap 'clean_exit /tmp/CEILO-MONGODB-SHNbO' EXIT
+ mkfifo /tmp/CEILO-MONGODB-SHNbO/out
+ wait_for_line 'waiting for connections on port 29000' /tmp/CEILO-MONGODB-SHNbO/out
+ exit_code=1
+ mongod --maxConns 32 --nojournal --noprealloc --smallfiles --quiet --noauth --port 29000 --dbpath /tmp/CEILO-MONGODB-SHNbO --bind_ip localhost --config /dev/null
+ read line
+ echo 'note: noprealloc may hurt performance in many applications'
+ grep -q 'waiting for connections on port 29000'
+ read line
+ echo '2017-10-29T17:40:18.985+0000 I CONTROL  [initandlisten] MongoDB starting : pid=27045 port=29000 dbpath=/tmp/CEILO-MONGODB-SHNbO 64-bit host=zam904'
+ grep -q 'waiting for connections on port 29000'
+ read line
+ echo '2017-10-29T17:40:18.985+0000 I CONTROL  [initandlisten] db version v3.2.17'
+ grep -q 'waiting for connections on port 29000'
+ read line
+ grep -q 'waiting for connections on port 29000'
+ echo '2017-10-29T17:40:18.985+0000 I CONTROL  [initandlisten] git version: 186656d79574f7dfe0831a7e7821292ab380f667'
+ read line
+ echo '2017-10-29T17:40:18.985+0000 I CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.1.0f  25 May 2017'
+ grep -q 'waiting for connections on port 29000'
+ read line
+ echo '2017-10-29T17:40:18.985+0000 I CONTROL  [initandlisten] allocator: tcmalloc'
+ grep -q 'waiting for connections on port 29000'
+ read line
+ grep -q 'waiting for connections on port 29000'
+ echo '2017-10-29T17:40:18.985+0000 I CONTROL  [initandlisten] modules: none'
+ read line
+ grep -q 'waiting for connections on port 29000'
+ echo '2017-10-29T17:40:18.985+0000 I CONTROL  [initandlisten] build environment:'
+ read line
+ echo '2017-10-29T17:40:18.985+0000 I CONTROL  [initandlisten]     distarch: x86_64'
+ grep -q 'waiting for connections on port 29000'
+ read line
+ grep -q 'waiting for connections on port 29000'
+ echo '2017-10-29T17:40:18.985+0000 I CONTROL  [initandlisten]     target_arch: x86_64'
+ read line
+ grep -q 'waiting for connections on port 29000'
+ echo '2017-10-29T17:40:18.985+0000 I CONTROL  [initandlisten] options: { config: "/dev/null", net: { bindIp: "localhost", maxIncomingConnections: 32, port: 29000 }, security: { authorization: "disabled" }, storage: { dbPath: "/tmp/CEILO-MONGODB-SHNbO", journal: { enabled: false }, mmapv1: { preallocDataFiles: false, smallFiles: true } }, systemLog: { quiet: true } }'
+ read line
+ grep -q 'waiting for connections on port 29000'
+ echo '2017-10-29T17:40:18.986+0000 I STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=18G,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0),,log=(enabled=false),'
+ read line
+ echo '2017-10-29T17:40:19.003+0000 W STORAGE  [initandlisten] Detected configuration for non-active storage engine mmapv1 when current storage engine is wiredTiger'
+ grep -q 'waiting for connections on port 29000'
+ read line
+ grep -q 'waiting for connections on port 29000'
+ echo '2017-10-29T17:40:19.007+0000 I FTDC     [initandlisten] Initializing full-time diagnostic data capture with directory '\''/tmp/CEILO-MONGODB-SHNbO/diagnostic.data'\'''
+ read line
+ grep -q 'waiting for connections on port 29000'
+ echo '2017-10-29T17:40:19.007+0000 I NETWORK  [initandlisten] waiting for connections on port 29000'
+ exit_code=0
+ break
+ '[' 0 -eq 1 ']'
+ export CEILOMETER_TEST_STORAGE_URL=mongodb://localhost:29000/ceilometer
+ CEILOMETER_TEST_STORAGE_URL=mongodb://localhost:29000/ceilometer
+ OS_TEST_PATH=./ceilometer/tests/unit
+ testr run --subunit --parallel '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.*))'
+ cat /tmp/CEILO-MONGODB-SHNbO/out
+ cat /tmp/CEILO-MONGODB-SHNbO/out
runNon-zero exit code (2) from test listing.
ning=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-600} \
${PYTHON:-python} -m subunit.run discover ${OS_TEST_PATH:-./ceilometer/tests} -t . --list 
--- import errors ---
F+ clean_exit /tmp/CEILO-MONGODB-SHNbO
+ local error_code=3
a+ rm -rf /tmp/CEILO-MONGODB-SHNbO
iled to import test module: ceilometer.tests.unit.publisher.test_zaqar
++ jobs -p
Tra+ kill 27045 27134 27135
+ return 3
ceback (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 "ceilometer/tests/unit/publisher/test_zaqar.py", line 21, in <module>
    from ceilometer.publisher import zaqar
  File "ceilometer/publisher/zaqar.py", line 19, in <module>
    from zaqarclient.queues.v2 import client as zaqarclient
ImportError: No module named zaqarclient.queues.v2

----------------------------------------------------------------------
Ran 0 tests in 3.079s

OK
Total tests:       0
Passed tests:      0
Failed tests:      0
Skipped tests:     0
Seen tags: 
testr slowest
debian/rules:60: recipe for target 'override_dh_auto_test' failed
make[1]: *** [override_dh_auto_test] Error 3


Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ceilometer_1%9.0.1-1.log.gz
Type: application/gzip
Size: 31126 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/openstack-devel/attachments/20171029/71fb18c8/attachment-0001.bin>


More information about the Openstack-devel mailing list