----- Original Message -----
From: "Joop" <jvdwege(a)xs4all.nl>
To: users(a)ovirt.org
Sent: Friday, December 21, 2012 12:30:17 PM
Subject: [Users] Vdsm/libvir error during deploy
While using the latest nightly I can't deploy new hosts using oVirt.
rpm -aq | grep ovirt
ovirt-engine-backend-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
ovirt-engine-dbscripts-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
ovirt-iso-uploader-3.1.0-1.fc17.noarch
ovirt-engine-tools-common-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
ovirt-engine-userportal-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
ovirt-host-deploy-0.0.0-0.0.master.20121220.gitec2416f.fc17.noarch
ovirt-engine-config-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
ovirt-engine-cli-3.2.0.7-1.20121219.git5eddf58.fc17.noarch
ovirt-engine-webadmin-portal-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
ovirt-engine-restapi-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
ovirt-engine-genericapi-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
ovirt-host-deploy-java-0.0.0-0.0.master.20121220.gitec2416f.fc17.noarch
ovirt-engine-notification-service-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
ovirt-engine-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
ovirt-release-fedora-5-2.noarch
ovirt-image-uploader-3.1.0-1.fc17.noarch
ovirt-engine-sdk-3.2.0.5-1.20121219.gitc0ab704.fc17.noarch
ovirt-log-collector-3.1.0-1.fc17.noarch
ovirt-engine-setup-3.2.0-1.20121220.git9fdb0c2.fc17.noarch
I did an engine-cleanup/engine-setup to start with a clean slate,
further
I have a host that is used before and keeps loosing
networkconnectivity
when the vdsmd service is started so I did several yum removes of
packages
(libvirt related and qemu related and vdsm*) and removed the /etc/
and
/var entries where needed. Then I ran add host and end up with the
same
error I had before, full deploy log is attached but this is the real
and
only set of errors:
2012-12-21 11:00:26 DEBUG otopi.plugins.ovirt_host_deploy.vdsm.bridge
plugin.executeRaw:324 execute: ['/usr/share/vdsm/addNetwork',
'ovirtmgmt',
'', '', u'em1', 'ONBOOT=yes',
'IPADDR=192.168.216.152',
'DNS2=172.19.1.18', 'DNS1=172.19.1.12',
'UUID=e121a99a-994e-479d-8de1-a56c14315545', 'IPV6INIT=no',
'USERCTL=no',
'GATEWAY=192.168.216.254', 'NETMASK=255.255.255.0',
'blockingdhcp=true'],
env=None
2012-12-21 11:00:30 DEBUG otopi.plugins.ovirt_host_deploy.vdsm.bridge
plugin.executeRaw:341 execute-result: ['/usr/share/vdsm/addNetwork',
'ovirtmgmt', '', '', u'em1', 'ONBOOT=yes',
'IPADDR=192.168.216.152',
'DNS2=172.19.1.18', 'DNS1=172.19.1.12',
'UUID=e121a99a-994e-479d-8de1-a56c14315545', 'IPV6INIT=no',
'USERCTL=no',
'GATEWAY=192.168.216.254', 'NETMASK=255.255.255.0',
'blockingdhcp=true'],
rc=255
2012-12-21 11:00:30 DEBUG otopi.plugins.ovirt_host_deploy.vdsm.bridge
plugin.execute:388 execute-output: ['/usr/share/vdsm/addNetwork',
'ovirtmgmt', '', '', u'em1', 'ONBOOT=yes',
'IPADDR=192.168.216.152',
'DNS2=172.19.1.18', 'DNS1=172.19.1.12',
'UUID=e121a99a-994e-479d-8de1-a56c14315545', 'IPV6INIT=no',
'USERCTL=no',
'GATEWAY=192.168.216.254', 'NETMASK=255.255.255.0',
'blockingdhcp=true']
stdout:
2012-12-21 11:00:30 DEBUG otopi.plugins.ovirt_host_deploy.vdsm.bridge
plugin.execute:393 execute-output: ['/usr/share/vdsm/addNetwork',
'ovirtmgmt', '', '', u'em1', 'ONBOOT=yes',
'IPADDR=192.168.216.152',
'DNS2=172.19.1.18', 'DNS1=172.19.1.12',
'UUID=e121a99a-994e-479d-8de1-a56c14315545', 'IPV6INIT=no',
'USERCTL=no',
'GATEWAY=192.168.216.254', 'NETMASK=255.255.255.0',
'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 GATEWAY is deprecated. Use gateway instead
WARNING:root:options ONBOOT is deprecated. Use onboot instead
INFO:root:Adding network ovirtmgmt with vlan=, bonding=,
nics=['em1'],
bondingOptions=None, mtu=None, bridged=True, options={'blockingdhcp':
'true', 'UUID': 'e121a99a-994e-479d-8de1-a56c14315545',
'USERCTL':
'no',
'DNS2': '172.19.1.18', 'DNS1': '172.19.1.12',
'onboot': 'yes',
'IPV6INIT':
'no'}
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 1489, in <module>
main()
File "/usr/share/vdsm/configNetwork.py", line 1458, in main
addNetwork(bridge, **kwargs)
File "/usr/share/vdsm/configNetwork.py", line 1017, in addNetwork
configWriter.createLibvirtNetwork(network, bridged, iface)
File "/usr/share/vdsm/configNetwork.py", line 200, in
createLibvirtNetwork
self._createNetwork(netXml)
File "/usr/share/vdsm/configNetwork.py", line 184, 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
2012-12-21 11:00:30 DEBUG otopi.context context._executeMethod:127
method
exception
Traceback (most recent call last):
File "/tmp/ovirt-o5lusc2CYC/pythonlib/otopi/context.py", line 117,
in
_executeMethod
method['method']()
File
"/tmp/ovirt-o5lusc2CYC/otopi-plugins/ovirt-host-deploy/vdsm/bridge.py",
line 736, in _misc
parameters=parameters,
File
"/tmp/ovirt-o5lusc2CYC/otopi-plugins/ovirt-host-deploy/vdsm/bridge.py",
line 492, in _createBridge
parameters
File "/tmp/ovirt-o5lusc2CYC/pythonlib/otopi/plugin.py", line 398,
in
execute
command=args[0],
RuntimeError: Command '/usr/share/vdsm/addNetwork' failed to execute
2012-12-21 11:00:30 ERROR otopi.context context._executeMethod:136
Failed
to execute stage 'Misc configuration': Command
'/usr/share/vdsm/addNetwork' failed to execute
2012-12-21 11:00:30 DEBUG otopi.transaction transaction.abort:131
aborting
'Yum Transaction'
This is a host that started life as a standard Fed17 install from
LiveCD
and it worked with ovirt-3.1 but now I can't get it to work with
oVirt-nightlies. I have two other hosts which started from the same
install and they work, atleast everything gets installed and the
hosts are
visisble and up in oVirt. Did a diff of rpm -aq | sort of a working
and
nonworking host but the diff is minimal, some extra packages (mc/..)
some
very small version diffs (1.2.3-x instead of y)
Any help appreciated,
Joop
There are some leftovers from previous installation, libvirt is not sync with machine
networking.
You should clean up /etc/libvirt/ and /var/lib/libvirt look for files with vdsm...
$ find /etc/libvirt -name '*vdsm*' -exec rm {} \;
$ find /var/lib/libvirt -name '*vdsm*' -exec rm {} \;
Also remove any ifcfg file you have, rm /etc/sysconfig/network-script/ifcfg-*, then
configure the host for have proper network address (if dhcp you don't need to do
anything, just restart network and network manager).
After the networking is default, start deployment.
Alon