Bug 1077283 - [RHEVM] [neutron integration] cannot use linux bridge if ovs is not installed
Summary: [RHEVM] [neutron integration] cannot use linux bridge if ovs is not installed
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: vdsm
Version: 3.4.0
Hardware: x86_64
OS: Linux
high
high
Target Milestone: ---
: 3.4.0
Assignee: Moti Asayag
QA Contact: Martin Pavlik
URL:
Whiteboard: network
Depends On:
Blocks: rhev3.4snapshot2
TreeView+ depends on / blocked
 
Reported: 2014-03-17 16:05 UTC by Martin Pavlik
Modified: 2016-02-10 19:49 UTC (History)
14 users (show)

Fixed In Version: av5
Doc Type: Bug Fix
Doc Text:
Previously, a virtual machine with an imported network from external neutron provider (specifically Linux Bridge as the Networking Plugin) failed to run without 'ovs-vsctl' installed. Now, VDSM hook recognizes that Linux Bridge does not require 'ovs-vsctl' to run, and the virtual machine starts up.
Clone Of:
Environment:
Last Closed: 2014-06-09 13:29:38 UTC
oVirt Team: Network
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
log_collector (13.58 MB, application/x-xz)
2014-03-17 16:05 UTC, Martin Pavlik
no flags Details
screenshot 1 (172.13 KB, image/png)
2014-03-17 16:07 UTC, Martin Pavlik
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:0504 0 normal SHIPPED_LIVE vdsm 3.4.0 bug fix and enhancement update 2014-06-09 17:21:35 UTC
oVirt gerrit 25889 0 None None None Never

Description Martin Pavlik 2014-03-17 16:05:08 UTC
Created attachment 875561 [details]
log_collector

Description of problem:
I have external neutron provider with Networking Plugin = Linux Bridge
I've successfully imported network form neutron and attached it to VM.
When trying to run VM I get 
Failed to run VM VM1 on Host dell-05.
VM VM1 is down. Exit message: .

This happens because vdsm hook /usr/libexec/vdsm/hooks/before_device_create/50_openstacknet

is looking for ovs-vsctl

it should not look for ovs* when I am using linux bridge

Version-Release number of selected component (if applicable):
Red Hat Enterprise Virtualization Manager Version: 3.4.0-0.5.master.el6ev 

How reproducible:
100%

Steps to Reproduce:
1. Add external neutron provider with Networking Plugin = Linux Bridge
2. Import a network from Neutron
3. Create VM with the network attached
4. Start the VM

Actual results:
VM start fails because vdsm hook is looking for ovs-vsctl, while I am using linux bridge

Expected results:
VM starts

Additional info:

Thread-111::DEBUG::2014-03-17 16:43:24,401::utils::662::root::(execCmd) FAILED: <err> = 'Traceback (most recent call last):\n  File "/usr/libexec/vdsm/hooks/before_device_create/50_openstacknet", line 40, in <module>\n    from openstacknet_utils import DUMMY_BRIDGE\n  File "/usr/libexec/vdsm/hooks/before_device_create/openstacknet_utils.py", line 26, in <module>\n    \'/usr/bin/ovs-vsctl\').cmd\n  File "/usr/lib64/python2.6/site-packages/vdsm/utils.py", line 947, in cmd\n    os.strerror(os.errno.ENOENT) + \': \' + self.name)\nOSError: [Errno 2] No such file or directory: ovs-vsctl\n'; <rc> = 1

Comment 1 Martin Pavlik 2014-03-17 16:07:05 UTC
Created attachment 875562 [details]
screenshot 1

Comment 2 Dan Kenigsberg 2014-03-19 11:37:12 UTC
Martin, would you verify the suggested code?

Comment 3 Martin Pavlik 2014-03-19 14:23:50 UTC
code verified see comments in gerrit

Comment 6 Martin Pavlik 2014-03-26 16:31:56 UTC
works in av5

Comment 7 errata-xmlrpc 2014-06-09 13:29:38 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2014-0504.html


Note You need to log in before you can comment on or make changes to this bug.