<div dir="ltr"><div class="gmail_extra">Hi All!</div><div class="gmail_extra"><br></div><div class="gmail_extra">Just did more research on this and it seems as if the reason was related to my interface configuration. Disclaimer upfront: I&#39;ve a public IP configured on this server (since it&#39;s a hosted root server), but changed the IP addr here to 192.168.0.99</div><div class="gmail_extra"><br></div><div class="gmail_extra">I started with the output from ´vdsm-tool restore-nets&#39;:</div><div class="gmail_extra"><div style="font-family:arial">    ipv4addr, prefix = addr[&#39;address&#39;].split(&#39;/&#39;)</div><div style="font-family:arial">ValueError: need more than 1 value to unpack</div><div><br></div><div>So I dumped the addr dictionary:</div></div><div class="gmail_extra"><div class="gmail_extra">{&#39;address&#39;: &#39;192.168.0.99&#39;,</div><div class="gmail_extra"> &#39;family&#39;: &#39;inet&#39;,</div><div class="gmail_extra"> &#39;flags&#39;: frozenset([&#39;permanent&#39;]),</div><div class="gmail_extra"> &#39;index&#39;: 2,</div><div class="gmail_extra"> &#39;label&#39;: &#39;eth0&#39;,</div><div class="gmail_extra"> &#39;prefixlen&#39;: 32,</div><div class="gmail_extra"> &#39;scope&#39;: &#39;universe&#39;}</div><div><div class="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-family:arial;font-size:small"><br></div><div style="font-family:arial;font-size:small">I&#39;ve no clue why there&#39;s no &quot;/32&quot; at the end, but that&#39;s what my netmask actually is due to the special configuration I got from my hosting provider:</div><div style="font-family:arial;font-size:small"><br></div><div style="font-family:arial;font-size:small"><div>[root@vhost1 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0</div><div>DEVICE=eth0<br></div><div>BOOTPROTO=none</div><div>ONBOOT=yes</div><div>HWADDR=00:52:9F:A8:AA:BB</div><div>IPADDR=192.168.0.99</div><div>NETMASK=255.255.255.255</div><div>SCOPE=&quot;peer 192.168.0.1&quot;</div></div><div style="font-family:arial;font-size:small"><br></div><div style="font-family:arial;font-size:small">(again, public IPs changed to private one, if that matters. And I skipped the IPv6 config above...)</div><div style="font-family:arial;font-size:small"><br></div><div style="font-family:arial;font-size:small">So what I did next, was to patch the netinfo.py:</div><div style><div style><font face="arial">[root@vhost1 vdsm]# diff -u netinfo_orig.py netinfo.py</font></div><div style><font face="arial">--- netinfo_orig.py<span class="" style="white-space:pre">        </span>2014-12-24 22:16:23.362198715 +0100</font></div><div style><font face="arial">+++ netinfo.py<span class="" style="white-space:pre">        </span>2014-12-24 22:16:02.567625247 +0100</font></div><div style><font face="arial">@@ -368,7 +368,12 @@</font></div><div style><font face="arial">         if addr[&#39;family&#39;] == &#39;inet&#39;:</font></div><div style><font face="arial">             ipv4addrs.append(addr[&#39;address&#39;])</font></div><div style><font face="arial">             if &#39;secondary&#39; not in addr[&#39;flags&#39;]:</font></div><div style><font face="arial">-                ipv4addr, prefix = addr[&#39;address&#39;].split(&#39;/&#39;)</font></div><div style><font face="arial">+                &quot;&quot;&quot;Assume /32 if no prefix was found&quot;&quot;&quot;</font></div><div style><font face="arial">+                if addr[&#39;address&#39;].find(&#39;/&#39;) == -1:</font></div><div style><font face="arial">+                    ipv4addr = addr[&#39;address&#39;]</font></div><div style><font face="arial">+                    prefix = &quot;32&quot;</font></div><div style><font face="arial">+                else:</font></div><div style><font face="arial">+                    ipv4addr, prefix = addr[&#39;address&#39;].split(&#39;/&#39;)</font></div><div style><font face="arial">                 ipv4netmask = prefix2netmask(addr[&#39;prefixlen&#39;])</font></div><div style><font face="arial">         else:</font></div><div style><font face="arial">             ipv6addrs.append(addr[&#39;address&#39;])</font></div><div style><font face="arial"><br></font></div><div style><font face="arial"><br></font></div><div style><font face="arial">and recompiled it:</font></div><div style><font face="arial">[root@vhost1 vdsm]# python -m py_compile netinfo.py<br></font></div></div><div style="font-family:arial;font-size:small"><br></div><div style="font-family:arial;font-size:small"><br></div><div style="font-family:arial;font-size:small"><br></div><div style="font-family:arial;font-size:small">Et voilà: </div><div style="font-family:arial;font-size:small">vdsm-tool ran fine:</div><div style="font-family:arial;font-size:small">`hosted-engine --deploy&#39; passed the previous failing stage!</div><div style="font-family:arial;font-size:small"><br></div><div style="font-family:arial;font-size:small">Hope this helps to find the root cause....</div><div style="font-family:arial;font-size:small"><br></div><div style="font-family:arial;font-size:small">Regards, </div><div style="font-family:arial;font-size:small"><br></div><div style="font-family:arial;font-size:small">Andreas</div><div style="font-family:arial;font-size:small"><br></div><div style="font-family:arial;font-size:small"><br></div></div></div></div></div></div></div><div class="gmail_quote">On Tue, Dec 23, 2014 at 10:58 PM, Andreas Mather <span dir="ltr">&lt;<a href="mailto:andreas@allaboutapps.at" target="_blank">andreas@allaboutapps.at</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-family:arial;font-size:small">Hi All!</div><div style="font-family:arial;font-size:small"><br></div><div style="font-family:arial;font-size:small">Just tried to install the hosted engine on a fresh CentOS 6.6: beside setting up a gluster cluster, I just added the repo and installed hosted-engine-setup package. Otherwise it&#39;s just a very minimal installation. hosted-engine deploy failed immediately. The issue seems to be the same as described here <a href="http://lists.ovirt.org/pipermail/users/2014-October/028461.html" target="_blank">http://lists.ovirt.org/pipermail/users/2014-October/028461.html</a> but that conversation didn&#39;t continue after the reporting user was asked for additional details.</div><div style="font-family:arial;font-size:small"><br></div><div style="font-family:arial;font-size:small">Failed installation:</div><div style="font-family:arial;font-size:small"><div><br>[root@vhost1 ~]# hosted-engine --deploy</div><div>[ INFO  ] Stage: Initializing</div><div>          Continuing will configure this host for serving as hypervisor and create a VM where you have to install oVirt Engine afterwards.</div><div>          Are you sure you want to continue? (Yes, No)[Yes]:</div><div>[ INFO  ] Generating a temporary VNC password.</div><div>[ INFO  ] Stage: Environment setup</div><div>          Configuration files: []</div><div>          Log file: /var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-20141223224236-y9ttk4.log</div><div>          Version: otopi-1.3.0 (otopi-1.3.0-1.el6)</div><div>[ INFO  ] Hardware supports virtualization</div><div>[ INFO  ] Stage: Environment packages setup</div><div>[ INFO  ] Stage: Programs detection</div><div>[ INFO  ] Stage: Environment setup</div><div>[ ERROR ] Failed to execute stage &#39;Environment setup&#39;: Command &#39;/sbin/service&#39; failed to execute</div><div>[ INFO  ] Stage: Clean up</div><div>[ INFO  ] Generating answer file &#39;/etc/ovirt-hosted-engine/answers.conf&#39;</div><div>[ INFO  ] Answer file &#39;/etc/ovirt-hosted-engine/answers.conf&#39; has been updated</div><div>[ INFO  ] Stage: Pre-termination</div><div>[ INFO  ] Stage: Termination</div></div><div style="font-family:arial;font-size:small"><br></div><div style="font-family:arial;font-size:small">Packages:</div><div style="font-family:arial;font-size:small"><br></div><div style="font-family:arial;font-size:small"><div>[root@vhost1 ~]# rpm -qa|grep hosted-engine</div><div>ovirt-hosted-engine-setup-1.2.1-1.el6.noarch</div><div>ovirt-hosted-engine-ha-1.2.4-1.el6.noarch</div><div><br></div><div>[root@vhost1 ~]# rpm -qa|grep vdsm</div><div>vdsm-yajsonrpc-4.16.7-1.gitdb83943.el6.noarch</div><div>vdsm-python-zombiereaper-4.16.7-1.gitdb83943.el6.noarch</div><div>vdsm-python-4.16.7-1.gitdb83943.el6.noarch</div><div>vdsm-xmlrpc-4.16.7-1.gitdb83943.el6.noarch</div><div>vdsm-4.16.7-1.gitdb83943.el6.x86_64</div><div>vdsm-cli-4.16.7-1.gitdb83943.el6.noarch</div><div>vdsm-jsonrpc-4.16.7-1.gitdb83943.el6.noarch</div></div><div style="font-family:arial;font-size:small"><br></div><div style="font-family:arial;font-size:small"><br></div><div style="font-family:arial;font-size:small">So here&#39;s the output that was requested in the other thread. Hope someone can help me here. Thanks!</div><div style="font-family:arial;font-size:small"><br></div><pre style="white-space:pre-wrap;color:rgb(0,0,0)">[root@vhost1 ~]#    find /var/lib/vdsm/persistence
/var/lib/vdsm/persistence</pre><pre><span style="color:rgb(0,0,0);white-space:pre-wrap">[root@vhost1 ~]#     find /var/run/vdsm/netconf
find: `/var/run/vdsm/netconf&#39;: No such file or directory</span><font color="#000000"><span style="white-space:pre-wrap">
</span></font></pre><div><font color="#000000" face="monospace"><span style="white-space:pre-wrap">[root@vhost1 ~]# ip l
1: lo: &lt;LOOPBACK,UP,LOWER_UP&gt; mtu 65536 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc mq state UP qlen 1000
    link/ether 00:25:90:d8:0a:b0 brd ff:ff:ff:ff:ff:ff
4: ;vdsmdummy;: &lt;BROADCAST,MULTICAST&gt; mtu 1500 qdisc noop state DOWN
    link/ether 62:e5:28:13:9d:ba brd ff:ff:ff:ff:ff:ff
5: bond0: &lt;BROADCAST,MULTICAST,MASTER&gt; mtu 1500 qdisc noop state DOWN
    link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff</span></font><span style="font-family:arial,sans-serif;font-size:small;color:rgb(0,0,0);white-space:pre-wrap">    virsh -r net</span><font face="arial"> </font></div><div style="font-family:arial;font-size:small"><br></div><div style="font-family:arial;font-size:small"><div>[root@vhost1 ~]#  virsh -r net</div><div>error: unknown command: &#39;net&#39;</div><div><br></div><div>[root@vhost1 ~]#  virsh -r net-list</div><div>Name                 State      Autostart     Persistent</div><div>--------------------------------------------------</div><div>;vdsmdummy;          active     no            no</div><div><br></div></div><div style="font-family:arial;font-size:small"><div>[root@vhost1 ~]# vdsm-tool restore-nets</div><div>Traceback (most recent call last):</div><div>  File &quot;/usr/share/vdsm/vdsm-restore-net-config&quot;, line 137, in &lt;module&gt;</div><div>    restore()</div><div>  File &quot;/usr/share/vdsm/vdsm-restore-net-config&quot;, line 123, in restore</div><div>    unified_restoration()</div><div>  File &quot;/usr/share/vdsm/vdsm-restore-net-config&quot;, line 57, in unified_restoration</div><div>    _inRollback=True)</div><div>  File &quot;/usr/share/vdsm/network/api.py&quot;, line 616, in setupNetworks</div><div>    netinfo._libvirtNets2vdsm(libvirt_nets)))</div><div>  File &quot;/usr/lib/python2.6/site-packages/vdsm/netinfo.py&quot;, line 822, in get</div><div>    d[&#39;nics&#39;][<a href="http://dev.name" target="_blank">dev.name</a>] = _nicinfo(dev, paddr, ipaddrs)</div><div>  File &quot;/usr/lib/python2.6/site-packages/vdsm/netinfo.py&quot;, line 653, in _nicinfo</div><div>    info = _devinfo(link, ipaddrs)</div><div>  File &quot;/usr/lib/python2.6/site-packages/vdsm/netinfo.py&quot;, line 681, in _devinfo</div><div>    ipv4addr, ipv4netmask, ipv4addrs, ipv6addrs = getIpInfo(<a href="http://link.name" target="_blank">link.name</a>, ipaddrs)</div><div>  File &quot;/usr/lib/python2.6/site-packages/vdsm/netinfo.py&quot;, line 370, in getIpInfo</div><div>    ipv4addr, prefix = addr[&#39;address&#39;].split(&#39;/&#39;)</div><div>ValueError: need more than 1 value to unpack</div><div>Traceback (most recent call last):</div><div>  File &quot;/usr/bin/vdsm-tool&quot;, line 209, in main</div><div>    return tool_command[cmd][&quot;command&quot;](*args)</div><div>  File &quot;/usr/lib/python2.6/site-packages/vdsm/tool/restore_nets.py&quot;, line 36, in restore_command</div><div>    restore()</div><div>  File &quot;/usr/lib/python2.6/site-packages/vdsm/tool/restore_nets.py&quot;, line 45, in restore</div><div>    raise EnvironmentError(&#39;Failed to restore the persisted networks&#39;)</div><div>EnvironmentError: Failed to restore the persisted networks</div></div><div style="font-family:arial;font-size:small"><br></div><div style="font-family:arial;font-size:small"><br></div><div style="font-family:arial;font-size:small"><br></div><div style="font-family:arial;font-size:small">following is mentioned in the original thread, but should help other googlers:</div><div style="font-family:arial;font-size:small"><br></div><div style="font-family:arial;font-size:small"><br></div><div style="font-family:arial;font-size:small">ovirt-hosted-engine-setup.log (first attempt):</div><div style="font-family:arial;font-size:small"><br></div><div><div><font face="arial">2014-12-23 22:04:38 DEBUG otopi.plugins.otopi.services.rhel plugin.execute:861 execute-output: (&#39;/sbin/service&#39;, &#39;vdsmd&#39;, &#39;start&#39;) stdout:</font></div><div><font face="arial">Starting multipathd daemon: [  OK  ]</font></div><div><font face="arial">Starting rpcbind: [  OK  ]</font></div><div><font face="arial">Starting ntpd: [  OK  ]</font></div><div><font face="arial">Loading the softdog kernel module: [  OK  ]</font></div><div><font face="arial">Starting wdmd: [  OK  ]</font></div><div><font face="arial">Starting sanlock: [  OK  ]</font></div><div><font face="arial">supervdsm start[  OK  ]</font></div><div><font face="arial">Starting iscsid: [  OK  ]</font></div><div><font face="arial">[  OK  ]</font></div><div><font face="arial">vdsm: Running mkdirs</font></div><div><font face="arial">vdsm: Running configure_coredump</font></div><div><font face="arial">vdsm: Running configure_vdsm_logs</font></div><div><font face="arial">vdsm: Running run_init_hooks</font></div><div><font face="arial">vdsm: Running check_is_configured</font></div><div><font face="arial">libvirt is already configured for vdsm</font></div><div><font face="arial">vdsm: Running validate_configuration</font></div><div><font face="arial">SUCCESS: ssl configured to true. No conflicts</font></div><div><font face="arial">vdsm: Running prepare_transient_repository</font></div><div><font face="arial">vdsm: Running syslog_available</font></div><div><font face="arial">vdsm: Running nwfilter</font></div><div><font face="arial">vdsm: Running dummybr</font></div><div><font face="arial">vdsm: Running load_needed_modules</font></div><div><font face="arial">vdsm: Running tune_system</font></div><div><font face="arial">vdsm: Running test_space</font></div><div><font face="arial">vdsm: Running test_lo</font></div><div><font face="arial">vdsm: Running unified_network_persistence_upgrade</font></div><div><font face="arial">vdsm: stopped during execute unified_network_persistence_upgrade task (task returned with error code 1).</font></div><div><font face="arial">vdsm start[FAILED]</font></div><div><font face="arial"><br></font></div><div><font face="arial">2014-12-23 22:04:38 DEBUG otopi.plugins.otopi.services.rhel plugin.execute:866 execute-output: (&#39;/sbin/service&#39;, &#39;vdsmd&#39;, &#39;start&#39;) stderr:</font></div><div><font face="arial">initctl: Job is already running: libvirtd</font></div><div><font face="arial">libvirt: Network Filter Driver error : Network filter not found: no nwfilter with matching name &#39;vdsm-no-mac-spoofing&#39;</font></div><div><font face="arial"><br></font></div><div><font face="arial">2014-12-23 22:04:38 DEBUG otopi.context context._executeMethod:152 method exception</font></div><div><font face="arial">Traceback (most recent call last):</font></div><div><font face="arial">  File &quot;/usr/lib/python2.6/site-packages/otopi/context.py&quot;, line 142, in _executeMethod</font></div><div><font face="arial">    method[&#39;method&#39;]()</font></div><div><font face="arial">  File &quot;/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/ovirt-hosted-engine-setup/system/vdsmenv.py&quot;, line 155, in _late_setup</font></div><div><font face="arial">    state=True</font></div><div><font face="arial">  File &quot;/usr/share/otopi/plugins/otopi/services/rhel.py&quot;, line 188, in state</font></div><div><font face="arial">    &#39;start&#39; if state else &#39;stop&#39;</font></div><div><font face="arial">  File &quot;/usr/share/otopi/plugins/otopi/services/rhel.py&quot;, line 96, in _executeServiceCommand</font></div><div><font face="arial">    raiseOnError=raiseOnError</font></div><div><font face="arial">  File &quot;/usr/lib/python2.6/site-packages/otopi/plugin.py&quot;, line 871, in execute</font></div><div><font face="arial">    command=args[0],</font></div><div><font face="arial">RuntimeError: Command &#39;/sbin/service&#39; failed to execute</font></div><div><font face="arial">2014-12-23 22:04:38 ERROR otopi.context context._executeMethod:161 Failed to execute stage &#39;Environment setup&#39;: Command &#39;/sbin/service&#39; failed to execute</font></div></div><div style="font-family:arial;font-size:small"><br></div><div style="font-family:arial;font-size:small"><br></div><div style="font-family:arial;font-size:small">ovirt-hosted-engine-setup.log (further attempts):<br></div><div style="font-family:arial;font-size:small"><br></div><div><div><font face="arial">2014-12-23 22:42:40 DEBUG otopi.plugins.otopi.services.rhel plugin.execute:861 execute-output: (&#39;/sbin/service&#39;, &#39;vdsmd&#39;, &#39;start&#39;) stdout:</font></div><div><font face="arial">vdsm: Running mkdirs</font></div><div><font face="arial">vdsm: Running configure_coredump</font></div><div><font face="arial">vdsm: Running configure_vdsm_logs</font></div><div><font face="arial">vdsm: Running run_init_hooks</font></div><div><font face="arial">vdsm: Running check_is_configured</font></div><div><font face="arial">libvirt is already configured for vdsm</font></div><div><font face="arial">vdsm: Running validate_configuration</font></div><div><font face="arial">SUCCESS: ssl configured to true. No conflicts</font></div><div><font face="arial">vdsm: Running prepare_transient_repository</font></div><div><font face="arial">vdsm: Running syslog_available</font></div><div><font face="arial">vdsm: Running nwfilter</font></div><div><font face="arial">vdsm: Running dummybr</font></div><div><font face="arial">vdsm: Running load_needed_modules</font></div><div><font face="arial">vdsm: Running tune_system</font></div><div><font face="arial">vdsm: Running test_space</font></div><div><font face="arial">vdsm: Running test_lo</font></div><div><font face="arial">vdsm: Running unified_network_persistence_upgrade</font></div><div><font face="arial">vdsm: stopped during execute unified_network_persistence_upgrade task (task returned with error code 1).</font></div><div><font face="arial">vdsm start[FAILED]</font></div><div><font face="arial"><br></font></div><div><font face="arial">2014-12-23 22:42:40 DEBUG otopi.plugins.otopi.services.rhel plugin.execute:866 execute-output: (&#39;/sbin/service&#39;, &#39;vdsmd&#39;, &#39;start&#39;) stderr:</font></div><div><font face="arial">initctl: Job is already running: libvirtd</font></div><div><font face="arial"><br></font></div><div><font face="arial">2014-12-23 22:42:40 DEBUG otopi.context context._executeMethod:152 method exception</font></div><div><font face="arial">Traceback (most recent call last):</font></div><div><font face="arial">  File &quot;/usr/lib/python2.6/site-packages/otopi/context.py&quot;, line 142, in _executeMethod</font></div><div><font face="arial">    method[&#39;method&#39;]()</font></div><div><font face="arial">  File &quot;/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/ovirt-hosted-engine-setup/system/vdsmenv.py&quot;, line 155, in _late_setup</font></div><div><font face="arial">    state=True</font></div><div><font face="arial">  File &quot;/usr/share/otopi/plugins/otopi/services/rhel.py&quot;, line 188, in state</font></div><div><font face="arial">    &#39;start&#39; if state else &#39;stop&#39;</font></div><div><font face="arial">  File &quot;/usr/share/otopi/plugins/otopi/services/rhel.py&quot;, line 96, in _executeServiceCommand</font></div><div><font face="arial">    raiseOnError=raiseOnError</font></div><div><font face="arial">  File &quot;/usr/lib/python2.6/site-packages/otopi/plugin.py&quot;, line 871, in execute</font></div><div><font face="arial">    command=args[0],</font></div><div><font face="arial">RuntimeError: Command &#39;/sbin/service&#39; failed to execute</font></div></div><div><font face="arial">2014-12-23 22:42:40 ERROR otopi.context context._executeMethod:161 Failed to execute stage &#39;Environment setup&#39;: Command &#39;/sbin/service&#39; failed to execute</font><br></div><p>----</p><p>Andreas</p></div></div></div></div></div></div>
</div>
</blockquote></div><br></div></div>