<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've a public IP configured on this server (since it'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':</div><div class="gmail_extra"><div style="font-family:arial"> ipv4addr, prefix = addr['address'].split('/')</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">{'address': '192.168.0.99',</div><div class="gmail_extra"> 'family': 'inet',</div><div class="gmail_extra"> 'flags': frozenset(['permanent']),</div><div class="gmail_extra"> 'index': 2,</div><div class="gmail_extra"> 'label': 'eth0',</div><div class="gmail_extra"> 'prefixlen': 32,</div><div class="gmail_extra"> 'scope': 'universe'}</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've no clue why there's no "/32" at the end, but that'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="peer 192.168.0.1"</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['family'] == 'inet':</font></div><div style><font face="arial"> ipv4addrs.append(addr['address'])</font></div><div style><font face="arial"> if 'secondary' not in addr['flags']:</font></div><div style><font face="arial">- ipv4addr, prefix = addr['address'].split('/')</font></div><div style><font face="arial">+ """Assume /32 if no prefix was found"""</font></div><div style><font face="arial">+ if addr['address'].find('/') == -1:</font></div><div style><font face="arial">+ ipv4addr = addr['address']</font></div><div style><font face="arial">+ prefix = "32"</font></div><div style><font face="arial">+ else:</font></div><div style><font face="arial">+ ipv4addr, prefix = addr['address'].split('/')</font></div><div style><font face="arial"> ipv4netmask = prefix2netmask(addr['prefixlen'])</font></div><div style><font face="arial"> else:</font></div><div style><font face="arial"> ipv6addrs.append(addr['address'])</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' 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"><<a href="mailto:andreas@allaboutapps.at" target="_blank">andreas@allaboutapps.at</a>></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'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'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 'Environment setup': Command '/sbin/service' failed to execute</div><div>[ INFO ] Stage: Clean up</div><div>[ INFO ] Generating answer file '/etc/ovirt-hosted-engine/answers.conf'</div><div>[ INFO ] Answer file '/etc/ovirt-hosted-engine/answers.conf' 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'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': 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: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> 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;: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN
link/ether 62:e5:28:13:9d:ba brd ff:ff:ff:ff:ff:ff
5: bond0: <BROADCAST,MULTICAST,MASTER> 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: 'net'</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 "/usr/share/vdsm/vdsm-restore-net-config", line 137, in <module></div><div> restore()</div><div> File "/usr/share/vdsm/vdsm-restore-net-config", line 123, in restore</div><div> unified_restoration()</div><div> File "/usr/share/vdsm/vdsm-restore-net-config", line 57, in unified_restoration</div><div> _inRollback=True)</div><div> File "/usr/share/vdsm/network/api.py", line 616, in setupNetworks</div><div> netinfo._libvirtNets2vdsm(libvirt_nets)))</div><div> File "/usr/lib/python2.6/site-packages/vdsm/netinfo.py", line 822, in get</div><div> d['nics'][<a href="http://dev.name" target="_blank">dev.name</a>] = _nicinfo(dev, paddr, ipaddrs)</div><div> File "/usr/lib/python2.6/site-packages/vdsm/netinfo.py", line 653, in _nicinfo</div><div> info = _devinfo(link, ipaddrs)</div><div> File "/usr/lib/python2.6/site-packages/vdsm/netinfo.py", 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 "/usr/lib/python2.6/site-packages/vdsm/netinfo.py", line 370, in getIpInfo</div><div> ipv4addr, prefix = addr['address'].split('/')</div><div>ValueError: need more than 1 value to unpack</div><div>Traceback (most recent call last):</div><div> File "/usr/bin/vdsm-tool", line 209, in main</div><div> return tool_command[cmd]["command"](*args)</div><div> File "/usr/lib/python2.6/site-packages/vdsm/tool/restore_nets.py", line 36, in restore_command</div><div> restore()</div><div> File "/usr/lib/python2.6/site-packages/vdsm/tool/restore_nets.py", line 45, in restore</div><div> raise EnvironmentError('Failed to restore the persisted networks')</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: ('/sbin/service', 'vdsmd', 'start') 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: ('/sbin/service', 'vdsmd', 'start') 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 'vdsm-no-mac-spoofing'</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 "/usr/lib/python2.6/site-packages/otopi/context.py", line 142, in _executeMethod</font></div><div><font face="arial"> method['method']()</font></div><div><font face="arial"> File "/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/ovirt-hosted-engine-setup/system/vdsmenv.py", line 155, in _late_setup</font></div><div><font face="arial"> state=True</font></div><div><font face="arial"> File "/usr/share/otopi/plugins/otopi/services/rhel.py", line 188, in state</font></div><div><font face="arial"> 'start' if state else 'stop'</font></div><div><font face="arial"> File "/usr/share/otopi/plugins/otopi/services/rhel.py", line 96, in _executeServiceCommand</font></div><div><font face="arial"> raiseOnError=raiseOnError</font></div><div><font face="arial"> File "/usr/lib/python2.6/site-packages/otopi/plugin.py", line 871, in execute</font></div><div><font face="arial"> command=args[0],</font></div><div><font face="arial">RuntimeError: Command '/sbin/service' 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 'Environment setup': Command '/sbin/service' 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: ('/sbin/service', 'vdsmd', 'start') 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: ('/sbin/service', 'vdsmd', 'start') 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 "/usr/lib/python2.6/site-packages/otopi/context.py", line 142, in _executeMethod</font></div><div><font face="arial"> method['method']()</font></div><div><font face="arial"> File "/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/ovirt-hosted-engine-setup/system/vdsmenv.py", line 155, in _late_setup</font></div><div><font face="arial"> state=True</font></div><div><font face="arial"> File "/usr/share/otopi/plugins/otopi/services/rhel.py", line 188, in state</font></div><div><font face="arial"> 'start' if state else 'stop'</font></div><div><font face="arial"> File "/usr/share/otopi/plugins/otopi/services/rhel.py", line 96, in _executeServiceCommand</font></div><div><font face="arial"> raiseOnError=raiseOnError</font></div><div><font face="arial"> File "/usr/lib/python2.6/site-packages/otopi/plugin.py", line 871, in execute</font></div><div><font face="arial"> command=args[0],</font></div><div><font face="arial">RuntimeError: Command '/sbin/service' 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 'Environment setup': Command '/sbin/service' failed to execute</font><br></div><p>----</p><p>Andreas</p></div></div></div></div></div></div>
</div>
</blockquote></div><br></div></div>