← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1264687] [NEW] pyudev missing from requirements.txt, used by Linux Bridge Neutron agent

 

Public bug reported:

Attempting to run the unit tests on a brand new clone of neutron (as of
commit 84aeb9a) results in an inability to run the unit tests because of
a failed import of pyudev:

http://paste.openstack.org/show/57627/

Reference this post as to the odd format of the subunit -> testr
processing:

http://lists.openstack.org/pipermail/openstack-
dev/2013-December/023122.html

The import error becomes obvious when attempting to load the particular
unit test in question:

jpipes@uberbox:~/repos/openstack/neutron$ source .venv/bin/activate
(.venv)jpipes@uberbox:~/repos/openstack/neutron$ python
Python 2.7.4 (default, Sep 26 2013, 03:20:26) 
[GCC 4.7.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import neutron.tests.unit.linuxbridge.test_lb_neutron_agent
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "neutron/tests/unit/linuxbridge/test_lb_neutron_agent.py", line 29, in <module>
    from neutron.plugins.linuxbridge.agent import linuxbridge_neutron_agent
  File "neutron/plugins/linuxbridge/agent/linuxbridge_neutron_agent.py", line 33, in <module>
    import pyudev
ImportError: No module named pyudev

The solution is to add pyudev to requirements.txt.

** Affects: neutron
     Importance: Undecided
     Assignee: Jay Pipes (jaypipes)
         Status: In Progress

** Summary changed:

- pyudev missing from requirements.txt, used in a unit test case
+ pyudev missing from requirements.txt, used by Linux Bridge Neutron agent

** Changed in: neutron
     Assignee: (unassigned) => Jay Pipes (jaypipes)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1264687

Title:
  pyudev missing from requirements.txt, used by Linux Bridge Neutron
  agent

Status in OpenStack Neutron (virtual network service):
  In Progress

Bug description:
  Attempting to run the unit tests on a brand new clone of neutron (as
  of commit 84aeb9a) results in an inability to run the unit tests
  because of a failed import of pyudev:

  http://paste.openstack.org/show/57627/

  Reference this post as to the odd format of the subunit -> testr
  processing:

  http://lists.openstack.org/pipermail/openstack-
  dev/2013-December/023122.html

  The import error becomes obvious when attempting to load the
  particular unit test in question:

  jpipes@uberbox:~/repos/openstack/neutron$ source .venv/bin/activate
  (.venv)jpipes@uberbox:~/repos/openstack/neutron$ python
  Python 2.7.4 (default, Sep 26 2013, 03:20:26) 
  [GCC 4.7.3] on linux2
  Type "help", "copyright", "credits" or "license" for more information.
  >>> import neutron.tests.unit.linuxbridge.test_lb_neutron_agent
  Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    File "neutron/tests/unit/linuxbridge/test_lb_neutron_agent.py", line 29, in <module>
      from neutron.plugins.linuxbridge.agent import linuxbridge_neutron_agent
    File "neutron/plugins/linuxbridge/agent/linuxbridge_neutron_agent.py", line 33, in <module>
      import pyudev
  ImportError: No module named pyudev

  The solution is to add pyudev to requirements.txt.

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1264687/+subscriptions


Follow ups

References