<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">We had some issues with tox lately,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">The fix was removing ~/.pip  and some other packages from this folder that were used as cache for pip<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">And reinstalling devstack.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:gray">Lenny Verkhovsky<o:p></o:p></span></b></p>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Shane McGough [mailto:smcgough@kemptechnologies.com]
<br>
<b>Sent:</b> Wednesday, April 22, 2015 1:30 PM<br>
<b>To:</b> OpenStack Development Mailing List (not for usage questions)<br>
<b>Subject:</b> [openstack-dev] [neutron-lbaas] [third-party] trying to set up 3rd party CI, neutron-lbaas tox fails to import some neutron<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div id="divtagdefaultwrapper">
<div>
<p style="background:white"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">Hi all<o:p></o:p></span></p>
<p style="background:white"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black"><o:p> </o:p></span></p>
<p style="background:white"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">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.<o:p></o:p></span></p>
<p style="background:white"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black"><o:p> </o:p></span></p>
<p style="background:white"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">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.<o:p></o:p></span></p>
<p style="background:white"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black"><o:p> </o:p></span></p>
<p style="background:white"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">Am I missing something fundamental here?<o:p></o:p></span></p>
<p style="background:white"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black"><o:p> </o:p></span></p>
<p style="background:white"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">I included some of the errors below just to give an idea of what fails.<o:p></o:p></span></p>
<p style="background:white"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black"><o:p> </o:p></span></p>
<p style="background:white"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">Any help would be appreciated<o:p></o:p></span></p>
<p style="background:white"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black"><o:p> </o:p></span></p>
<p style="background:white"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">I am using Ubuntu Server 14.04.2 LTS<o:p></o:p></span></p>
<p style="background:white"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black"><o:p> </o:p></span></p>
<p style="background:white"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">Thanks<o:p></o:p></span></p>
<p style="background:white"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">Shane<o:p></o:p></span></p>
<p style="background:white"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black"><o:p> </o:p></span></p>
<p style="background:white"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black"><o:p> </o:p></span></p>
<p style="margin-bottom:12.0pt;background:white"><span style="font-size:10.0pt;font-family:"Courier New";color:black">py27 runtests: PYTHONHASHSEED='0'<br>
py27 runtests: commands[0] | sh tools/pretty_tox.sh <br>
running testr<br>
Non-zero exit code (2) from test listing.<br>
error: testr failed (3)<br>
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
<br>
--- import errors ---<br>
Failed to import test module: neutron_lbaas.tests.unit.agent.test_agent<br>
Traceback (most recent call last):<br>
  File "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 445, in _find_test_path<br>
    module = self._get_module_from_name(name)<br>
  File "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name<br>
    __import__(name)<br>
  File "neutron_lbaas/tests/unit/agent/test_agent.py", line 21, in <module><br>
    from neutron_lbaas.tests import base<br>
  File "neutron_lbaas/tests/base.py", line 18, in <module><br>
    from neutron.tests.unit.db import test_db_base_plugin_v2<br>
ImportError: cannot import name test_db_base_plugin_v2<br>
<br>
Failed to import test module: neutron_lbaas.tests.unit.agent.test_agent_api<br>
Traceback (most recent call last):<br>
  File "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 445, in _find_test_path<br>
    module = self._get_module_from_name(name)<br>
  File "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name<br>
    __import__(name)<br>
  File "neutron_lbaas/tests/unit/agent/test_agent_api.py", line 21, in <module><br>
    from neutron_lbaas.tests import base<br>
  File "neutron_lbaas/tests/base.py", line 18, in <module><br>
    from neutron.tests.unit.db import test_db_base_plugin_v2<br>
ImportError: cannot import name test_db_base_plugin_v2<br>
<br>
Failed to import test module: neutron_lbaas.tests.unit.agent.test_agent_manager<br>
Traceback (most recent call last):<br>
  File "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 445, in _find_test_path<br>
    module = self._get_module_from_name(name)<br>
  File "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name<br>
    __import__(name)<br>
  File "neutron_lbaas/tests/unit/agent/test_agent_manager.py", line 24, in <module><br>
    from neutron_lbaas.tests import base<br>
  File "neutron_lbaas/tests/base.py", line 18, in <module><br>
    from neutron.tests.unit.db import test_db_base_plugin_v2<br>
ImportError: cannot import name test_db_base_plugin_v2<br>
<br>
Failed to import test module: neutron_lbaas.tests.unit.common.cert_manager.test_barbican<br>
Traceback (most recent call last):<br>
  File "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 445, in _find_test_path<br>
    module = self._get_module_from_name(name)<br>
  File "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name<br>
    __import__(name)<br>
  File "neutron_lbaas/tests/unit/common/cert_manager/test_barbican.py", line 26, in <module><br>
    from neutron_lbaas.tests import base<br>
  File "neutron_lbaas/tests/base.py", line 18, in <module><br>
    from neutron.tests.unit.db import test_db_base_plugin_v2<br>
