At first glance it seems like you're trying to run these tests with a neutron repo which is not up to date. Recently Neutron unit tests were reorganized [1]. Have you tried pulling again from git the neutron repo?
Salvatore [1] https://review.openstack.org/#/c/158811/ On 22 April 2015 at 19:38, Lenny Verkhovsky <len...@mellanox.com> wrote: > Hi, > > We had some issues with tox lately, > > The fix was removing ~/.pip and some other packages from this folder that > were used as cache for pip > > And reinstalling devstack. > > > > > > *Lenny Verkhovsky* > > > > *From:* Shane McGough [mailto:smcgo...@kemptechnologies.com] > *Sent:* Wednesday, April 22, 2015 1:30 PM > *To:* OpenStack Development Mailing List (not for usage questions) > *Subject:* [openstack-dev] [neutron-lbaas] [third-party] trying to set up > 3rd party CI, neutron-lbaas tox fails to import some neutron > > > > Hi all > > > > I am having trouble running tox tests on neutron-lbaas on a default clone. > I can see from the tox logs that it downloads the neutron egg just fine, > however, when running some of the tests it gets import errors when trying > to import from the neutron side of things. > > > > I checked the neutron repo and it does indeed seem like the files its > trying to import do not exist within the neutron repo tox downloads. Some > neutron files do successfully import apparently but majority are > referencing files that do not exist in the location its referencing. > > > > Am I missing something fundamental here? > > > > I included some of the errors below just to give an idea of what fails. > > > > Any help would be appreciated > > > > I am using Ubuntu Server 14.04.2 LTS > > > > Thanks > > Shane > > > > > > py27 runtests: PYTHONHASHSEED='0' > py27 runtests: commands[0] | sh tools/pretty_tox.sh > 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_LOG_CAPTURE=${OS_LOG_CAPTURE:-1} ${PYTHON:-python} -m subunit.run > discover -t ./ ${OS_TEST_PATH:-./neutron_lbaas/tests/unit} --list > --- import errors --- > Failed to import test module: neutron_lbaas.tests.unit.agent.test_agent > Traceback (most recent call last): > File > "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", > line 445, in _find_test_path > module = self._get_module_from_name(name) > File > "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", > line 384, in _get_module_from_name > __import__(name) > File "neutron_lbaas/tests/unit/agent/test_agent.py", line 21, in <module> > from neutron_lbaas.tests import base > File "neutron_lbaas/tests/base.py", line 18, in <module> > from neutron.tests.unit.db import test_db_base_plugin_v2 > ImportError: cannot import name test_db_base_plugin_v2 > > Failed to import test module: neutron_lbaas.tests.unit.agent.test_agent_api > Traceback (most recent call last): > File > "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", > line 445, in _find_test_path > module = self._get_module_from_name(name) > File > "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", > line 384, in _get_module_from_name > __import__(name) > File "neutron_lbaas/tests/unit/agent/test_agent_api.py", line 21, in > <module> > from neutron_lbaas.tests import base > File "neutron_lbaas/tests/base.py", line 18, in <module> > from neutron.tests.unit.db import test_db_base_plugin_v2 > ImportError: cannot import name test_db_base_plugin_v2 > > Failed to import test module: > neutron_lbaas.tests.unit.agent.test_agent_manager > Traceback (most recent call last): > File > "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", > line 445, in _find_test_path > module = self._get_module_from_name(name) > File > "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", > line 384, in _get_module_from_name > __import__(name) > File "neutron_lbaas/tests/unit/agent/test_agent_manager.py", line 24, in > <module> > from neutron_lbaas.tests import base > File "neutron_lbaas/tests/base.py", line 18, in <module> > from neutron.tests.unit.db import test_db_base_plugin_v2 > ImportError: cannot import name test_db_base_plugin_v2 > > Failed to import test module: > neutron_lbaas.tests.unit.common.cert_manager.test_barbican > Traceback (most recent call last): > File > "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", > line 445, in _find_test_path > module = self._get_module_from_name(name) > File > "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", > line 384, in _get_module_from_name > __import__(name) > File "neutron_lbaas/tests/unit/common/cert_manager/test_barbican.py", > line 26, in <module> > from neutron_lbaas.tests import base > File "neutron_lbaas/tests/base.py", line 18, in <module> > from neutron.tests.unit.db import test_db_base_plugin_v2 > ImportError: cannot import name test_db_base_plugin_v2 > > Failed to import test module: > neutron_lbaas.tests.unit.common.cert_manager.test_local > Traceback (most recent call last): > File > "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", > line 445, in _find_test_path > module = self._get_module_from_name(name) > File > "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", > line 384, in _get_module_from_name > __import__(name) > File "neutron_lbaas/tests/unit/common/cert_manager/test_local.py", line > 22, in <module> > from neutron_lbaas.tests import base > File "neutron_lbaas/tests/base.py", line 18, in <module> > from neutron.tests.unit.db import test_db_base_plugin_v2 > ImportError: cannot import name test_db_base_plugin_v2 > > Failed to import test module: > neutron_lbaas.tests.unit.common.tls_utils.test_cert_parser > Traceback (most recent call last): > File > "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", > line 445, in _find_test_path > module = self._get_module_from_name(name) > File > "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", > line 384, in _get_module_from_name > __import__(name) > File "neutron_lbaas/tests/unit/common/tls_utils/test_cert_parser.py", > line 18, in <module> > from neutron_lbaas.tests import base > File "neutron_lbaas/tests/base.py", line 18, in <module> > from neutron.tests.unit.db import test_db_base_plugin_v2 > ImportError: cannot import name test_db_base_plugin_v2 > > Failed to import test module: > neutron_lbaas.tests.unit.db.loadbalancer.test_db_loadbalancer > Traceback (most recent call last): > File > "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", > line 445, in _find_test_path > module = self._get_module_from_name(name) > File > "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", > line 384, in _get_module_from_name > __import__(name) > File "neutron_lbaas/tests/unit/db/loadbalancer/test_db_loadbalancer.py", > line 27, in <module> > from neutron.tests.unit.db import test_db_base_plugin_v2 > ImportError: cannot import name test_db_base_plugin_v2 > > Failed to import test module: > neutron_lbaas.tests.unit.db.loadbalancer.test_db_loadbalancerv2 > Traceback (most recent call last): > File > "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", > line 445, in _find_test_path > module = self._get_module_from_name(name) > File > "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", > line 384, in _get_module_from_name > __import__(name) > File > "neutron_lbaas/tests/unit/db/loadbalancer/test_db_loadbalancerv2.py", line > 29, in <module> > from neutron.tests.unit.db import test_db_base_plugin_v2 > ImportError: cannot import name test_db_base_plugin_v2 > > Failed to import test module: > neutron_lbaas.tests.unit.drivers.a10networks.test_driver_v2 > Traceback (most recent call last): > File > "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", > line 445, in _find_test_path > module = self._get_module_from_name(name) > File > "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", > line 384, in _get_module_from_name > __import__(name) > File "neutron_lbaas/tests/unit/drivers/a10networks/test_driver_v2.py", > line 20, in <module> > from neutron_lbaas.tests.unit.db.loadbalancer import > test_db_loadbalancerv2 > File > "neutron_lbaas/tests/unit/db/loadbalancer/test_db_loadbalancerv2.py", line > 29, in <module> > from neutron.tests.unit.db import test_db_base_plugin_v2 > ImportError: cannot import name test_db_base_plugin_v2 > > Failed to import test module: > neutron_lbaas.tests.unit.drivers.brocade.test_driver_v2 > Traceback (most recent call last): > File > "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", > line 445, in _find_test_path > module = self._get_module_from_name(name) > File > "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", > line 384, in _get_module_from_name > __import__(name) > File "neutron_lbaas/tests/unit/drivers/brocade/test_driver_v2.py", line > 28, in <module> > from neutron_lbaas.tests.unit.db.loadbalancer import > test_db_loadbalancer > File "neutron_lbaas/tests/unit/db/loadbalancer/test_db_loadbalancer.py", > line 27, in <module> > from neutron.tests.unit.db import test_db_base_plugin_v2 > ImportError: cannot import name test_db_base_plugin_v2 > > Failed to import test module: > neutron_lbaas.tests.unit.drivers.common.test_agent_callbacks > Traceback (most recent call last): > File > "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", > line 445, in _find_test_path > module = self._get_module_from_name(name) > File > "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", > line 384, in _get_module_from_name > __import__(name) > File "neutron_lbaas/tests/unit/drivers/common/test_agent_callbacks.py", > line 31, in <module> > from neutron_lbaas.tests.unit.drivers.common import > test_agent_driver_base > File > "neutron_lbaas/tests/unit/drivers/common/test_agent_driver_base.py", line > 26, in <module> > from neutron_lbaas.tests import base > File "neutron_lbaas/tests/base.py", line 18, in <module> > from neutron.tests.unit.db import test_db_base_plugin_v2 > ImportError: cannot import name test_db_base_plugin_v2 > > > __________________________________________________________________________ > OpenStack Development Mailing List (not for usage questions) > Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev > >
__________________________________________________________________________ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev