On Wed, Apr 6, 2016 at 11:46 AM, Simone Tiraboschi <stira...@redhat.com> wrote:
> On Wed, Apr 6, 2016 at 11:28 AM, Yaniv Kaul <yk...@redhat.com> wrote: > > > > > > On Tue, Apr 5, 2016 at 10:10 AM, Yedidyah Bar David <d...@redhat.com> > wrote: > >> > >> On Tue, Apr 5, 2016 at 10:03 AM, Yaniv Kaul <yk...@redhat.com> wrote: > >> > Hi, > >> > > >> > I'm trying to install self hosted engine in an automated fashion (via > >> > Ansible). > >> > This: > >> > 1. Doesn't create a pseudo tty (Ansible is not doing that in its SSH) > >> > 2. Doesn't use screen > >> > > >> > How can I still install hosted-engine? I seem to be failing around the > >> > initial checks done at [1]. > >> > I've tried various hacks (ssh to localhost, use '-T', run 'screen' > >> > locally) > >> > - none seem to have worked well. I've noticed the config option, but > not > >> > sure how to use it - OVEHOSTED_CORE/screenProceed > >> > >> You can try: > >> > >> hosted-engine --deploy > >> --otopi-environment='OVEHOSTED_CORE/screenProceed:bool:True' > > > > > > Still no go, I'm running: > > hosted-engine --deploy > > --otopi-environment='OVEHOSTED_CORE/screenProceed=bool:True' > > --config-append=/tmp/hosted-engine-answer-file.conf > > Installing screen and simply running > screen hosted-engine --deploy > --config-append=/tmp/hosted-engine-answer-file.conf > is not enough? > He's using ansible not ssh. > > > And getting: > > > > stdout: [ INFO ] Stage: Initializing > > [ INFO ] Generating a temporary VNC password. > > [ INFO ] Stage: Environment setup > > Configuration files: ['/tmp/hosted-engine-answer-file.conf'] > > Log file: > > > /var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-20160406050029-0syzjx.log > > Version: otopi-1.4.1 (otopi-1.4.1-1.el7.centos) > > [ 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 > > [WARNING] Aborted > > [ INFO ] Stage: Clean up > > [ INFO ] Generating answer file > > '/var/lib/ovirt-hosted-engine-setup/answers/answers-20160406050029.conf' > > [ INFO ] Stage: Pre-termination > > [ INFO ] Stage: Termination > > [ ERROR ] Hosted Engine deployment failed: this system is not reliable, > > please check the issue, fix and redeploy > > Log file is located at > > > /var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-20160406050029-0syzjx.log > > > > > > (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). > > Y. > > > > > >> > >> > >> > > >> > TIA, > >> > Y. > >> > > >> > [1] > >> > > >> > > https://github.com/oVirt/ovirt-hosted-engine-setup/blob/e339fa94637df536865b92e4dc9a2075417b6257/src/plugins/ovirt-hosted-engine-setup/core/shell.py#L53 > >> > > >> > _______________________________________________ > >> > Users mailing list > >> > Users@ovirt.org > >> > http://lists.ovirt.org/mailman/listinfo/users > >> > > >> > >> > >> > >> -- > >> Didi > > > > > > > > _______________________________________________ > > Users mailing list > > Users@ovirt.org > > http://lists.ovirt.org/mailman/listinfo/users > > > _______________________________________________ > Users mailing list > Users@ovirt.org > http://lists.ovirt.org/mailman/listinfo/users > -- Sandro Bonazzola Better technology. Faster innovation. Powered by community collaboration. See how it works at redhat.com
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users