<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 6, 2016 at 11:46 AM, Simone Tiraboschi <span dir="ltr">&lt;<a href="mailto:stirabos@redhat.com" target="_blank">stirabos@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"><span class="">On Wed, Apr 6, 2016 at 11:28 AM, Yaniv Kaul &lt;<a href="mailto:ykaul@redhat.com">ykaul@redhat.com</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Apr 5, 2016 at 10:10 AM, Yedidyah Bar David &lt;<a href="mailto:didi@redhat.com">didi@redhat.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; On Tue, Apr 5, 2016 at 10:03 AM, Yaniv Kaul &lt;<a href="mailto:ykaul@redhat.com">ykaul@redhat.com</a>&gt; wrote:<br>
&gt;&gt; &gt; Hi,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I&#39;m trying to install self hosted engine in an automated fashion (via<br>
&gt;&gt; &gt; Ansible).<br>
&gt;&gt; &gt; This:<br>
&gt;&gt; &gt; 1. Doesn&#39;t create a pseudo tty (Ansible is not doing that in its SSH)<br>
&gt;&gt; &gt; 2. Doesn&#39;t use screen<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; How can I still install hosted-engine? I seem to be failing around the<br>
&gt;&gt; &gt; initial checks done at [1].<br>
&gt;&gt; &gt; I&#39;ve tried various hacks (ssh to localhost, use &#39;-T&#39;, run &#39;screen&#39;<br>
&gt;&gt; &gt; locally)<br>
&gt;&gt; &gt; - none seem to have worked well. I&#39;ve noticed the config option, but not<br>
&gt;&gt; &gt; sure how to use it - OVEHOSTED_CORE/screenProceed<br>
&gt;&gt;<br>
&gt;&gt; You can try:<br>
&gt;&gt;<br>
&gt;&gt; hosted-engine --deploy<br>
&gt;&gt; --otopi-environment=&#39;OVEHOSTED_CORE/screenProceed:bool:True&#39;<br>
&gt;<br>
&gt;<br>
&gt; Still no go, I&#39;m running:<br>
&gt; hosted-engine --deploy<br>
&gt; --otopi-environment=&#39;OVEHOSTED_CORE/screenProceed=bool:True&#39;<br>
&gt; --config-append=/tmp/hosted-engine-answer-file.conf<br>
<br>
</span>Installing screen and simply running<br>
 screen hosted-engine --deploy<br>
--config-append=/tmp/hosted-engine-answer-file.conf<br>
is not enough?<br></blockquote><div><br></div><div>He&#39;s using ansible not ssh.</div><div><br></div><div><br></div><div> </div><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>
&gt; And getting:<br>
&gt;<br>
&gt; stdout: [ INFO  ] Stage: Initializing<br>
&gt; [ INFO  ] Generating a temporary VNC password.<br>
&gt; [ INFO  ] Stage: Environment setup<br>
&gt;           Configuration files: [&#39;/tmp/hosted-engine-answer-file.conf&#39;]<br>
&gt;           Log file:<br>
&gt; /var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-20160406050029-0syzjx.log<br>
&gt;           Version: otopi-1.4.1 (otopi-1.4.1-1.el7.centos)<br>
&gt; [ ERROR ] It has been detected that this program is executed through an SSH<br>
&gt; connection without pseudo-tty allocation. Please run again ssh adding -t<br>
&gt; option<br>
&gt; [WARNING] Aborted<br>
&gt; [ INFO  ] Stage: Clean up<br>
&gt; [ INFO  ] Generating answer file<br>
&gt; &#39;/var/lib/ovirt-hosted-engine-setup/answers/answers-20160406050029.conf&#39;<br>
&gt; [ INFO  ] Stage: Pre-termination<br>
&gt; [ INFO  ] Stage: Termination<br>
&gt; [ ERROR ] Hosted Engine deployment failed: this system is not reliable,<br>
&gt; please check the issue, fix and redeploy<br>
&gt;           Log file is located at<br>
&gt; /var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-20160406050029-0syzjx.log<br>
&gt;<br>
&gt;<br>
&gt; (While I suspect there&#39;s some way to cause Ansible to create the tty, it<br>
&gt; causes issues with sftp. While there&#39;s a way to move from sftp to scp, it<br>
&gt; then fails on copying files for some odd reason... so if there&#39;s a way to<br>
&gt; overcome this error in ovirt, that&#39;ll be great).<br>
&gt; Y.<br>
&gt;<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; TIA,<br>
&gt;&gt; &gt; Y.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; [1]<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; <a href="https://github.com/oVirt/ovirt-hosted-engine-setup/blob/e339fa94637df536865b92e4dc9a2075417b6257/src/plugins/ovirt-hosted-engine-setup/core/shell.py#L53" rel="noreferrer" target="_blank">https://github.com/oVirt/ovirt-hosted-engine-setup/blob/e339fa94637df536865b92e4dc9a2075417b6257/src/plugins/ovirt-hosted-engine-setup/core/shell.py#L53</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; Users mailing list<br>
&gt;&gt; &gt; <a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
&gt;&gt; &gt; <a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Didi<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
&gt; <a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
&gt;<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" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">Sandro Bonazzola<br>Better technology. Faster innovation. Powered by community collaboration.<br>See how it works at <a href="http://redhat.com" target="_blank">redhat.com</a><br></div></div></div></div>
</div></div>