<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 6, 2016 at 11:28 AM, Yaniv Kaul <span dir="ltr"><<a href="mailto:ykaul@redhat.com" target="_blank">ykaul@redhat.com</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"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Tue, Apr 5, 2016 at 10:10 AM, Yedidyah Bar David <span dir="ltr"><<a href="mailto:didi@redhat.com" target="_blank">didi@redhat.com</a>></span> wrote:<br></span><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><span>On Tue, Apr 5, 2016 at 10:03 AM, Yaniv Kaul <<a href="mailto:ykaul@redhat.com" target="_blank">ykaul@redhat.com</a>> wrote:<br>
> Hi,<br>
><br>
> I'm trying to install self hosted engine in an automated fashion (via<br>
> Ansible).<br>
> This:<br>
> 1. Doesn't create a pseudo tty (Ansible is not doing that in its SSH)<br>
> 2. Doesn't use screen<br>
><br>
> How can I still install hosted-engine? I seem to be failing around the<br>
> initial checks done at [1].<br>
> I've tried various hacks (ssh to localhost, use '-T', run 'screen' locally)<br>
> - none seem to have worked well. I've noticed the config option, but not<br>
> sure how to use it - OVEHOSTED_CORE/screenProceed<br>
<br>
</span>You can try:<br>
<br>
hosted-engine --deploy<br>
--otopi-environment='OVEHOSTED_CORE/screenProceed:bool:True'<br></blockquote><div><br></div></span><div>Still no go, I'm running:</div><div>hosted-engine --deploy --otopi-environment='OVEHOSTED_CORE/screenProceed=bool:True' --config-append=/tmp/hosted-engine-answer-file.conf</div><div><br></div><div>And getting:</div><div><br></div><div><div>stdout: [ INFO ] Stage: Initializing</div><div>[ INFO ] Generating a temporary VNC password.</div><div>[ INFO ] Stage: Environment setup</div><div> Configuration files: ['/tmp/hosted-engine-answer-file.conf']</div><div> Log file: /var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-20160406050029-0syzjx.log</div><div> Version: otopi-1.4.1 (otopi-1.4.1-1.el7.centos)</div><div>[ ERROR ] It has been detected that this program is executed through an SSH connection without pseudo-tty allocation. Please run again ssh adding -t option </div><div>[WARNING] Aborted</div><div>[ INFO ] Stage: Clean up</div><div>[ INFO ] Generating answer file '/var/lib/ovirt-hosted-engine-setup/answers/answers-20160406050029.conf'</div><div>[ INFO ] Stage: Pre-termination</div><div>[ INFO ] Stage: Termination</div><div>[ ERROR ] Hosted Engine deployment failed: this system is not reliable, please check the issue, fix and redeploy</div><div> Log file is located at /var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-20160406050029-0syzjx.log</div></div><div><br></div></div></div></div></blockquote><div><br></div><div>please open a RFE for skipping tty check.</div><div>tty check was added for fixing <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1105249">https://bugzilla.redhat.com/show_bug.cgi?id=1105249</a> "Need warning message, that appear when you run hosted-engine --deploy via ssh without terminal mode"</div><div>note that this also mean that no interaction will work, everything must be configured by provided answer file.</div><div><br></div><div> </div><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 class="gmail_extra"><div class="gmail_quote"><div></div><div><br></div><div>(While I suspect there's some way to cause Ansible to create the tty, it causes issues with sftp. While there's a way to move from sftp to scp, it then fails on copying files for some odd reason... so if there's a way to overcome this error in ovirt, that'll be great).</div><span class=""><font color="#888888"><div>Y.</div></font></span><span class=""><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<span><br>
><br>
> TIA,<br>
> Y.<br>
><br>
> [1]<br>
> <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>
><br>
</span>> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@ovirt.org" target="_blank">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>
><br>
<span><font color="#888888"><br>
<br>
<br>
--<br>
Didi<br>
</font></span></blockquote></span></div><br></div></div>
<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>
<br></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>