Bug 895080 - failed to add ovirtmgmt bridge when the host is in dhcp mode
Summary: failed to add ovirtmgmt bridge when the host is in dhcp mode
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: ovirt-host-deploy
Classification: oVirt
Component: Plugins.VDSM
Version: master
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
: ---
Assignee: Alon Bar-Lev
QA Contact: Haim
URL:
Whiteboard: network
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-14 14:20 UTC by exploit
Modified: 2016-02-10 19:53 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-01-16 21:57:47 UTC
oVirt Team: Network
Embargoed:


Attachments (Terms of Use)
full logs (389.95 KB, text/x-log)
2013-01-14 14:40 UTC, exploit
no flags Details

Description exploit 2013-01-14 14:20:03 UTC
Description of problem:
otopi complains that it can't create the ovirtmgmt bridge when host is in dhcp mode
Version-Release number of selected component (if applicable):
on F17 or F18beta host and ovirt 3.2 alpha

How reproducible:
add an host from the webadmin

Steps to Reproduce:
1.installing a basic fedora host with a dhcp default mode 
2.
3.
  
Actual results:
2013-01-14 15:02:07 ERROR otopi.context context._executeMethod:136 Failed to execute stage 'Misc configuration': Command '/usr/share/vdsm/addNetwork' failed to execute
2013-01-14 15:02:07 DEBUG otop

Expected results:
bridge ovirtmgmt is created

Additional info:
When changing dhcp into static bootproto, otopi gets a successfull installation.

Comment 1 Alon Bar-Lev 2013-01-14 14:25:27 UTC
Can you please attach complete log?
Thanks!

Comment 2 exploit 2013-01-14 14:40:35 UTC
Created attachment 678245 [details]
full logs

Comment 3 Alon Bar-Lev 2013-01-14 14:50:34 UTC
2013-01-14 15:02:02 DEBUG otopi.plugins.ovirt_host_deploy.vdsm.bridge plugin.executeRaw:324 execute: ['/usr/share/vdsm/addNetwork', 'ovirtmgmt', '', '', u'eth0', 'UUID=aa775217-be76-4b26-a5f6-6131d1ca494d', 'BOOTPROTO=dhcp', 'ONBOOT=yes', 'DEFROUTE=yes', 'PEERDNS=yes', 'PEERROUTES=yes', 'IPV4_FAILURE_FATAL=no', 'IPV6INIT=no', 'NAME=System eth0', 'blockingdhcp=true'], env=None
2013-01-14 15:02:07 DEBUG otopi.plugins.ovirt_host_deploy.vdsm.bridge plugin.executeRaw:341 execute-result: ['/usr/share/vdsm/addNetwork', 'ovirtmgmt', '', '', u'eth0', 'UUID=aa775217-be76-4b26-a5f6-6131d1ca494d', 'BOOTPROTO=dhcp', 'ONBOOT=yes', 'DEFROUTE=yes', 'PEERDNS=yes', 'PEERROUTES=yes', 'IPV4_FAILURE_FATAL=no', 'IPV6INIT=no', 'NAME=System eth0', 'blockingdhcp=true'], rc=255
2013-01-14 15:02:07 DEBUG otopi.plugins.ovirt_host_deploy.vdsm.bridge plugin.execute:388 execute-output: ['/usr/share/vdsm/addNetwork', 'ovirtmgmt', '', '', u'eth0', 'UUID=aa775217-be76-4b26-a5f6-6131d1ca494d', 'BOOTPROTO=dhcp', 'ONBOOT=yes', 'DEFROUTE=yes', 'PEERDNS=yes', 'PEERROUTES=yes', 'IPV4_FAILURE_FATAL=no', 'IPV6INIT=no', 'NAME=System eth0', 'blockingdhcp=true'] stdout:


