<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">&lt;<a href="mailto:alonbl@redhat.com" target="_blank">alonbl@redhat.com</a>&gt;</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>
&gt; From: &quot;Joop&quot; &lt;<a href="mailto:jvdwege@xs4all.nl">jvdwege@xs4all.nl</a>&gt;<br>
&gt; To: <a href="mailto:users@ovirt.org">users@ovirt.org</a><br>
&gt; Sent: Friday, December 21, 2012 12:30:17 PM<br>
&gt; Subject: [Users] Vdsm/libvir error during deploy<br>
&gt;<br>
&gt; While using the latest nightly I can&#39;t deploy new hosts using oVirt.<br>
&gt; rpm -aq | grep ovirt<br>
&gt; ovirt-engine-backend-3.2.0-1.20121220.git9fdb0c2.fc17.noarch<br>
&gt; ovirt-engine-dbscripts-3.2.0-1.20121220.git9fdb0c2.fc17.noarch<br>
&gt; ovirt-iso-uploader-3.1.0-1.fc17.noarch<br>
&gt; ovirt-engine-tools-common-3.2.0-1.20121220.git9fdb0c2.fc17.noarch<br>
&gt; ovirt-engine-userportal-3.2.0-1.20121220.git9fdb0c2.fc17.noarch<br>
&gt; ovirt-host-deploy-0.0.0-0.0.master.20121220.gitec2416f.fc17.noarch<br>
&gt; ovirt-engine-config-3.2.0-1.20121220.git9fdb0c2.fc17.noarch<br>
&gt; ovirt-engine-cli-3.2.0.7-1.20121219.git5eddf58.fc17.noarch<br>
&gt; ovirt-engine-webadmin-portal-3.2.0-1.20121220.git9fdb0c2.fc17.noarch<br>
&gt; ovirt-engine-restapi-3.2.0-1.20121220.git9fdb0c2.fc17.noarch<br>
&gt; ovirt-engine-genericapi-3.2.0-1.20121220.git9fdb0c2.fc17.noarch<br>
&gt; ovirt-host-deploy-java-0.0.0-0.0.master.20121220.gitec2416f.fc17.noarch<br>
&gt; ovirt-engine-notification-service-3.2.0-1.20121220.git9fdb0c2.fc17.noarch<br>
&gt; ovirt-engine-3.2.0-1.20121220.git9fdb0c2.fc17.noarch<br>
&gt; ovirt-release-fedora-5-2.noarch<br>
&gt; ovirt-image-uploader-3.1.0-1.fc17.noarch<br>
&gt; ovirt-engine-sdk-3.2.0.5-1.20121219.gitc0ab704.fc17.noarch<br>
&gt; ovirt-log-collector-3.1.0-1.fc17.noarch<br>
&gt; ovirt-engine-setup-3.2.0-1.20121220.git9fdb0c2.fc17.noarch<br>
&gt;<br>
&gt; I did an engine-cleanup/engine-setup to start with a clean slate,<br>
&gt; further<br>
&gt; I have a host that is used before and keeps loosing<br>
&gt; networkconnectivity<br>
&gt; when the vdsmd service is started so I did several yum removes of<br>
&gt; packages<br>
&gt; (libvirt related and qemu related and vdsm*) and removed the /etc/<br>
&gt; and<br>
&gt; /var entries where needed. Then I ran add host and end up with the<br>
&gt; same<br>
&gt; error I had before, full deploy log is attached but this is the real<br>
&gt; and<br>
&gt; only set of errors:<br>
&gt;<br>
&gt; 2012-12-21 11:00:26 DEBUG otopi.plugins.ovirt_host_deploy.vdsm.bridge<br>
&gt; plugin.executeRaw:324 execute: [&#39;/usr/share/vdsm/addNetwork&#39;,<br>
&gt; &#39;ovirtmgmt&#39;,<br>
&gt; &#39;&#39;, &#39;&#39;, u&#39;em1&#39;, &#39;ONBOOT=yes&#39;, &#39;IPADDR=192.168.216.152&#39;,<br>
&gt; &#39;DNS2=172.19.1.18&#39;, &#39;DNS1=172.19.1.12&#39;,<br>
&gt; &#39;UUID=e121a99a-994e-479d-8de1-a56c14315545&#39;, &#39;IPV6INIT=no&#39;,<br>
&gt; &#39;USERCTL=no&#39;,<br>
&gt; &#39;GATEWAY=192.168.216.254&#39;, &#39;NETMASK=255.255.255.0&#39;,<br>
&gt; &#39;blockingdhcp=true&#39;],<br>
&gt; env=None<br>
&gt; 2012-12-21 11:00:30 DEBUG otopi.plugins.ovirt_host_deploy.vdsm.bridge<br>
&gt; plugin.executeRaw:341 execute-result: [&#39;/usr/share/vdsm/addNetwork&#39;,<br>
&gt; &#39;ovirtmgmt&#39;, &#39;&#39;, &#39;&#39;, u&#39;em1&#39;, &#39;ONBOOT=yes&#39;, &#39;IPADDR=192.168.216.152&#39;,<br>
&gt; &#39;DNS2=172.19.1.18&#39;, &#39;DNS1=172.19.1.12&#39;,<br>
&gt; &#39;UUID=e121a99a-994e-479d-8de1-a56c14315545&#39;, &#39;IPV6INIT=no&#39;,<br>
&gt; &#39;USERCTL=no&#39;,<br>
&gt; &#39;GATEWAY=192.168.216.254&#39;, &#39;NETMASK=255.255.255.0&#39;,<br>
&gt; &#39;blockingdhcp=true&#39;],<br>
&gt; rc=255<br>
&gt; 2012-12-21 11:00:30 DEBUG otopi.plugins.ovirt_host_deploy.vdsm.bridge<br>
&gt; plugin.execute:388 execute-output: [&#39;/usr/share/vdsm/addNetwork&#39;,<br>
&gt; &#39;ovirtmgmt&#39;, &#39;&#39;, &#39;&#39;, u&#39;em1&#39;, &#39;ONBOOT=yes&#39;, &#39;IPADDR=192.168.216.152&#39;,<br>
&gt; &#39;DNS2=172.19.1.18&#39;, &#39;DNS1=172.19.1.12&#39;,<br>
&gt; &#39;UUID=e121a99a-994e-479d-8de1-a56c14315545&#39;, &#39;IPV6INIT=no&#39;,<br>
&gt; &#39;USERCTL=no&#39;,<br>
&gt; &#39;GATEWAY=192.168.216.254&#39;, &#39;NETMASK=255.255.255.0&#39;,<br>
&gt; &#39;blockingdhcp=true&#39;]<br>
&gt; stdout:<br>
&gt;<br>
&gt;<br>
&gt; 2012-12-21 11:00:30 DEBUG otopi.plugins.ovirt_host_deploy.vdsm.bridge<br>
&gt; plugin.execute:393 execute-output: [&#39;/usr/share/vdsm/addNetwork&#39;,<br>
&gt; &#39;ovirtmgmt&#39;, &#39;&#39;, &#39;&#39;, u&#39;em1&#39;, &#39;ONBOOT=yes&#39;, &#39;IPADDR=192.168.216.152&#39;,<br>
&gt; &#39;DNS2=172.19.1.18&#39;, &#39;DNS1=172.19.1.12&#39;,<br>
&gt; &#39;UUID=e121a99a-994e-479d-8de1-a56c14315545&#39;, &#39;IPV6INIT=no&#39;,<br>
&gt; &#39;USERCTL=no&#39;,<br>
&gt; &#39;GATEWAY=192.168.216.254&#39;, &#39;NETMASK=255.255.255.0&#39;,<br>
&gt; &#39;blockingdhcp=true&#39;]<br>
&gt; stderr:<br>
&gt; WARNING:Storage.LVM:Cannot create env file [Errno 2] No such file or<br>
&gt; directory: &#39;/var/run/vdsm/lvm.env&#39;<br>
&gt; WARNING:root:options IPADDR is deprecated. Use ipaddr instead<br>
&gt; WARNING:root:options NETMASK is deprecated. Use netmask instead<br>
&gt; WARNING:root:options GATEWAY is deprecated. Use gateway instead<br>
&gt; WARNING:root:options ONBOOT is deprecated. Use onboot instead<br>
&gt; INFO:root:Adding network ovirtmgmt with vlan=, bonding=,<br>
&gt; nics=[&#39;em1&#39;],<br>
&gt; bondingOptions=None, mtu=None, bridged=True, options={&#39;blockingdhcp&#39;:<br>
&gt; &#39;true&#39;, &#39;UUID&#39;: &#39;e121a99a-994e-479d-8de1-a56c14315545&#39;, &#39;USERCTL&#39;:<br>
&gt; &#39;no&#39;,<br>
&gt; &#39;DNS2&#39;: &#39;172.19.1.18&#39;, &#39;DNS1&#39;: &#39;172.19.1.12&#39;, &#39;onboot&#39;: &#39;yes&#39;,<br>
&gt; &#39;IPV6INIT&#39;:<br>
&gt; &#39;no&#39;}<br>
&gt; libvir: Network Driver error : Network not found: no network with<br>
&gt; matching<br>
&gt; name &#39;vdsm-ovirtmgmt&#39;<br>
&gt; libvir: Network Driver error : Network not found: no network with<br>
&gt; matching<br>
&gt; name &#39;vdsm-ovirtmgmt&#39;<br>
&gt; libvir: Network Driver error : Requested operation is not valid:<br>
&gt; cannot<br>
&gt; set autostart for transient network<br>
&gt; Traceback (most recent call last):<br>
&gt;   File &quot;/usr/lib64/python2.7/runpy.py&quot;, line 162, in<br>
&gt;   _run_module_as_main<br>
&gt;     &quot;__main__&quot;, fname, loader, pkg_name)<br>
&gt;   File &quot;/usr/lib64/python2.7/runpy.py&quot;, line 72, in _run_code<br>
&gt;     exec code in run_globals<br>
&gt;   File &quot;/usr/share/vdsm/configNetwork.py&quot;, line 1489, in &lt;module&gt;<br>
&gt;     main()<br>
&gt;   File &quot;/usr/share/vdsm/configNetwork.py&quot;, line 1458, in main<br>
&gt;     addNetwork(bridge, **kwargs)<br>
&gt;   File &quot;/usr/share/vdsm/configNetwork.py&quot;, line 1017, in addNetwork<br>
&gt;     configWriter.createLibvirtNetwork(network, bridged, iface)<br>
&gt;   File &quot;/usr/share/vdsm/configNetwork.py&quot;, line 200, in<br>
&gt;   createLibvirtNetwork<br>
&gt;     self._createNetwork(netXml)<br>
&gt;   File &quot;/usr/share/vdsm/configNetwork.py&quot;, line 184, in<br>
&gt;   _createNetwork<br>
&gt;     net.setAutostart(1)<br>
&gt;   File &quot;/usr/lib64/python2.7/site-packages/libvirt.py&quot;, line 2148, in<br>
&gt; setAutostart<br>
&gt;     if ret == -1: raise libvirtError (&#39;virNetworkSetAutostart()<br>
&gt;     failed&#39;,<br>
&gt; net=self)<br>
&gt; libvirt.libvirtError: Requested operation is not valid: cannot set<br>
&gt; autostart for transient network<br>
&gt;<br>
&gt; 2012-12-21 11:00:30 DEBUG otopi.context context._executeMethod:127<br>
&gt; method<br>
&gt; exception<br>
&gt; Traceback (most recent call last):<br>
&gt;   File &quot;/tmp/ovirt-o5lusc2CYC/pythonlib/otopi/context.py&quot;, line 117,<br>
&gt;   in<br>
&gt; _executeMethod<br>
&gt;     method[&#39;method&#39;]()<br>
&gt;   File<br>
&gt; &quot;/tmp/ovirt-o5lusc2CYC/otopi-plugins/ovirt-host-deploy/vdsm/bridge.py&quot;,<br>
&gt; line 736, in _misc<br>
&gt;     parameters=parameters,<br>
&gt;   File<br>
&gt; &quot;/tmp/ovirt-o5lusc2CYC/otopi-plugins/ovirt-host-deploy/vdsm/bridge.py&quot;,<br>
&gt; line 492, in _createBridge<br>
&gt;     parameters<br>
&gt;   File &quot;/tmp/ovirt-o5lusc2CYC/pythonlib/otopi/plugin.py&quot;, line 398,<br>
&gt;   in<br>
&gt; execute<br>
&gt;     command=args[0],<br>
&gt; RuntimeError: Command &#39;/usr/share/vdsm/addNetwork&#39; failed to execute<br>
&gt; 2012-12-21 11:00:30 ERROR otopi.context context._executeMethod:136<br>
&gt; Failed<br>
&gt; to execute stage &#39;Misc configuration&#39;: Command<br>
&gt; &#39;/usr/share/vdsm/addNetwork&#39; failed to execute<br>
&gt; 2012-12-21 11:00:30 DEBUG otopi.transaction transaction.abort:131<br>
&gt; aborting<br>
&gt; &#39;Yum Transaction&#39;<br>
&gt;<br>
&gt; This is a host that started life as a standard Fed17 install from<br>
&gt; LiveCD<br>
&gt; and it worked with ovirt-3.1 but now I can&#39;t get it to work with<br>
&gt; oVirt-nightlies. I have two other hosts which started from the same<br>
&gt; install and they work, atleast everything gets installed and the<br>
&gt; hosts are<br>
&gt; visisble and up in oVirt. Did a diff of rpm -aq | sort of a working<br>
&gt; and<br>
&gt; nonworking host but the diff is minimal, some extra packages (mc/..)<br>
&gt; some<br>
&gt; very small version diffs (1.2.3-x instead of y)<br>
&gt;<br>
&gt; Any help appreciated,<br>
&gt;<br>
&gt; 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 &#39;*vdsm*&#39; -exec rm {} \;<br>
$ find /var/lib/libvirt -name &#39;*vdsm*&#39; -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&#39;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>