
------=_Part_8187099_315798372.1363854126537 Content-Type: multipart/related; boundary="----=_Part_8187100_1191146467.1363854126537" ------=_Part_8187100_1191146467.1363854126537 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable You should not install vdsm on loopback device (localhost, 127.0.0.1) but o= n real interface's address. ----- Original Message -----
From: "Dennis B=C3=B6ck" <dennis@webdienstleistungen.com> To: "Alon Bar-Lev" <alonbl@redhat.com> Cc: users@ovirt.org Sent: Thursday, March 21, 2013 10:11:19 AM Subject: AW: [Users] Vdsm/libvir error during deploy =20 Hi, =20 I have also have problems with /usr/share/vdsm/addNetwork : =20 2013-03-21 09:00:22 ERROR otopi.context context._executeMethod:139 Failed to execute stage 'Misc configuration': Command '/usr/share/vdsm/addNetwork' failed to execute =20 2013-03-21 09:00:21 DEBUG otopi.plugins.ovirt_host_deploy.vdsm.bridge plugin.executeRaw:347 execute: ['/usr/share/vdsm/addNetwork', 'ovirtmgmt', '', '', 'lo', 'IPADDR=3D127.0.0.1', 'NETMASK=3D255.0.0.0', 'NETWORK=3D127.0.0.0', 'BROADCAST=3D127.255.255.255', 'ONBOOT=3Dyes', 'NAME=3Dloopback', 'blockingdhcp=3Dtrue'], executable=3D'None', cwd=3D'None', env=3DNone 2013-03-21 09:00:22 DEBUG otopi.plugins.ovirt_host_deploy.vdsm.bridge plugin.executeRaw:364 execute-result: ['/usr/share/vdsm/addNetwork', 'ovirtmgmt', '', '', 'lo', 'IPADDR=3D127.0.0.1', 'NETMASK=3D255.0.0.0', 'NETWORK=3D127.0.0.0', 'BROADCAST=3D127.255.255.255', 'ONBOOT=3Dyes', 'NAME=3Dloopback', 'blockingdhcp=3Dtrue'], rc=3D23 2013-03-21 09:00:22 DEBUG otopi.plugins.ovirt_host_deploy.vdsm.bridge plugin.execute:411 execute-output: ['/usr/share/vdsm/addNetwork', 'ovirtmgmt', '', '', 'lo', 'IPADDR=3D127.0.0.1', 'NETMASK=3D255.0.0.0', 'NETWORK=3D127.0.0.0', 'BROADCAST=3D127.255.255.255', 'ONBOOT=3Dyes', 'NAME=3Dloopback', 'blockingdhcp=3Dtrue'] stdout: unknown nic: 'lo' 2013-03-21 09:00:22 DEBUG otopi.plugins.ovirt_host_deploy.vdsm.bridge plugin.execute:416 execute-output: ['/usr/share/vdsm/addNetwork', 'ovirtmgmt', '', '', 'lo', 'IPADDR=3D127.0.0.1', 'NETMASK=3D255.0.0.0', 'NETWORK=3D127.0.0.0', 'BROADCAST=3D127.255.255.255', 'ONBOOT=3Dyes', 'NAME=3Dloopback', 'blockingdhcp=3Dtrue'] stderr: 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 Traceback (most recent call last): File "/usr/share/vdsm/configNetwork.py", line 1454, in <module> main() File "/usr/share/vdsm/configNetwork.py", line 1423, in main addNetwork(bridge, **kwargs) File "/usr/share/vdsm/configNetwork.py", line 886, in addNetwork bridged=3Dbridged, **options) File "/usr/share/vdsm/configNetwork.py", line 834, in _addNetworkValidation raise ConfigNetworkError(ne.ERR_BAD_NIC, "unknown nic: %r" % nic) ConfigNetworkError: (23, "unknown nic: 'lo'") =20 I already tried a new installation of vdsm and libvirt and executed $ find /etc/libvirt -name '*vdsm*' -exec rm {} \; $ find /var/lib/libvirt -name '*vdsm*' -exec rm {} \; ( /var/lib/vdsm/netbackup did not exist) =20 But I still get the same error message. Does anyone have an idea? =20 Best regards and thanks in advance Dennis =20 ----- Original Message ----- Von: users-bounces@ovirt.org [users-bounces@ovirt.org]" im Auftrag von "Kevin Maziere Aubry [kevin.maziere@alterway.fr] Gesendet: Freitag, 21. Dezember 2012 13:52 An: Alon Bar-Lev Cc: users@ovirt.org Betreff: Re: [Users] Vdsm/libvir error during deploy =20 =20 Hi =20 =20 I suggest also to remove /var/lib/vdsm/netbackup directory. Kevin =20 =20 =20 2012/12/21 Alon Bar-Lev <alonbl@redhat.com> =20 =20 =20 ----- Original Message -----
From: "Joop" <jvdwege@xs4all.nl> To: users@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.noar= ch 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=3Dyes', 'IPADDR=3D192.168.216.152', 'DNS2=3D172.19.1.18', 'DNS1=3D172.19.1.12', 'UUID=3De121a99a-994e-479d-8de1-a56c14315545', 'IPV6INIT=3Dno', 'USERCTL=3Dno', 'GATEWAY=3D192.168.216.254', 'NETMASK=3D255.255.255.0', 'blockingdhcp=3Dtrue'], env=3DNone 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=3Dyes', 'IPADDR=3D192.168.216.152', 'DNS2=3D172.19.1.18', 'DNS1=3D172.19.1.12', 'UUID=3De121a99a-994e-479d-8de1-a56c14315545', 'IPV6INIT=3Dno', 'USERCTL=3Dno', 'GATEWAY=3D192.168.216.254', 'NETMASK=3D255.255.255.0', 'blockingdhcp=3Dtrue'], rc=3D255 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=3Dyes', 'IPADDR=3D192.168.216.152', 'DNS2=3D172.19.1.18', 'DNS1=3D172.19.1.12', 'UUID=3De121a99a-994e-479d-8de1-a56c14315545', 'IPV6INIT=3Dno', 'USERCTL=3Dno', 'GATEWAY=3D192.168.216.254', 'NETMASK=3D255.255.255.0', 'blockingdhcp=3Dtrue'] 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=3Dyes', 'IPADDR=3D192.168.216.152', 'DNS2=3D172.19.1.18', 'DNS1=3D172.19.1.12', 'UUID=3De121a99a-994e-479d-8de1-a56c14315545', 'IPV6INIT=3Dno', 'USERCTL=3Dno', 'GATEWAY=3D192.168.216.254', 'NETMASK=3D255.255.255.0', 'blockingdhcp=3Dtrue'] 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=3D, bonding=3D, nics=3D['em1'], bondingOptions=3DNone, mtu=3DNone, bridged=3DTrue, options=3D{'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 =3D=3D -1: raise libvirtError ('virNetworkSetAutostart() failed', net=3Dself) 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=3Dparameters, 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=3Dargs[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 =20 =20 There are some leftovers from previous installation, libvirt is not sync with machine networking. =20 You should clean up /etc/libvirt/ and /var/lib/libvirt look for files with vdsm... =20 $ find /etc/libvirt -name '*vdsm*' -exec rm {} \; $ find /var/lib/libvirt -name '*vdsm*' -exec rm {} \; =20 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). =20 After the networking is default, start deployment. =20 =20 Alon
Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users =20 =20 =20 =20 =20 =20 -- =20 Kevin Mazi=C3=A8re Responsable Infrastructure Alter Way =E2=80=93 Hosting 1 rue Royal - 227 Bureaux de la Colline 92213 Saint-Cloud Cedex T=C3=A9l : +33 (0)1 41 16 38 41 Mob : +33 (0)7 62 55 57 05 http://www.alterway.fr
------=_Part_8187100_1191146467.1363854126537-- ------=_Part_8187099_315798372.1363854126537--