From: Benedikt Trefzer Date: Mon, 26 May 2014 20:45:25 +0000 (+0200) Subject: fix openvswitch requirement check X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=be340d1bab015c47650687f97393c6c9015fb537;p=openstack-build%2Fneutron-build.git fix openvswitch requirement check With VXLAN enabled on openvswitch, neutron checks module version of the openvswitch kernel module. If the pattern to extract the version matches twice (eg. for path and version) the agent dies. This patch ensures, that only the version is checked against the pattern. Change-Id: I879624f6b0936cab59e02958ae3a89950df773bb Closes-Bug: #1322139 --- diff --git a/neutron/agent/linux/ovs_lib.py b/neutron/agent/linux/ovs_lib.py index 97e9af2cb..8bb14c720 100644 --- a/neutron/agent/linux/ovs_lib.py +++ b/neutron/agent/linux/ovs_lib.py @@ -476,7 +476,7 @@ def get_installed_ovs_usr_version(root_helper): def get_installed_ovs_klm_version(): - args = ["modinfo", "openvswitch"] + args = ["modinfo", "-F vermagic", "openvswitch"] try: cmd = utils.execute(args) for line in cmd.split('\n'):