On Mon, Dec 24, 2012 at 10:08:23AM +0100, Joop wrote:
> OK, I still have that error after starting from a clean slate. Steps
> that I have done:
> Clean install of Fed17 from bfo.iso, minimal installation. Changed
> DHCP configured em1 to static, added repos needed, yum update,
> restarted and added st02 using webadmin. Same error.
> Relevant configs before adding as host:
> ifcfg-em1:
> UUID="fa495259-571d-4ab8-aac2-cbabd3a2c8bd"
> NM_CONTROLLED="yes"
> NETBOOT="yes"
> HWADDR="f4:ce:46:0f:47:f0"
> BOOTPROTO=none
> IPADDR=192.168.216.152
> NETMASK=255.255.255.0
> GATEWAY=192.168.216.254
> DNS1=172.19.1.12
> DNS2=172.19.1.18
> DEVICE="em1"
> TYPE="Ethernet"
> ONBOOT="yes"
> NAME="Boot Disk"
> 
> Repos that are active:
> fedora-glusterfs.repo  fedora.repo  fedora-updates.repo
> fedora-updates-testing.repo  fedora-virt-preview.repo  ovirt.repo
> 
> Installation of packages is OK but same error concerning adding network:
> 
> 2012-12-24 09:45:53 DEBUG
> otopi.plugins.ovirt_host_deploy.vdsm.bridge plugin.execute:393
> execute-output: ['/usr/share/vdsm/addNetwork', 'ovirtmgmt', '', '',
> u'em1', 'UUID=fa495259-571d-4ab8-aac2-cbabd3a2c8bd', 'NETBOOT=yes',
> 'BOOTPROTO=none', 'IPADDR=192.168.216.152', 'NETMASK=255.255.255.0',
> 'GATEWAY=192.168.216.254', 'DNS1=172.19.1.12', 'DNS2=172.19.1.18',
> 'ONBOOT=yes', 'NAME=Boot Disk', '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 IPADDR is deprecated. Use ipaddr instead
> WARNING:root:options NETMASK is deprecated. Use netmask instead
> WARNING:root:options ONBOOT is deprecated. Use onboot instead
> WARNING:root:options BOOTPROTO is deprecated. Use bootproto instead
> WARNING:root:options GATEWAY is deprecated. Use gateway instead
> INFO:root:Adding network ovirtmgmt with vlan=, bonding=,
> nics=['em1'], bondingOptions=None, mtu=None, bridged=True,
> options={'blockingdhcp': 'true', 'UUID':
> 'fa495259-571d-4ab8-aac2-cbabd3a2c8bd', 'DNS2': '172.19.1.18',
> 'NETBOOT': 'yes', 'bootproto': 'none', 'DNS1': '172.19.1.12',
> 'onboot': 'yes', 'NAME': 'Boot Disk'}
> 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 1500, in <module>
>    main()
>  File "/usr/share/vdsm/configNetwork.py", line 1469, in main
>    addNetwork(bridge, **kwargs)
>  File "/usr/share/vdsm/configNetwork.py", line 1028, in addNetwork
>    configWriter.createLibvirtNetwork(network, bridged, iface)
>  File "/usr/share/vdsm/configNetwork.py", line 207, in createLibvirtNetwork
>    self._createNetwork(netXml)
>  File "/usr/share/vdsm/configNetwork.py", line 191, 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

Which version of libvirt is installed on your host?

What is the output of the following python script on your machine? Mine
says "1". Could it be that your libvirt says "0"?

=============

from vdsm import libvirtconnection

conn = libvirtconnection.get()
netXml = """<network>
  <name>test</name>
  <forward mode='passthrough'>
    <interface dev='em1'/>
  </forward>
</network>
"""

net = conn.networkDefineXML(netXml)
net.create()
print net.isPersistent()
net.destroy()
net.undefine()

_______________________________________________
Users mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/users

Reply via email to