[openstack-dev] Unit test test_ovs_neutron_agent fails with dependency errors

Ihar Hrachyshka ihrachys at redhat.com
Fri May 9 14:41:55 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512



On 30/04/14 23:21, Narasimhan, Vivekanandan wrote:
> Hi,
> 
> 
> 
> I 've been trying to run test_ovs_neutron_agent.py unit test from
> openstack neutron master 'tip', and
> 
> am hitting  dependency errors for novaclient as here:

Yes, neutron requires python-novaclient to be present in PYTHONPATH.

> 
> 
> 
> Do we need to clone python-novaclient repo as well and point
> PYTHONPATH to it and
> 
> try re-running the same?
> 

Whatever you like most. If you would use 'tox' or run_tests.sh with
virtualenv to run unit tests, the module will be installed for you
automagically.

> 
> 
> Please help.
> 
> 
> 
> ======================================================================
>
>  ERROR:
> neutron.tests.unit.openvswitch.test_ovs_neutron_agent.TestOvsNeutronAgent.test_tunnel_update
>
>  
> ----------------------------------------------------------------------
>
>  Empty attachments:
> 
> pythonlogging:''
> 
> pythonlogging:'neutron.api.extensions'
> 
> 
> 
> Traceback (most recent call last):
> 
> File "neutron/tests/unit/openvswitch/test_ovs_neutron_agent.py",
> line 89, in setUp
> 
> notifier_cls = notifier_p.start()
> 
> File
> "/usr/local/lib/python2.7/dist-packages/mock-1.0.1-py2.7.egg/mock.py",
> line 1396, in start
> 
> result = self.__enter__()
> 
> File
> "/usr/local/lib/python2.7/dist-packages/mock-1.0.1-py2.7.egg/mock.py",
> line 1252, in __enter__
> 
> self.target = self.getter()
> 
> File
> "/usr/local/lib/python2.7/dist-packages/mock-1.0.1-py2.7.egg/mock.py",
> line 1414, in <lambda>
> 
> getter = lambda: _importer(target)
> 
> File
> "/usr/local/lib/python2.7/dist-packages/mock-1.0.1-py2.7.egg/mock.py",
> line 1102, in _importer
> 
> thing = _dot_lookup(thing, comp, import_path)
> 
> File
> "/usr/local/lib/python2.7/dist-packages/mock-1.0.1-py2.7.egg/mock.py",
> line 1091, in _dot_lookup
> 
> __import__(import_path)
> 
> File "neutron/plugins/openvswitch/ovs_neutron_plugin.py", line 29,
> in <module>
> 
> from neutron.db import agents_db
> 
> File "neutron/db/agents_db.py", line 24, in <module>
> 
> from neutron.extensions import agent as ext_agent
> 
> File "neutron/extensions/agent.py", line 20, in <module>
> 
> from neutron.api.v2 import base
> 
> File "neutron/api/v2/base.py", line 30, in <module>
> 
> from neutron.notifiers import nova
> 
> File "neutron/notifiers/nova.py", line 19, in <module>
> 
> from novaclient.v1_1.contrib import server_external_events
> 
> ImportError: cannot import name server_external_events
> 
> ======================================================================
>
>  ERROR:
> neutron.tests.unit.openvswitch.test_ovs_neutron_agent.TestOvsNeutronAgent.test_update_ports_returns_changed_vlan
>
>  
> ----------------------------------------------------------------------
>
>  Empty attachments:
> 
> pythonlogging:''
> 
> pythonlogging:'neutron.api.extensions'
> 
> 
> 
> Traceback (most recent call last):
> 
> File "neutron/tests/unit/openvswitch/test_ovs_neutron_agent.py",
> line 89, in setUp
> 
> notifier_cls = notifier_p.start()
> 
> File
> "/usr/local/lib/python2.7/dist-packages/mock-1.0.1-py2.7.egg/mock.py",
> line 1396, in start
> 
> result = self.__enter__()
> 
> File
> "/usr/local/lib/python2.7/dist-packages/mock-1.0.1-py2.7.egg/mock.py",
> line 1252, in __enter__
> 
> self.target = self.getter()
> 
> File
> "/usr/local/lib/python2.7/dist-packages/mock-1.0.1-py2.7.egg/mock.py",
> line 1414, in <lambda>
> 
> getter = lambda: _importer(target)
> 
> File
> "/usr/local/lib/python2.7/dist-packages/mock-1.0.1-py2.7.egg/mock.py",
> line 1102, in _importer
> 
> thing = _dot_lookup(thing, comp, import_path)
> 
> File
> "/usr/local/lib/python2.7/dist-packages/mock-1.0.1-py2.7.egg/mock.py",
> line 1091, in _dot_lookup
> 
> __import__(import_path)
> 
> File "neutron/plugins/openvswitch/ovs_neutron_plugin.py", line 29,
> in <module>
> 
> from neutron.db import agents_db
> 
> File "neutron/db/agents_db.py", line 24, in <module>
> 
> from neutron.extensions import agent as ext_agent
> 
> File "neutron/extensions/agent.py", line 20, in <module>
> 
> from neutron.api.v2 import base
> 
> File "neutron/api/v2/base.py", line 30, in <module>
> 
> from neutron.notifiers import nova
> 
> File "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 52 tests in 0.239s
> 
> FAILED (failures=46)
> 
> 
> 
> --
> 
> Thanks,
> 
> 
> 
> Vivek
> 
> 
> 
> 
> 
> 
> _______________________________________________ OpenStack-dev
> mailing list OpenStack-dev at lists.openstack.org 
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBCgAGBQJTbOkyAAoJEC5aWaUY1u57Ug0H/i4QVgdGeqLjyzdF0HWvZGno
pwj/BoyxuQVLKKPY3N4dC2HRwXrGunZyEfRsE1ZFQSLTQa8R4O8oJCLDnGVOg4+q
TYOr7s9BCdSenrfIrF/EmWbyhgH0AqfDJ1IkT+x24j0DfNoHIlCxEDkhY3SS3Stg
/uiu9iLRUuMMBK09ezw+TkBnWvw0OLSe54WblqUpWnQ/eUu23SOmD3b2MgUcVH9w
2pIlDZzxMKNIKJHitzSbXpdG3xhYhrB1GsMo+FEsxOfdVDdwYXeP2y52Sc/eFeQ7
ucC2dL3zke4rvYzXxmbXdKP7VCOajfq7fLMt8e01sewOEV+I3Iij78gfsNXFKUk=
=mAiX
-----END PGP SIGNATURE-----



More information about the OpenStack-dev mailing list