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