← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1339197] Re: Linuxbridge agent test for VXLAN module requires /lib/modules

 

** Changed in: neutron
       Status: Fix Committed => Fix Released

** Changed in: neutron
    Milestone: None => kilo-2

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

Title:
  Linuxbridge agent test for VXLAN module requires /lib/modules

Status in OpenStack Neutron (virtual network service):
  Fix Released

Bug description:
  The Linuxbridge agent VXLAN test[1] uses modinfo which requires
  /lib/modules to be available. This leads  to a false negative result
  on LXC containers where /lib/modules is not mounted.

  Expected behaviour: VXLAN module detected if loaded.
  Current behvarious: VXLAN module only detected if loaded and /lib/modules is available.

  Example:

  root@neutron-agents:/# modinfo vxlan
  libkmod: ERROR ../libkmod/libkmod.c:556 kmod_search_moddep: could not open moddep file '/lib/modules/3.13.0-30-generic/modules.dep.bin'
  modinfo: ERROR: Module alias vxlan not found.

  However the module is available:

  root@neutron-agents:/# lsmod |grep ^vxlan
  vxlan                  37619  0

  Trace that lead to this:

  2014-07-08 16:29:14.946 16452 CRITICAL neutron [-] VXLAN Network unsupported.
  2014-07-08 16:29:14.946 16452 TRACE neutron Traceback (most recent call last):
  2014-07-08 16:29:14.946 16452 TRACE neutron   File "/usr/local/bin/neutron-linuxbridge-agent", line 10, in <module>
  2014-07-08 16:29:14.946 16452 TRACE neutron     sys.exit(main())
  2014-07-08 16:29:14.946 16452 TRACE neutron   File "/usr/local/lib/python2.7/dist-packages/neutron/plugins/linuxbridge/agent/linuxbridge_neutron_agent.py", line 1031, in main
  2014-07-08 16:29:14.946 16452 TRACE neutron     root_helper)
  2014-07-08 16:29:14.946 16452 TRACE neutron   File "/usr/local/lib/python2.7/dist-packages/neutron/plugins/linuxbridge/agent/linuxbridge_neutron_agent.py", line 816, in __init__
  2014-07-08 16:29:14.946 16452 TRACE neutron     self.setup_linux_bridge(interface_mappings)
  2014-07-08 16:29:14.946 16452 TRACE neutron   File "/usr/local/lib/python2.7/dist-packages/neutron/plugins/linuxbridge/agent/linuxbridge_neutron_agent.py", line 883, in setup_linux_bridge
  2014-07-08 16:29:14.946 16452 TRACE neutron     self.br_mgr = LinuxBridgeManager(interface_mappings, self.root_helper)
  2014-07-08 16:29:14.946 16452 TRACE neutron   File "/usr/local/lib/python2.7/dist-packages/neutron/plugins/linuxbridge/agent/linuxbridge_neutron_agent.py", line 82, in __init__
  2014-07-08 16:29:14.946 16452 TRACE neutron     self.check_vxlan_support()
  2014-07-08 16:29:14.946 16452 TRACE neutron   File "/usr/local/lib/python2.7/dist-packages/neutron/plugins/linuxbridge/agent/linuxbridge_neutron_agent.py", line 576, in check_vxlan_support
  2014-07-08 16:29:14.946 16452 TRACE neutron     raise exceptions.VxlanNetworkUnsupported()
  2014-07-08 16:29:14.946 16452 TRACE neutron VxlanNetworkUnsupported: VXLAN Network unsupported.
  2014-07-08 16:29:14.946 16452 TRACE neutron

  [1]
  https://github.com/openstack/neutron/blob/master/neutron/plugins/linuxbridge/agent/linuxbridge_neutron_agent.py#L564-L569

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


References