[ovirt-users] Installing self-hosted-engine via SSH, without screen

Martin Sivak msivak at redhat.com
Wed Apr 6 10:01:50 UTC 2016


> tty check was added for fixing
> https://bugzilla.redhat.com/show_bug.cgi?id=1105249 "Need warning message,
> that appear when you run hosted-engine --deploy via ssh without terminal
> mode"

We have a bad habit of asking the user and then stopping the deploy
when we get No. I think we should allow the admin to exercise his
judgment too for some questions.

> note that this also mean that no interaction will work, everything must be
> configured by provided answer file.

This is the idea. We really should record every value in the answer file.

Martin

On Wed, Apr 6, 2016 at 11:36 AM, Sandro Bonazzola <sbonazzo at redhat.com> wrote:
>
>
> On Wed, Apr 6, 2016 at 11:28 AM, Yaniv Kaul <ykaul at redhat.com> wrote:
>>
>>
>>
>> On Tue, Apr 5, 2016 at 10:10 AM, Yedidyah Bar David <didi at redhat.com>
>> wrote:
>>>
>>> On Tue, Apr 5, 2016 at 10:03 AM, Yaniv Kaul <ykaul at 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
>>
>> 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
>>
>
> please open a RFE for skipping tty check.
> tty check was added for fixing
> https://bugzilla.redhat.com/show_bug.cgi?id=1105249 "Need warning message,
> that appear when you run hosted-engine --deploy via ssh without terminal
> mode"
> note that this also mean that no interaction will work, everything must be
> configured by provided answer file.
>
>
>>
>>
>> (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 at ovirt.org
>>> > http://lists.ovirt.org/mailman/listinfo/users
>>> >
>>>
>>>
>>>
>>> --
>>> Didi
>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at 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 at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>



More information about the Users mailing list