linuxbridge+Xen: tap devices not detected by neutron-linuxbridge-agent

Bug #1419754 reported by Thomas Bechtold
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Undecided
Thomas Bechtold
Juno
Fix Released
Undecided
Thomas Bechtold

Bug Description

When using Xen as hypervisor and the linuxbridge ml2 plugin, the neutron-linuxbridge-agent does not detect added/removed/changed tap devices.
The reason seems that the agent only searches in /sys/devices/virtual/net for tap devices. In the Xen case, the tap devices don't popup in this directory. The devices are available in /sys/class/net . Also according to the kernel ABI doc (see https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-devices ), /sys/devices should not be used. Instead /sys/class should be used.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.openstack.org/154021

Changed in neutron:
assignee: nobody → Thomas Bechtold (toabctl)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/154021
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=e228a3dc69eca08896c4e22d6a2d51b60a9a0a94
Submitter: Jenkins
Branch: master

commit e228a3dc69eca08896c4e22d6a2d51b60a9a0a94
Author: Thomas Bechtold <email address hidden>
Date: Mon Feb 9 13:25:56 2015 +0100

    Search in /sys/class/net for network devices

    When using /sys/devices/net/virtual to search for tap devices, not all
    devices are listed there (i.e. when using Xen).
    Also according to the Linux kernel documentation (see
    ABI/testing/sysfs-devices), /sys/class should be used
    instead of /sys/devices.

    Change-Id: I9b4981332b66b6d3f9c36511c81432d3e7644bdd
    Closes-Bug: #1419754

Changed in neutron:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (stable/juno)

Fix proposed to branch: stable/juno
Review: https://review.openstack.org/156945

tags: added: juno-backport-potential
Thierry Carrez (ttx)
Changed in neutron:
milestone: none → kilo-3
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/juno)

Reviewed: https://review.openstack.org/156945
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=1fa38ebae0bf98567558c166c9f167f7647a1848
Submitter: Jenkins
Branch: stable/juno

commit 1fa38ebae0bf98567558c166c9f167f7647a1848
Author: Thomas Bechtold <email address hidden>
Date: Mon Feb 9 13:25:56 2015 +0100

    Search in /sys/class/net for network devices

    When using /sys/devices/net/virtual to search for tap devices, not all
    devices are listed there (i.e. when using Xen).
    Also according to the Linux kernel documentation (see
    ABI/testing/sysfs-devices), /sys/class should be used
    instead of /sys/devices.

    Change-Id: I9b4981332b66b6d3f9c36511c81432d3e7644bdd
    Closes-Bug: #1419754
    (cherry picked from commit e228a3dc69eca08896c4e22d6a2d51b60a9a0a94)

tags: added: in-stable-juno
Thierry Carrez (ttx)
Changed in neutron:
milestone: kilo-3 → 2015.1.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.