<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:10pt;color:#000000;background-color:#FFFFFF;font-family:Arial,Helvetica,sans-serif;">
<div dir="ltr" class="" style="outline:medium none; font-size:10pt; color:rgb(0,0,0); background-color:rgb(255,255,255); font-family:Arial,Helvetica,sans-serif,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<p>Hi all</p>
<p><br>
</p>
<p>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.</p>
<p><br>
</p>
<p>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.<br>
</p>
<p><br>
</p>
<p>Am I missing something fundamental here?</p>
<p><br>
</p>
<p>I included some of the errors below just to give an idea of what fails.</p>
<p><br>
</p>
<p>Any help would be appreciated</p>
<p><br>
</p>
<p>I am using Ubuntu Server 14.04.2 LTS<br>
</p>
<p><br>
</p>
<p>Thanks</p>
<p>Shane<br>
<span style="font-family: "Courier New",monospace;"></span></p>
<p><br>
<span style="font-family: "Courier New",monospace;"></span></p>
<p><br>
<span style="font-family: "Courier New",monospace;"></span></p>
<p><span style="font-family: "Courier New",monospace;">py27 runtests: PYTHONHASHSEED='0'</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;">py27 runtests: commands[0] | sh tools/pretty_tox.sh
</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;">running testr</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;">Non-zero exit code (2) from test listing.</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;">error: testr failed (3)</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;">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 </span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;">--- import errors ---</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;">Failed to import test module: neutron_lbaas.tests.unit.agent.test_agent</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;">Traceback (most recent call last):</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> File "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 445, in _find_test_path</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> module = self._get_module_from_name(name)</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> File "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> __import__(name)</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> File "neutron_lbaas/tests/unit/agent/test_agent.py", line 21, in <module></span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> from neutron_lbaas.tests import base</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> File "neutron_lbaas/tests/base.py", line 18, in <module></span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> from neutron.tests.unit.db import test_db_base_plugin_v2</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;">ImportError: cannot import name test_db_base_plugin_v2</span><br style="font-family: "Courier New",monospace;">
<br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;">Failed to import test module: neutron_lbaas.tests.unit.agent.test_agent_api</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;">Traceback (most recent call last):</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> File "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 445, in _find_test_path</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> module = self._get_module_from_name(name)</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> File "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> __import__(name)</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> File "neutron_lbaas/tests/unit/agent/test_agent_api.py", line 21, in <module></span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> from neutron_lbaas.tests import base</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> File "neutron_lbaas/tests/base.py", line 18, in <module></span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> from neutron.tests.unit.db import test_db_base_plugin_v2</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;">ImportError: cannot import name test_db_base_plugin_v2</span><br style="font-family: "Courier New",monospace;">
<br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;">Failed to import test module: neutron_lbaas.tests.unit.agent.test_agent_manager</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;">Traceback (most recent call last):</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> File "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 445, in _find_test_path</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> module = self._get_module_from_name(name)</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> File "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> __import__(name)</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> File "neutron_lbaas/tests/unit/agent/test_agent_manager.py", line 24, in <module></span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> from neutron_lbaas.tests import base</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> File "neutron_lbaas/tests/base.py", line 18, in <module></span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> from neutron.tests.unit.db import test_db_base_plugin_v2</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;">ImportError: cannot import name test_db_base_plugin_v2</span><br style="font-family: "Courier New",monospace;">
<br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;">Failed to import test module: neutron_lbaas.tests.unit.common.cert_manager.test_barbican</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;">Traceback (most recent call last):</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> File "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 445, in _find_test_path</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> module = self._get_module_from_name(name)</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> File "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> __import__(name)</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> File "neutron_lbaas/tests/unit/common/cert_manager/test_barbican.py", line 26, in <module></span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> from neutron_lbaas.tests import base</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> File "neutron_lbaas/tests/base.py", line 18, in <module></span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> from neutron.tests.unit.db import test_db_base_plugin_v2</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;">ImportError: cannot import name test_db_base_plugin_v2</span><br style="font-family: "Courier New",monospace;">
<br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;">Failed to import test module: neutron_lbaas.tests.unit.common.cert_manager.test_local</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;">Traceback (most recent call last):</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> File "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 445, in _find_test_path</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> module = self._get_module_from_name(name)</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> File "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> __import__(name)</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> File "neutron_lbaas/tests/unit/common/cert_manager/test_local.py", line 22, in <module></span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> from neutron_lbaas.tests import base</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> File "neutron_lbaas/tests/base.py", line 18, in <module></span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> from neutron.tests.unit.db import test_db_base_plugin_v2</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;">ImportError: cannot import name test_db_base_plugin_v2</span><br style="font-family: "Courier New",monospace;">
<br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;">Failed to import test module: neutron_lbaas.tests.unit.common.tls_utils.test_cert_parser</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;">Traceback (most recent call last):</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> File "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 445, in _find_test_path</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> module = self._get_module_from_name(name)</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> File "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> __import__(name)</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> File "neutron_lbaas/tests/unit/common/tls_utils/test_cert_parser.py", line 18, in <module></span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> from neutron_lbaas.tests import base</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> File "neutron_lbaas/tests/base.py", line 18, in <module></span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> from neutron.tests.unit.db import test_db_base_plugin_v2</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;">ImportError: cannot import name test_db_base_plugin_v2</span><br style="font-family: "Courier New",monospace;">
<br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;">Failed to import test module: neutron_lbaas.tests.unit.db.loadbalancer.test_db_loadbalancer</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;">Traceback (most recent call last):</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> File "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 445, in _find_test_path</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> module = self._get_module_from_name(name)</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> File "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> __import__(name)</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> File "neutron_lbaas/tests/unit/db/loadbalancer/test_db_loadbalancer.py", line 27, in <module></span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> from neutron.tests.unit.db import test_db_base_plugin_v2</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;">ImportError: cannot import name test_db_base_plugin_v2</span><br style="font-family: "Courier New",monospace;">
<br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;">Failed to import test module: neutron_lbaas.tests.unit.db.loadbalancer.test_db_loadbalancerv2</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;">Traceback (most recent call last):</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> File "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 445, in _find_test_path</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> module = self._get_module_from_name(name)</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> File "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> __import__(name)</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> File "neutron_lbaas/tests/unit/db/loadbalancer/test_db_loadbalancerv2.py", line 29, in <module></span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> from neutron.tests.unit.db import test_db_base_plugin_v2</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;">ImportError: cannot import name test_db_base_plugin_v2</span><br style="font-family: "Courier New",monospace;">
<br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;">Failed to import test module: neutron_lbaas.tests.unit.drivers.a10networks.test_driver_v2</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;">Traceback (most recent call last):</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> File "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 445, in _find_test_path</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> module = self._get_module_from_name(name)</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> File "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> __import__(name)</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> File "neutron_lbaas/tests/unit/drivers/a10networks/test_driver_v2.py", line 20, in <module></span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> from neutron_lbaas.tests.unit.db.loadbalancer import test_db_loadbalancerv2</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> File "neutron_lbaas/tests/unit/db/loadbalancer/test_db_loadbalancerv2.py", line 29, in <module></span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> from neutron.tests.unit.db import test_db_base_plugin_v2</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;">ImportError: cannot import name test_db_base_plugin_v2</span><br style="font-family: "Courier New",monospace;">
<br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;">Failed to import test module: neutron_lbaas.tests.unit.drivers.brocade.test_driver_v2</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;">Traceback (most recent call last):</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> File "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 445, in _find_test_path</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> module = self._get_module_from_name(name)</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> File "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> __import__(name)</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> File "neutron_lbaas/tests/unit/drivers/brocade/test_driver_v2.py", line 28, in <module></span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> from neutron_lbaas.tests.unit.db.loadbalancer import test_db_loadbalancer</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> File "neutron_lbaas/tests/unit/db/loadbalancer/test_db_loadbalancer.py", line 27, in <module></span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> from neutron.tests.unit.db import test_db_base_plugin_v2</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;">ImportError: cannot import name test_db_base_plugin_v2</span><br style="font-family: "Courier New",monospace;">
<br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;">Failed to import test module: neutron_lbaas.tests.unit.drivers.common.test_agent_callbacks</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;">Traceback (most recent call last):</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> File "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 445, in _find_test_path</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> module = self._get_module_from_name(name)</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> File "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> __import__(name)</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> File "neutron_lbaas/tests/unit/drivers/common/test_agent_callbacks.py", line 31, in <module></span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> from neutron_lbaas.tests.unit.drivers.common import test_agent_driver_base</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> File "neutron_lbaas/tests/unit/drivers/common/test_agent_driver_base.py", line 26, in <module></span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> from neutron_lbaas.tests import base</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> File "neutron_lbaas/tests/base.py", line 18, in <module></span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"> from neutron.tests.unit.db import test_db_base_plugin_v2</span><br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;">ImportError: cannot import name test_db_base_plugin_v2</span><br style="font-family: "Courier New",monospace;">
<br style="font-family: "Courier New",monospace;">
<span style="font-family: "Courier New",monospace;"></span><br>
</p>
</div>
</div>
</body>
</html>