← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1291535] Re: 'Unable to retrieve OVS kernel module version' when _not_ using DKMS openvswitch module

 

This bug was fixed in the package neutron - 1:2014.1~rc1-0ubuntu1

---------------
neutron (1:2014.1~rc1-0ubuntu1) trusty; urgency=medium

  [ Chuck Short ]
  * debian/rules: Run testr init before tests.
  * debian/patches/disable-udev-tests.patch: Refresh.
  * d/control,neutron-plugin-oneconvergence*: Add One Convergence plugin
    and agent (LP: #1293632).

  [ James Page ]
  * New upstream release candidate (LP: #1288696, #1291535).
  * d/control,neutron-mlnx-plugin{-agent}.install: Split out Mellanox
    plugin configuration from agent package (LP: #1255420).
  * d/control,neutron-{plugin-}{vpn|metering}-agent.*: Drop -plugin from
    metering and vpn agents (they are not plugins) and deal with associated
    change in name of upstart configurations.
  * d/neutron-l3-agent.{install,upstart}: Install fwaas_driver.ini with
    l3-agent and add to config-file path in upstart configuration
    (LP: #1298676).
  * d/neutron-vpn-agent.upstart,control: Include l3_agent.ini on upstart
    config-file path, add dependency on neutron-l3-agent (LP: #1298675).
 -- James Page <james.page@xxxxxxxxxx>   Tue, 01 Apr 2014 16:22:54 +0100

** Changed in: neutron (Ubuntu Trusty)
       Status: In Progress => Fix Released

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

Title:
  'Unable to retrieve OVS kernel module version' when _not_ using DKMS
  openvswitch module

Status in OpenStack Neutron (virtual network service):
  Fix Released
Status in “neutron” package in Ubuntu:
  Fix Released
Status in “neutron” source package in Trusty:
  Fix Released

Bug description:
  If we are using openvswitch in a system with a newer kernel
  (3.13/trusty) it should have the features required for neutron and not
  require an openvswitch dkms package. Therefore we should be able to
  use the native module.

  In neutron/agent/linux/ovs_lib.py:

  def get_installed_ovs_klm_version():
      args = ["modinfo", "openvswitch"]
      try:
          cmd = utils.execute(args)
          for line in cmd.split('\n'):
              if 'version: ' in line and not 'srcversion' in line:
                  ver = re.findall("\d+\.\d+", line)
                  return ver[0]
      except Exception:
          LOG.exception(_("Unable to retrieve OVS kernel module version."))

  So if we run modinfo on a system without a DKMS package we get:
  $ modinfo openvswitch
  filename:       /lib/modules/3.13.0-16-generic/kernel/net/openvswitch/openvswitch.ko
  license:        GPL
  description:    Open vSwitch switching datapath
  srcversion:     1CEE031973F0E4024ACC848
  depends:        libcrc32c,vxlan,gre
  intree:         Y
  vermagic:       3.13.0-16-generic SMP mod_unload modversions 
  signer:         Magrathea: Glacier signing key
  sig_key:        1A:EE:D8:17:C4:D5:29:55:C4:FA:C3:3A:02:37:FE:0A:93:44:6D:69
  sig_hashalgo:   sha512

  Because 'version' isn't provided we need an alternative way of
  checking if the openvswitch module has the required features.

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


References