Re: [openstack-dev] [neutron-lbaas] [third-party] trying to set up 3rd party CI, neutron-lbaas tox fails to import some neutron

2015-04-23 Thread Shane McGough
Thanks guys that was it! Did a git pull on the egg that tox cloned and it works 
now.


Pretty strange that it clones an out of date neutron though. This was all a 
fresh environment.


Cheers


Shane McGough
Junior Software Developer
KEMP Technologies
National Technology Park, Limerick, Ireland.

kemptechnologies.comhttps://kemptechnologies.com/ | 
@KEMPtechhttps://twitter.com/KEMPtech | 
LinkedInhttps://www.linkedin.com/company/kemp-technologies



From: Salvatore Orlando sorla...@nicira.com
Sent: Wednesday, April 22, 2015 6:53 PM
To: OpenStack Development Mailing List (not for usage questions)
Subject: Re: [openstack-dev] [neutron-lbaas] [third-party] trying to set up 3rd 
party CI, neutron-lbaas tox fails to import some neutron

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.commailto: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.commailto: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

Re: [openstack-dev] [neutron-lbaas] [third-party] trying to set up 3rd party CI, neutron-lbaas tox fails to import some neutron

2015-04-22 Thread Salvatore Orlando
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

Re: [openstack-dev] [neutron-lbaas] [third-party] trying to set up 3rd party CI, neutron-lbaas tox fails to import some neutron

2015-04-22 Thread Lenny Verkhovsky
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

[openstack-dev] [neutron-lbaas] [third-party] trying to set up 3rd party CI, neutron-lbaas tox fails to import some neutron

2015-04-22 Thread Shane McGough
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