ImportError: cannot import name test_db_base_plugin_v2<br>
<br>
Failed to import test module: neutron_lbaas.tests.unit.common.cert_manager.test_local<br>
Traceback (most recent call last):<br>
  File "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 445, in _find_test_path<br>
    module = self._get_module_from_name(name)<br>
  File "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name<br>
    __import__(name)<br>
  File "neutron_lbaas/tests/unit/common/cert_manager/test_local.py", line 22, in <module><br>
    from neutron_lbaas.tests import base<br>
  File "neutron_lbaas/tests/base.py", line 18, in <module><br>
    from neutron.tests.unit.db import test_db_base_plugin_v2<br>
ImportError: cannot import name test_db_base_plugin_v2<br>
<br>
Failed to import test module: neutron_lbaas.tests.unit.common.tls_utils.test_cert_parser<br>
Traceback (most recent call last):<br>
  File "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 445, in _find_test_path<br>
    module = self._get_module_from_name(name)<br>
  File "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name<br>
    __import__(name)<br>
  File "neutron_lbaas/tests/unit/common/tls_utils/test_cert_parser.py", line 18, in <module><br>
    from neutron_lbaas.tests import base<br>
  File "neutron_lbaas/tests/base.py", line 18, in <module><br>
    from neutron.tests.unit.db import test_db_base_plugin_v2<br>
ImportError: cannot import name test_db_base_plugin_v2<br>
<br>
Failed to import test module: neutron_lbaas.tests.unit.db.loadbalancer.test_db_loadbalancer<br>
Traceback (most recent call last):<br>
  File "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 445, in _find_test_path<br>
    module = self._get_module_from_name(name)<br>
  File "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name<br>
    __import__(name)<br>
  File "neutron_lbaas/tests/unit/db/loadbalancer/test_db_loadbalancer.py", line 27, in <module><br>
    from neutron.tests.unit.db import test_db_base_plugin_v2<br>
ImportError: cannot import name test_db_base_plugin_v2<br>
<br>
Failed to import test module: neutron_lbaas.tests.unit.db.loadbalancer.test_db_loadbalancerv2<br>
Traceback (most recent call last):<br>
  File "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 445, in _find_test_path<br>
    module = self._get_module_from_name(name)<br>
  File "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name<br>
    __import__(name)<br>
  File "neutron_lbaas/tests/unit/db/loadbalancer/test_db_loadbalancerv2.py", line 29, in <module><br>
    from neutron.tests.unit.db import test_db_base_plugin_v2<br>
ImportError: cannot import name test_db_base_plugin_v2<br>
<br>
Failed to import test module: neutron_lbaas.tests.unit.drivers.a10networks.test_driver_v2<br>
Traceback (most recent call last):<br>
  File "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 445, in _find_test_path<br>
    module = self._get_module_from_name(name)<br>
  File "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name<br>
    __import__(name)<br>
  File "neutron_lbaas/tests/unit/drivers/a10networks/test_driver_v2.py", line 20, in <module><br>
    from neutron_lbaas.tests.unit.db.loadbalancer import test_db_loadbalancerv2<br>
  File "neutron_lbaas/tests/unit/db/loadbalancer/test_db_loadbalancerv2.py", line 29, in <module><br>
    from neutron.tests.unit.db import test_db_base_plugin_v2<br>
ImportError: cannot import name test_db_base_plugin_v2<br>
<br>
Failed to import test module: neutron_lbaas.tests.unit.drivers.brocade.test_driver_v2<br>
Traceback (most recent call last):<br>
  File "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 445, in _find_test_path<br>
    module = self._get_module_from_name(name)<br>
  File "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name<br>
    __import__(name)<br>
  File "neutron_lbaas/tests/unit/drivers/brocade/test_driver_v2.py", line 28, in <module><br>
    from neutron_lbaas.tests.unit.db.loadbalancer import test_db_loadbalancer<br>
  File "neutron_lbaas/tests/unit/db/loadbalancer/test_db_loadbalancer.py", line 27, in <module><br>
    from neutron.tests.unit.db import test_db_base_plugin_v2<br>
ImportError: cannot import name test_db_base_plugin_v2<br>
<br>
Failed to import test module: neutron_lbaas.tests.unit.drivers.common.test_agent_callbacks<br>
Traceback (most recent call last):<br>
  File "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 445, in _find_test_path<br>
    module = self._get_module_from_name(name)<br>
  File "/home/shane/work/neutron-lbaas/.tox/py27/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name<br>
    __import__(name)<br>
  File "neutron_lbaas/tests/unit/drivers/common/test_agent_callbacks.py", line 31, in <module><br>
    from neutron_lbaas.tests.unit.drivers.common import test_agent_driver_base<br>
  File "neutron_lbaas/tests/unit/drivers/common/test_agent_driver_base.py", line 26, in <module><br>
    from neutron_lbaas.tests import base<br>
  File "neutron_lbaas/tests/base.py", line 18, in <module><br>
    from neutron.tests.unit.db import test_db_base_plugin_v2<br>
ImportError: cannot import name test_db_base_plugin_v2<br>
<br>
</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black"><o:p></o:p></span></p>
</div>
</div>
</div>
</body>
</html>