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

Narasimhan, Vivekanandan vivekanandan.narasimhan at hp.com
Wed Apr 30 21:21:13 UTC 2014


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:



Do we need to clone python-novaclient repo as well and point PYTHONPATH to it and

try re-running the same?



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



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140430/35230065/attachment.html>


More information about the OpenStack-dev mailing list