'Unable to retrieve OVS kernel module version' when _not_ using DKMS openvswitch module
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Critical
|
Kyle Mestery | ||
neutron (Ubuntu) |
Fix Released
|
High
|
James Page | ||
Trusty |
Fix Released
|
High
|
James Page |
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/
def get_installed_
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(
except Exception:
So if we run modinfo on a system without a DKMS package we get:
$ modinfo openvswitch
filename: /lib/modules/
license: GPL
description: Open vSwitch switching datapath
srcversion: 1CEE031973F0E40
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:
sig_hashalgo: sha512
Because 'version' isn't provided we need an alternative way of checking if the openvswitch module has the required features.
Related branches
Changed in neutron (Ubuntu Trusty): | |
importance: | Undecided → High |
status: | New → Triaged |
Changed in neutron: | |
importance: | Undecided → Critical |
milestone: | none → icehouse-rc1 |
tags: | added: ovs |
Changed in neutron: | |
status: | Fix Committed → Fix Released |
Changed in neutron (Ubuntu Trusty): | |
status: | Triaged → In Progress |
assignee: | nobody → James Page (james-page) |
Changed in neutron: | |
milestone: | icehouse-rc1 → 2014.1 |
I see that this commit a98884efd966fdd 69ba88585b7a154 ba87d1d061 introduces VXLAN support which adds these version checking constraints. As a person new to this code, should these version checks be done by the code, or using dependency checking in distribution packaging?