<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 2, 2018 at 11:25 AM,  <span dir="ltr">&lt;<a href="mailto:geomeid@mairie-saint-ouen.fr" target="_blank">geomeid@mairie-saint-ouen.fr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>
<div style="font-family:Verdana,Geneva,sans-serif">
<p>Hello,</p>
<p> </p>
<p>I am on CENTOS 7.4.1708</p>
<p> </p>
<p>I follow the documentation:</p>
<p>[root@srvvm42 ~]# yum install ovirt-hosted-engine-setup</p>
<p>[root@srvvm42 ~]# yum info ovirt-hosted-engine-setup<br>Loaded plugins: fastestmirror, package_upload, product-id, search-disabled-repos, subscription-manager<br>This system is not registered with an entitlement server. You can use subscription-manager to register.<br>Loading mirror speeds from cached hostfile<br> * base: <a href="http://centos.quelquesmots.fr" target="_blank">centos.quelquesmots.fr</a><br> * epel: <a href="http://mirrors.ircam.fr" target="_blank">mirrors.ircam.fr</a><br> * extras: <a href="http://centos.mirrors.ovh.net" target="_blank">centos.mirrors.ovh.net</a><br> * ovirt-4.2: <a href="http://ftp.nluug.nl" target="_blank">ftp.nluug.nl</a><br> * ovirt-4.2-epel: <a href="http://mirrors.ircam.fr" target="_blank">mirrors.ircam.fr</a><br> * updates: <a href="http://centos.mirrors.ovh.net" target="_blank">centos.mirrors.ovh.net</a><br>Installed Packages<br>Name        : ovirt-hosted-engine-setup<br>Arch        : noarch<br>Version     : 2.2.9<br>Release     : 1.el7.centos<br>Size        : 2.3 M<br>Repo        : installed<br>From repo   : ovirt-4.2<br>Summary     : oVirt Hosted Engine setup tool<br>URL         : <a href="http://www.ovirt.org" target="_blank">http://www.ovirt.org</a><br>License     : LGPLv2+<br>Description : Hosted Engine setup tool for oVirt project.<br><br><br>[root@srvvm42 ~]# hosted-engine --deploy<br><br></p>
<p>I encounter an issue when i try to install my hosted-engine. Here is the last line of the installation:</p>
<p>....</p>
<p>[ INFO  ] TASK [Clean /etc/hosts for the engine VM]<br>[ INFO  ] skipping: [localhost]<br>[ INFO  ] TASK [Copy /etc/hosts back to the engine VM]<br>[ INFO  ] skipping: [localhost]<br>[ INFO  ] TASK [Clean /etc/hosts on the host]<br>[ INFO  ] changed: [localhost]<br>[ INFO  ] TASK [Add an entry in /etc/hosts for the target VM]<br>[ INFO  ] changed: [localhost]<br>[ INFO  ] TASK [Start broker]<br>[ INFO  ] changed: [localhost]<br>[ INFO  ] TASK [Initialize lockspace volume]<br>[ INFO  ] changed: [localhost]<br>[ INFO  ] TASK [Start agent]<br>[ INFO  ] changed: [localhost]<br>[ INFO  ] TASK [Wait for the engine to come up on the target VM]<br>[ ERROR ] fatal: [localhost]: FAILED! =&gt; {&quot;msg&quot;: &quot;The conditional check &#39;health_result.rc == 0 and health_result.stdout|from_<wbr>json|json_query(&#39;*.\&quot;engine-<wbr>status\&quot;.\&quot;health\&quot;&#39;)|first==\<wbr>&quot;good\&quot;&#39; failed. The error was: error while evaluating conditional (health_result.rc == 0 and health_result.stdout|from_<wbr>json|json_query(&#39;*.\&quot;engine-<wbr>status\&quot;.\&quot;health\&quot;&#39;)|first==\<wbr>&quot;good\&quot;): No first item, sequence was empty.&quot;}<br>[ ERROR ] Failed to execute stage &#39;Closing up&#39;: Failed executing ansible-playbook<br></p></div></blockquote></div><br></div><div class="gmail_extra">Hi,</div><div class="gmail_extra">it&#39;s a kind of race condition consuming the output of hosted-engine --vm-status --json that, during service startup time, could appear not complete.</div><div class="gmail_extra">We tracked it here:</div><div class="gmail_extra"><a href="https://bugzilla.redhat.com/1540926">https://bugzilla.redhat.com/1540926</a><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">oVirt 4.2.2 rc3 will contain a fix for that.</div><div class="gmail_extra"><br></div><div class="gmail_extra">It failed really late so at the end your env should be already OK, maybe you can just have the bootstrap local VM as a leftover external VM in the engine but you could simply manually delete it.</div><div class="gmail_extra">I don&#39;t see other drawbacks.</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div></div>