yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #48920
[Bug 1565732] [NEW] glance_store run_tests.sh fails due to missing dependencies
Public bug reported:
Calling rund_tests.sh from the glance store repository fails with:
--------
Running `tools/with_venv.sh python setup.py testr --testr-args='--subunit --concurrency 0 '`
running testr
Non-zero exit code (2) from test listing.
error: testr failed (3)
running=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-160} \
${PYTHON:-python} -m subunit.run discover -t ./ ./glance_store/tests --list
--- import errors ---
Failed to import test module: glance_store.tests.unit.test_cinder_store
Traceback (most recent call last):
File "/develop/OpenStack/glance_store/.venv/lib/python2.7/site-packages/unittest2/loader.py", line 456, in _find_test_path
module = self._get_module_from_name(name)
File "/develop/OpenStack/glance_store/.venv/lib/python2.7/site-packages/unittest2/loader.py", line 395, in _get_module_from_name
__import__(name)
File "glance_store/tests/unit/test_cinder_store.py", line 27, in <module>
from os_brick.initiator import connector
ImportError: No module named os_brick.initiator
Failed to import test module: glance_store.tests.unit.test_s3_store
Traceback (most recent call last):
File "/develop/OpenStack/glance_store/.venv/lib/python2.7/site-packages/unittest2/loader.py", line 456, in _find_test_path
module = self._get_module_from_name(name)
File "/develop/OpenStack/glance_store/.venv/lib/python2.7/site-packages/unittest2/loader.py", line 395, in _get_module_from_name
__import__(name)
File "glance_store/tests/unit/test_s3_store.py", line 22, in <module>
import boto.s3.connection
ImportError: No module named boto.s3.connection
Failed to import test module: glance_store.tests.unit.test_swift_store
Traceback (most recent call last):
File "/develop/OpenStack/glance_store/.venv/lib/python2.7/site-packages/unittest2/loader.py", line 456, in _find_test_path
module = self._get_module_from_name(name)
File "/develop/OpenStack/glance_store/.venv/lib/python2.7/site-packages/unittest2/loader.py", line 395, in _get_module_from_name
__import__(name)
File "glance_store/tests/unit/test_swift_store.py", line 35, in <module>
import swiftclient
ImportError: No module named swiftclient
Failed to import test module: glance_store.tests.unit.test_vmware_store
Traceback (most recent call last):
File "/develop/OpenStack/glance_store/.venv/lib/python2.7/site-packages/unittest2/loader.py", line 456, in _find_test_path
module = self._get_module_from_name(name)
File "/develop/OpenStack/glance_store/.venv/lib/python2.7/site-packages/unittest2/loader.py", line 395, in _get_module_from_name
__import__(name)
File "glance_store/tests/unit/test_vmware_store.py", line 23, in <module>
from oslo_vmware import api
ImportError: No module named oslo_vmware
Ran 0 tests in 1.632s
OK
--------
The root cause is that the created virtualenv is missing some packages
defined in setup.cfg as extras for optional stores but missing those
packages in test-requirements.txt.
** Affects: glance
Importance: Undecided
Assignee: Danny Al-Gaaf (danny-al-gaaf)
Status: New
** Changed in: glance
Assignee: (unassigned) => Danny Al-Gaaf (danny-al-gaaf)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1565732
Title:
glance_store run_tests.sh fails due to missing dependencies
Status in Glance:
New
Bug description:
Calling rund_tests.sh from the glance store repository fails with:
--------
Running `tools/with_venv.sh python setup.py testr --testr-args='--subunit --concurrency 0 '`
running testr
Non-zero exit code (2) from test listing.
error: testr failed (3)
running=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-160} \
${PYTHON:-python} -m subunit.run discover -t ./ ./glance_store/tests --list
--- import errors ---
Failed to import test module: glance_store.tests.unit.test_cinder_store
Traceback (most recent call last):
File "/develop/OpenStack/glance_store/.venv/lib/python2.7/site-packages/unittest2/loader.py", line 456, in _find_test_path
module = self._get_module_from_name(name)
File "/develop/OpenStack/glance_store/.venv/lib/python2.7/site-packages/unittest2/loader.py", line 395, in _get_module_from_name
__import__(name)
File "glance_store/tests/unit/test_cinder_store.py", line 27, in <module>
from os_brick.initiator import connector
ImportError: No module named os_brick.initiator
Failed to import test module: glance_store.tests.unit.test_s3_store
Traceback (most recent call last):
File "/develop/OpenStack/glance_store/.venv/lib/python2.7/site-packages/unittest2/loader.py", line 456, in _find_test_path
module = self._get_module_from_name(name)
File "/develop/OpenStack/glance_store/.venv/lib/python2.7/site-packages/unittest2/loader.py", line 395, in _get_module_from_name
__import__(name)
File "glance_store/tests/unit/test_s3_store.py", line 22, in <module>
import boto.s3.connection
ImportError: No module named boto.s3.connection
Failed to import test module: glance_store.tests.unit.test_swift_store
Traceback (most recent call last):
File "/develop/OpenStack/glance_store/.venv/lib/python2.7/site-packages/unittest2/loader.py", line 456, in _find_test_path
module = self._get_module_from_name(name)
File "/develop/OpenStack/glance_store/.venv/lib/python2.7/site-packages/unittest2/loader.py", line 395, in _get_module_from_name
__import__(name)
File "glance_store/tests/unit/test_swift_store.py", line 35, in <module>
import swiftclient
ImportError: No module named swiftclient
Failed to import test module: glance_store.tests.unit.test_vmware_store
Traceback (most recent call last):
File "/develop/OpenStack/glance_store/.venv/lib/python2.7/site-packages/unittest2/loader.py", line 456, in _find_test_path
module = self._get_module_from_name(name)
File "/develop/OpenStack/glance_store/.venv/lib/python2.7/site-packages/unittest2/loader.py", line 395, in _get_module_from_name
__import__(name)
File "glance_store/tests/unit/test_vmware_store.py", line 23, in <module>
from oslo_vmware import api
ImportError: No module named oslo_vmware
Ran 0 tests in 1.632s
OK
--------
The root cause is that the created virtualenv is missing some packages
defined in setup.cfg as extras for optional stores but missing those
packages in test-requirements.txt.
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1565732/+subscriptions
Follow ups