<div dir="ltr">The problem changed a little since I initially posted this to the list.  It is getting past the lockspace task now.  I posted again with the new situation but did it separate from this.  Simone has responded to that one and if you want I can add you to that loop.<div><br></div><div>Using the --noansible flag seems to cause it to fail even sooner.  It fails almost right off the bat, which is interesting to say the least.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 12, 2018 at 6:39 AM, Yedidyah Bar David <span dir="ltr">&lt;<a href="mailto:didi@redhat.com" target="_blank">didi@redhat.com</a>&gt;</span> wrote:<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">On Tue, Mar 6, 2018 at 6:42 PM, Kristian Petersen &lt;<a href="mailto:nesretep@chem.byu.edu">nesretep@chem.byu.edu</a>&gt; wrote:<br>
&gt; I am trying to setup Ovirt with a self hosted engine and NFS storage for<br>
&gt; said engine.  The storage appears to mounting OK, but when it gets to the<br>
&gt; point that it is initializing the lockspace it fails spectacularly and shows<br>
&gt; a Python traceback which I cleaned up and have included below:<br>
&gt;<br>
&gt; Traceback (most recent call last):<br>
&gt;   File &quot;/usr/lib64/python2.7/runpy.<wbr>py&quot;, line 162, in _run_module_as_main<br>
&gt;     &quot;__main__&quot;, fname, loader, pkg_name)<br>
&gt;   File &quot;/usr/lib64/python2.7/runpy.<wbr>py&quot;, line 72, in _run_code<br>
&gt;     exec code in run_globals<br>
&gt;   File<br>
&gt; &quot;/usr/lib/python2.7/site-<wbr>packages/ovirt_hosted_engine_<wbr>setup/reinitialize_lockspace.<wbr>py&quot;,<br>
&gt; line 30, in &lt;module&gt;<br>
&gt;     ha_cli.reset_lockspace(force)<br>
&gt;   File<br>
&gt; &quot;/usr/lib/python2.7/site-<wbr>packages/ovirt_hosted_engine_<wbr>ha/client/client.py&quot;,<br>
&gt; line 270, in reset_lockspace<br>
&gt;     stats = broker.get_stats_from_storage(<wbr>)<br>
&gt;   File<br>
&gt; &quot;/usr/lib/python2.7/site-<wbr>packages/ovirt_hosted_engine_<wbr>ha/lib/brokerlink.py&quot;,<br>
&gt; line 135, in get_stats_from_storage<br>
&gt;     result = self._proxy.get_stats()<br>
&gt;   File &quot;/usr/lib64/python2.7/<wbr>xmlrpclib.py&quot;, line 1233, in __call__<br>
&gt;     return self.__send(self.__name, args)<br>
&gt;   File &quot;/usr/lib64/python2.7/<wbr>xmlrpclib.py&quot;, line 1587, in __request<br>
&gt;     verbose=self.__verbose<br>
&gt;   File &quot;/usr/lib64/python2.7/<wbr>xmlrpclib.py&quot;, line 1273, in request<br>
&gt;     return self.single_request(host, handler, request_body, verbose)<br>
&gt;   File &quot;/usr/lib64/python2.7/<wbr>xmlrpclib.py&quot;, line 1301, in single_request<br>
&gt;     self.send_content(h, request_body)<br>
&gt;   File &quot;/usr/lib64/python2.7/<wbr>xmlrpclib.py&quot;, line 1448, in send_content<br>
&gt;     connection.endheaders(request_<wbr>body)<br>
&gt;   File &quot;/usr/lib64/python2.7/httplib.<wbr>py&quot;, line 1013, in endheaders<br>
&gt;     self._send_output(message_<wbr>body)<br>
&gt;   File &quot;/usr/lib64/python2.7/httplib.<wbr>py&quot;, line 864, in _send_output<br>
&gt;     self.send(msg)<br>
&gt;   File &quot;/usr/lib64/python2.7/httplib.<wbr>py&quot;, line 826, in send<br>
&gt;     self.connect()<br>
&gt;   File<br>
&gt; &quot;/usr/lib/python2.7/site-<wbr>packages/ovirt_hosted_engine_<wbr>ha/lib/unixrpc.py&quot;,<br>
&gt; line 52, in connect<br>
&gt;     self.sock.connect(base64.<wbr>b16decode(self.host))<br>
&gt;   File &quot;/usr/lib64/python2.7/socket.<wbr>py&quot;, line 224, in meth<br>
&gt;     return getattr(self._sock,name)(*<wbr>args)<br>
&gt; socket.error: [Errno 2] No such file or directory<br>
&gt;<br>
&gt; The messier ansible output is below:<br>
&gt; [ INFO  ] TASK [Initialize lockspace volume]<br>
&gt; [ ERROR ] fatal: [localhost]: FAILED! =&gt; {&quot;attempts&quot;: 5, &quot;changed&quot;: true,<br>
&gt; &quot;cmd&quot;: [&quot;hosted-engine&quot;, &quot;--reinitialize-lockspace&quot;, &quot;--force&quot;], &quot;<br>
&gt; delta&quot;: &quot;0:00:01.007879&quot;, &quot;end&quot;: &quot;2018-03-05 14:03:00.474295&quot;, &quot;msg&quot;:<br>
&gt; &quot;non-zero return code&quot;, &quot;rc&quot;: 1, &quot;start&quot;: &quot;2018-03-05 14:02:59.466416&quot;<br>
&gt; , &quot;stderr&quot;: &quot;Traceback (most recent call last):\n  File<br>
&gt; \&quot;/usr/lib64/python2.7/runpy.<wbr>py\&quot;, line 162, in _run_module_as_main\n<br>
&gt; \&quot;__main__\<br>
&gt; &quot;, fname, loader, pkg_name)\n  File \&quot;/usr/lib64/python2.7/runpy.<wbr>py\&quot;, line<br>
&gt; 72, in _run_code\n    exec code in run_globals\n  File \&quot;/usr/li<br>
&gt; b/python2.7/site-packages/<wbr>ovirt_hosted_engine_setup/<wbr>reinitialize_lockspace.py\&quot;,<br>
&gt; line 30, in &lt;module&gt;\n    ha_cli.reset_lockspace(force)\<wbr>n<br>
&gt; File<br>
&gt; \&quot;/usr/lib/python2.7/site-<wbr>packages/ovirt_hosted_engine_<wbr>ha/client/client.py\&quot;,<br>
&gt; line 270, in reset_lockspace\n    stats = broker.get_stat<br>
&gt; s_from_storage()\n  File<br>
&gt; \&quot;/usr/lib/python2.7/site-<wbr>packages/ovirt_hosted_engine_<wbr>ha/lib/brokerlink.py\&quot;,<br>
&gt; line 135, in get_stats_from_storage\<br>
&gt; n    result = self._proxy.get_stats()\n  File<br>
&gt; \&quot;/usr/lib64/python2.7/<wbr>xmlrpclib.py\&quot;, line 1233, in __call__\n    return<br>
&gt; self.__send(self.__n<br>
&gt; ame, args)\n  File \&quot;/usr/lib64/python2.7/<wbr>xmlrpclib.py\&quot;, line 1587, in<br>
&gt; __request\n    verbose=self.__verbose\n  File \&quot;/usr/lib64/python2.7<br>
&gt; /xmlrpclib.py\&quot;, line 1273, in request\n    return self.single_request(host,<br>
&gt; handler, request_body, verbose)\n  File \&quot;/usr/lib64/python2.7/<br>
&gt; xmlrpclib.py\&quot;, line 1301, in single_request\n    self.send_content(h,<br>
&gt; request_body)\n  File \&quot;/usr/lib64/python2.7/<wbr>xmlrpclib.py\&quot;, line 144<br>
&gt; 8, in send_content\n    connection.endheaders(request_<wbr>body)\n  File<br>
&gt; \&quot;/usr/lib64/python2.7/<wbr>httplib.py\&quot;, line 1013, in endheaders\n    self.<br>
&gt; _send_output(message_body)\n  File \&quot;/usr/lib64/python2.7/<wbr>httplib.py\&quot;, line<br>
&gt; 864, in _send_output\n    self.send(msg)\n  File \&quot;/usr/lib64/p<br>
&gt; ython2.7/httplib.py\&quot;, line 826, in send\n    self.connect()\n  File<br>
&gt; \&quot;/usr/lib/python2.7/site-<wbr>packages/ovirt_hosted_engine_<wbr>ha/lib/unixrpc.p<br>
&gt; y\&quot;, line 52, in connect\n<br>
&gt; self.sock.connect(base64.<wbr>b16decode(self.host))\n  File<br>
&gt; \&quot;/usr/lib64/python2.7/socket.<wbr>py\&quot;, line 224, in meth\n<br>
&gt;     return getattr(self._sock,name)(*<wbr>args)\nsocket.error: [Errno 2] No such<br>
&gt; file or directory&quot;, &quot;stderr_lines&quot;: [&quot;Traceback (most recent cal<br>
&gt; l last):&quot;, &quot;  File \&quot;/usr/lib64/python2.7/runpy.<wbr>py\&quot;, line 162, in<br>
&gt; _run_module_as_main&quot;, &quot;    \&quot;__main__\&quot;, fname, loader, pkg_name)&quot;, &quot;  Fi<br>
&gt; le \&quot;/usr/lib64/python2.7/runpy.<wbr>py\&quot;, line 72, in _run_code&quot;, &quot;    exec code<br>
&gt; in run_globals&quot;, &quot;  File \&quot;/usr/lib/python2.7/site-<wbr>packages/ovi<br>
&gt; rt_hosted_engine_setup/<wbr>reinitialize_lockspace.py\&quot;, line 30, in &lt;module&gt;&quot;, &quot;<br>
&gt; ha_cli.reset_lockspace(force)&quot;<wbr>, &quot;  File \&quot;/usr/lib/python2.7<br>
&gt; /site-packages/ovirt_hosted_<wbr>engine_ha/client/client.py\&quot;, line 270, in<br>
&gt; reset_lockspace&quot;, &quot;    stats = broker.get_stats_from_storage(<wbr>)&quot;, &quot;  F<br>
&gt; ile<br>
&gt; \&quot;/usr/lib/python2.7/site-<wbr>packages/ovirt_hosted_engine_<wbr>ha/lib/brokerlink.py\&quot;,<br>
&gt; line 135, in get_stats_from_storage&quot;, &quot;    result = self.<br>
&gt; _proxy.get_stats()&quot;, &quot;  File \&quot;/usr/lib64/python2.7/<wbr>xmlrpclib.py\&quot;, line<br>
&gt; 1233, in __call__&quot;, &quot;    return self.__send(self.__name, args)&quot;, &quot;<br>
&gt;  File \&quot;/usr/lib64/python2.7/<wbr>xmlrpclib.py\&quot;, line 1587, in __request&quot;, &quot;<br>
&gt; verbose=self.__verbose&quot;, &quot;  File \&quot;/usr/lib64/python2.7/<wbr>xmlrpcli<br>
&gt; b.py\&quot;, line 1273, in request&quot;, &quot;    return self.single_request(host,<br>
&gt; handler, request_body, verbose)&quot;, &quot;  File \&quot;/usr/lib64/python2.7/xmlrp<br>
&gt; clib.py\&quot;, line 1301, in single_request&quot;, &quot;    self.send_content(h,<br>
&gt; request_body)&quot;, &quot;  File \&quot;/usr/lib64/python2.7/<wbr>xmlrpclib.py\&quot;, line 1448<br>
&gt; , in send_content&quot;, &quot;    connection.endheaders(request_<wbr>body)&quot;, &quot;  File<br>
&gt; \&quot;/usr/lib64/python2.7/<wbr>httplib.py\&quot;, line 1013, in endheaders&quot;, &quot;<br>
&gt; self._send_output(message_<wbr>body)&quot;, &quot;  File<br>
&gt; \&quot;/usr/lib64/python2.7/<wbr>httplib.py\&quot;, line 864, in _send_output&quot;, &quot;<br>
&gt; self.send(msg)&quot;, &quot;  File \&quot;/<br>
&gt; usr/lib64/python2.7/httplib.<wbr>py\&quot;, line 826, in send&quot;, &quot;    self.connect()&quot;,<br>
&gt; &quot;  File \&quot;/usr/lib/python2.7/site-<wbr>packages/ovirt_hosted_engine_h<br>
&gt; a/lib/unixrpc.py\&quot;, line 52, in connect&quot;, &quot;<br>
&gt; self.sock.connect(base64.<wbr>b16decode(self.host))&quot;, &quot;  File<br>
&gt; \&quot;/usr/lib64/python2.7/socket.<wbr>py\&quot;,<br>
&gt; line 224, in meth&quot;, &quot;    return getattr(self._sock,name)(*<wbr>args)&quot;,<br>
&gt; &quot;socket.error: [Errno 2] No such file or directory&quot;], &quot;stdout&quot;: &quot;&quot;, &quot;stdou<br>
&gt; t_lines&quot;: []}<br>
&gt; [ ERROR ] Failed to execute stage &#39;Closing up&#39;: Failed executing<br>
&gt; ansible-playbook<br>
<br>
</div></div>Adding Simone.<br>
<br>
Can you please check/share these logs:<br>
<br>
/var/log/ovirt-hosted-engine-<wbr>setup/*<br>
/var/log/ovirt-hosted-engine-<wbr>ha/*<br>
/var/log/vdsm/*<br>
<span class=""><br>
&gt;<br>
&gt;<br>
&gt; I am a bit lost on how to proceed as I haven&#39;t implemented a self-hosted<br>
&gt; engine before and I haven&#39;t found anything that helps online so far.  Thanks<br>
&gt; in advance for any assistance.<br>
<br>
</span>The new ansible-based setup was enabled by default only very recently, so<br>
there is not much experience with it, nor can you find much online.<br>
<br>
You can try the old behavior by running:<br>
<br>
hosted-engine --deploy --noansible<br>
<br>
However, if the failure is due to some misconfiguration on the storage,<br>
such as wrong permissions or whatever, this won&#39;t help much.<br>
<br>
Best regards,<br>
<span class="HOEnZb"><font color="#888888">--<br>
Didi<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Kristian Petersen<div>System Administrator</div><div>BYU Dept. of Chemistry and Biochemistry</div></div></div></div></div></div></div>
</div>