<div dir="ltr">Hi<div><br></div><div style>I suggest also to remove /var/lib/vdsm/netbackup directory.</div><div style>Kevin</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2012/12/21 Alon Bar-Lev <span dir="ltr"><<a href="mailto:alonbl@redhat.com" target="_blank">alonbl@redhat.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><br>
<br>
----- Original Message -----<br>
> From: "Joop" <<a href="mailto:jvdwege@xs4all.nl">jvdwege@xs4all.nl</a>><br>
> To: <a href="mailto:users@ovirt.org">users@ovirt.org</a><br>
> Sent: Friday, December 21, 2012 12:30:17 PM<br>
> Subject: [Users] Vdsm/libvir error during deploy<br>
><br>
> While using the latest nightly I can't deploy new hosts using oVirt.<br>
> rpm -aq | grep ovirt<br>
> ovirt-engine-backend-3.2.0-1.20121220.git9fdb0c2.fc17.noarch<br>
> ovirt-engine-dbscripts-3.2.0-1.20121220.git9fdb0c2.fc17.noarch<br>
> ovirt-iso-uploader-3.1.0-1.fc17.noarch<br>
> ovirt-engine-tools-common-3.2.0-1.20121220.git9fdb0c2.fc17.noarch<br>
> ovirt-engine-userportal-3.2.0-1.20121220.git9fdb0c2.fc17.noarch<br>
> ovirt-host-deploy-0.0.0-0.0.master.20121220.gitec2416f.fc17.noarch<br>
> ovirt-engine-config-3.2.0-1.20121220.git9fdb0c2.fc17.noarch<br>
> ovirt-engine-cli-3.2.0.7-1.20121219.git5eddf58.fc17.noarch<br>
> ovirt-engine-webadmin-portal-3.2.0-1.20121220.git9fdb0c2.fc17.noarch<br>
> ovirt-engine-restapi-3.2.0-1.20121220.git9fdb0c2.fc17.noarch<br>
> ovirt-engine-genericapi-3.2.0-1.20121220.git9fdb0c2.fc17.noarch<br>
> ovirt-host-deploy-java-0.0.0-0.0.master.20121220.gitec2416f.fc17.noarch<br>
> ovirt-engine-notification-service-3.2.0-1.20121220.git9fdb0c2.fc17.noarch<br>
> ovirt-engine-3.2.0-1.20121220.git9fdb0c2.fc17.noarch<br>
> ovirt-release-fedora-5-2.noarch<br>
> ovirt-image-uploader-3.1.0-1.fc17.noarch<br>
> ovirt-engine-sdk-3.2.0.5-1.20121219.gitc0ab704.fc17.noarch<br>
> ovirt-log-collector-3.1.0-1.fc17.noarch<br>
> ovirt-engine-setup-3.2.0-1.20121220.git9fdb0c2.fc17.noarch<br>
><br>
> I did an engine-cleanup/engine-setup to start with a clean slate,<br>
> further<br>
> I have a host that is used before and keeps loosing<br>
> networkconnectivity<br>
> when the vdsmd service is started so I did several yum removes of<br>
> packages<br>
> (libvirt related and qemu related and vdsm*) and removed the /etc/<br>
> and<br>
> /var entries where needed. Then I ran add host and end up with the<br>
> same<br>
> error I had before, full deploy log is attached but this is the real<br>
> and<br>
> only set of errors:<br>
><br>
> 2012-12-21 11:00:26 DEBUG otopi.plugins.ovirt_host_deploy.vdsm.bridge<br>
> plugin.executeRaw:324 execute: ['/usr/share/vdsm/addNetwork',<br>
> 'ovirtmgmt',<br>
> '', '', u'em1', 'ONBOOT=yes', 'IPADDR=192.168.216.152',<br>
> 'DNS2=172.19.1.18', 'DNS1=172.19.1.12',<br>
> 'UUID=e121a99a-994e-479d-8de1-a56c14315545', 'IPV6INIT=no',<br>
> 'USERCTL=no',<br>
> 'GATEWAY=192.168.216.254', 'NETMASK=255.255.255.0',<br>
> 'blockingdhcp=true'],<br>
> env=None<br>
> 2012-12-21 11:00:30 DEBUG otopi.plugins.ovirt_host_deploy.vdsm.bridge<br>
> plugin.executeRaw:341 execute-result: ['/usr/share/vdsm/addNetwork',<br>
> 'ovirtmgmt', '', '', u'em1', 'ONBOOT=yes', 'IPADDR=192.168.216.152',<br>
> 'DNS2=172.19.1.18', 'DNS1=172.19.1.12',<br>
> 'UUID=e121a99a-994e-479d-8de1-a56c14315545', 'IPV6INIT=no',<br>
> 'USERCTL=no',<br>
> 'GATEWAY=192.168.216.254', 'NETMASK=255.255.255.0',<br>
> 'blockingdhcp=true'],<br>
> rc=255<br>
> 2012-12-21 11:00:30 DEBUG otopi.plugins.ovirt_host_deploy.vdsm.bridge<br>
> plugin.execute:388 execute-output: ['/usr/share/vdsm/addNetwork',<br>
> 'ovirtmgmt', '', '', u'em1', 'ONBOOT=yes', 'IPADDR=192.168.216.152',<br>
> 'DNS2=172.19.1.18', 'DNS1=172.19.1.12',<br>
> 'UUID=e121a99a-994e-479d-8de1-a56c14315545', 'IPV6INIT=no',<br>
> 'USERCTL=no',<br>
> 'GATEWAY=192.168.216.254', 'NETMASK=255.255.255.0',<br>
> 'blockingdhcp=true']<br>
> stdout:<br>
><br>
><br>
> 2012-12-21 11:00:30 DEBUG otopi.plugins.ovirt_host_deploy.vdsm.bridge<br>
> plugin.execute:393 execute-output: ['/usr/share/vdsm/addNetwork',<br>
> 'ovirtmgmt', '', '', u'em1', 'ONBOOT=yes', 'IPADDR=192.168.216.152',<br>
> 'DNS2=172.19.1.18', 'DNS1=172.19.1.12',<br>
> 'UUID=e121a99a-994e-479d-8de1-a56c14315545', 'IPV6INIT=no',<br>
> 'USERCTL=no',<br>
> 'GATEWAY=192.168.216.254', 'NETMASK=255.255.255.0',<br>
> 'blockingdhcp=true']<br>
> stderr:<br>
> WARNING:Storage.LVM:Cannot create env file [Errno 2] No such file or<br>
> directory: '/var/run/vdsm/lvm.env'<br>
> WARNING:root:options IPADDR is deprecated. Use ipaddr instead<br>
> WARNING:root:options NETMASK is deprecated. Use netmask instead<br>
> WARNING:root:options GATEWAY is deprecated. Use gateway instead<br>
> WARNING:root:options ONBOOT is deprecated. Use onboot instead<br>
> INFO:root:Adding network ovirtmgmt with vlan=, bonding=,<br>
> nics=['em1'],<br>
> bondingOptions=None, mtu=None, bridged=True, options={'blockingdhcp':<br>
> 'true', 'UUID': 'e121a99a-994e-479d-8de1-a56c14315545', 'USERCTL':<br>
> 'no',<br>
> 'DNS2': '172.19.1.18', 'DNS1': '172.19.1.12', 'onboot': 'yes',<br>
> 'IPV6INIT':<br>
> 'no'}<br>
> libvir: Network Driver error : Network not found: no network with<br>
> matching<br>
> name 'vdsm-ovirtmgmt'<br>
> libvir: Network Driver error : Network not found: no network with<br>
> matching<br>
> name 'vdsm-ovirtmgmt'<br>
> libvir: Network Driver error : Requested operation is not valid:<br>
> cannot<br>
> set autostart for transient network<br>
> Traceback (most recent call last):<br>
> File "/usr/lib64/python2.7/runpy.py", line 162, in<br>
> _run_module_as_main<br>
> "__main__", fname, loader, pkg_name)<br>
> File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code<br>
> exec code in run_globals<br>
> File "/usr/share/vdsm/configNetwork.py", line 1489, in <module><br>
> main()<br>
> File "/usr/share/vdsm/configNetwork.py", line 1458, in main<br>
> addNetwork(bridge, **kwargs)<br>
> File "/usr/share/vdsm/configNetwork.py", line 1017, in addNetwork<br>
> configWriter.createLibvirtNetwork(network, bridged, iface)<br>
> File "/usr/share/vdsm/configNetwork.py", line 200, in<br>
> createLibvirtNetwork<br>
> self._createNetwork(netXml)<br>
> File "/usr/share/vdsm/configNetwork.py", line 184, in<br>
> _createNetwork<br>
> net.setAutostart(1)<br>
> File "/usr/lib64/python2.7/site-packages/libvirt.py", line 2148, in<br>
> setAutostart<br>
> if ret == -1: raise libvirtError ('virNetworkSetAutostart()<br>
> failed',<br>
> net=self)<br>
> libvirt.libvirtError: Requested operation is not valid: cannot set<br>
> autostart for transient network<br>
><br>
> 2012-12-21 11:00:30 DEBUG otopi.context context._executeMethod:127<br>
> method<br>
> exception<br>
> Traceback (most recent call last):<br>
> File "/tmp/ovirt-o5lusc2CYC/pythonlib/otopi/context.py", line 117,<br>
> in<br>
> _executeMethod<br>
> method['method']()<br>
> File<br>
> "/tmp/ovirt-o5lusc2CYC/otopi-plugins/ovirt-host-deploy/vdsm/bridge.py",<br>
> line 736, in _misc<br>
> parameters=parameters,<br>
> File<br>
> "/tmp/ovirt-o5lusc2CYC/otopi-plugins/ovirt-host-deploy/vdsm/bridge.py",<br>
> line 492, in _createBridge<br>
> parameters<br>
> File "/tmp/ovirt-o5lusc2CYC/pythonlib/otopi/plugin.py", line 398,<br>
> in<br>
> execute<br>
> command=args[0],<br>
> RuntimeError: Command '/usr/share/vdsm/addNetwork' failed to execute<br>
> 2012-12-21 11:00:30 ERROR otopi.context context._executeMethod:136<br>
> Failed<br>
> to execute stage 'Misc configuration': Command<br>
> '/usr/share/vdsm/addNetwork' failed to execute<br>
> 2012-12-21 11:00:30 DEBUG otopi.transaction transaction.abort:131<br>
> aborting<br>
> 'Yum Transaction'<br>
><br>
> This is a host that started life as a standard Fed17 install from<br>
> LiveCD<br>
> and it worked with ovirt-3.1 but now I can't get it to work with<br>
> oVirt-nightlies. I have two other hosts which started from the same<br>
> install and they work, atleast everything gets installed and the<br>
> hosts are<br>
> visisble and up in oVirt. Did a diff of rpm -aq | sort of a working<br>
> and<br>
> nonworking host but the diff is minimal, some extra packages (mc/..)<br>
> some<br>
> very small version diffs (1.2.3-x instead of y)<br>
><br>
> Any help appreciated,<br>
><br>
> Joop<br>
<br>
</div></div>There are some leftovers from previous installation, libvirt is not sync with machine networking.<br>
<br>
You should clean up /etc/libvirt/ and /var/lib/libvirt look for files with vdsm...<br>
<br>
$ find /etc/libvirt -name '*vdsm*' -exec rm {} \;<br>
$ find /var/lib/libvirt -name '*vdsm*' -exec rm {} \;<br>
<br>
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).<br>
<br>
After the networking is default, start deployment.<br>
<br>
<br>
Alon<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><br> <span style="color:rgb(89,89,89);font-weight:bold" lang="EN-US">Kevin Mazière<br>
</span><span style="color:rgb(89,89,89)" lang="EN-US">Responsable Infrastructure<br>
</span><span style="color:rgb(255,0,153)" lang="EN-US">Alter Way
– Hosting<br>
</span>
<span style="color:rgb(89,89,89)">1 rue Royal - 227 Bureaux de la Colline</span><br>
<span style="color:rgb(89,89,89)">92213 Saint-Cloud Cedex</span><br>
<span style="color:rgb(89,89,89);font-weight:bold">Tél :</span>
<span style="color:rgb(89,89,89)"> +33 (0)1 41 16 38 41 </span><span style="color:rgb(89,89,89);font-weight:bold"><br></span>
<span style="color:rgb(89,89,89);font-weight:bold">Mob :</span>
<span style="color:rgb(89,89,89)"> +33 (0)7 62 55 57 05 </span><span style="color:rgb(89,89,89);font-weight:bold"><br>
<span style="color:rgb(89,89,89)"> <a href="http://www.alterway.fr/" target="_blank">http://www.alterway.fr</a> </span></span>
</div>