2013-01-14 15:02:07 DEBUG otopi.plugins.ovirt_host_deploy.vdsm.bridge plugin.execute:393 execute-output: ['/usr/share/vdsm/addNetwork', 'ovirtmgmt', '', '', u'eth0', 'UUID=aa775217-be76-4b26-a5f6-6131d1ca494d', 'BOOTPROTO=dhcp', 'ONBOOT=yes', 'DEFROUTE=yes', 'PEERDNS=yes', 'PEERROUTES=yes', 'IPV4_FAILURE_FATAL=no', 'IPV6INIT=no', 'NAME=System eth0', 'blockingdhcp=true'] stderr:
WARNING:Storage.LVM:Cannot create env file [Errno 2] No such file or directory: '/var/run/vdsm/lvm.env'
WARNING:root:options BOOTPROTO is deprecated. Use bootproto instead
WARNING:root:options ONBOOT is deprecated. Use onboot instead
INFO:root:Adding network ovirtmgmt with vlan=, bonding=, nics=['eth0'], bondingOptions=None, mtu=None, bridged=True, options={'PEERROUTES': 'yes', 'blockingdhcp': 'true', 'UUID': 'aa775217-be76-4b26-a5f6-6131d1ca494d', 'IPV6INIT': 'no', 'DEFROUTE': 'yes', 'PEERDNS': 'yes', 'IPV4_FAILURE_FATAL': 'no', 'bootproto': 'dhcp', 'onboot': 'yes', 'NAME': 'System eth0'}
libvir: Network Driver error : Network not found: no network with matching name 'vdsm-ovirtmgmt'
libvir: Network Driver error : Network not found: no network with matching name 'vdsm-ovirtmgmt'
libvir: Network Driver error : Requested operation is not valid: cannot set autostart for transient network
Traceback (most recent call last):
  File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/share/vdsm/configNetwork.py", line 1515, in <module>
    main()
  File "/usr/share/vdsm/configNetwork.py", line 1484, in main
    addNetwork(bridge, **kwargs)
  File "/usr/share/vdsm/configNetwork.py", line 1030, in addNetwork
    configWriter.createLibvirtNetwork(network, bridged, iface)
  File "/usr/share/vdsm/configNetwork.py", line 208, in createLibvirtNetwork
    self._createNetwork(netXml)
  File "/usr/share/vdsm/configNetwork.py", line 192, in _createNetwork
    net.setAutostart(1)
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 2148, in setAutostart
    if ret == -1: raise libvirtError ('virNetworkSetAutostart() failed', net=self)
libvirt.libvirtError: Requested operation is not valid: cannot set autostart for transient network

2013-01-14 15:02:07 DEBUG otopi.context context._executeMethod:127 method exception
Traceback (most recent call last):
  File "/tmp/ovirt-3kVZFtJWVL/pythonlib/otopi/context.py", line 117, in _executeMethod
    method['method']()
  File "/tmp/ovirt-3kVZFtJWVL/otopi-plugins/ovirt-host-deploy/vdsm/bridge.py", line 769, in _misc
    parameters=parameters,
  File "/tmp/ovirt-3kVZFtJWVL/otopi-plugins/ovirt-host-deploy/vdsm/bridge.py", line 543, in _createBridge
    parameters
  File "/tmp/ovirt-3kVZFtJWVL/pythonlib/otopi/plugin.py", line 398, in execute
    command=args[0],
RuntimeError: Command '/usr/share/vdsm/addNetwork' failed to execute
2013-01-14 15:02:07 ERROR otopi.context context._executeMethod:136 Failed to execute stage 'Misc configuration': Command '/usr/share/vdsm/addNetwork' failed to execute

Comment 4 Alon Bar-Lev 2013-01-14 14:51:14 UTC
Dan,

What do you make out of this?

Alon

Comment 5 Dan Kenigsberg 2013-01-14 15:26:36 UTC
What is your libvirt version? I seems like a known bug in libvirt-1.0.1

http://www.redhat.com/archives/libvir-list/2012-December/msg01335.html

Comment 6 Alon Bar-Lev 2013-01-14 15:31:35 UTC
(In reply to comment #5)
> What is your libvirt version? I seems like a known bug in libvirt-1.0.1
> 
> http://www.redhat.com/archives/libvir-list/2012-December/msg01335.html

libvirt-1.0.1-2.fc17.x86_64

Comment 7 Alon Bar-Lev 2013-01-16 21:57:47 UTC
This is libvirt issue, please downgrade libvirt to the version distributed with fedora 18.

Thanks!


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