[Openstack] Issue in running unit test with Neutron

Romil Gupta romilgupta19 at gmail.com
Mon Apr 28 09:39:29 UTC 2014


Hi Guys,

I am facing issue in running unit test with nose in neutron.

*root at romil-workspace:~/neutron-openstack/neutron/tests/unit/ml2# nosetests
test_ml2_plugin.py*
*E*
*======================================================================*
*ERROR: Failure: ImportError (cannot import name server_external_events)*
*----------------------------------------------------------------------*
*Traceback (most recent call last):*
*  File "/usr/local/lib/python2.7/dist-packages/nose/loader.py", line 413,
in loadTestsFromName*
*    addr.filename, addr.module)*
*  File "/usr/local/lib/python2.7/dist-packages/nose/importer.py", line 47,
in importFromPath*
*    return self.importFromDir(dir_path, fqname)*
*  File "/usr/local/lib/python2.7/dist-packages/nose/importer.py", line 94,
in importFromDir*
*    mod = load_module(part_fqname, fh, filename, desc)*
*  File
"/root/neutron-openstack/neutron/tests/unit/ml2/test_ml2_plugin.py", line
29, in <module>*
*    from neutron.plugins.ml2 import plugin as ml2_plugin*
*  File "/root/neutron-openstack/neutron/plugins/ml2/plugin.py", line 27,
in <module>*
*    from neutron.db import agentschedulers_db*
*  File "/root/neutron-openstack/neutron/db/agentschedulers_db.py", line
23, in <module>*
*    from neutron.db import agents_db*
*  File "/root/neutron-openstack/neutron/db/agents_db.py", line 24, in
<module>*
*    from neutron.extensions import agent as ext_agent*
*  File "/root/neutron-openstack/neutron/extensions/agent.py", line 20, in
<module>*
*    from neutron.api.v2 import base*
*  File "/root/neutron-openstack/neutron/api/v2/base.py", line 30, in
<module>*
*    from neutron.notifiers import nova*
*  File "/root/neutron-openstack/neutron/notifiers/nova.py", line 19, in
<module>*
*    from novaclient.v1_1.contrib import server_external_events*
*ImportError: cannot import name server_external_events*

*----------------------------------------------------------------------*
*Ran 1 test in 0.001s*

*FAILED (errors=1)*


Please help me to fix this issue.

Thanks in Advance for the help !

-- 
*Regards,*

*Romil *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140428/f38a0539/attachment.html>


More information about the Openstack mailing list