Installing self-hosted-engine via SSH, without screen

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 TIA, Y. [1] https://github.com/oVirt/ovirt-hosted-engine-setup/blob/e339fa94637df536865b...

On Tue, Apr 5, 2016 at 10:03 AM, Yaniv Kaul <ykaul@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'
TIA, Y.
[1] https://github.com/oVirt/ovirt-hosted-engine-setup/blob/e339fa94637df536865b...
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
-- Didi

On Tue, Apr 5, 2016 at 10:10 AM, Yedidyah Bar David <didi@redhat.com> wrote:
On Tue, Apr 5, 2016 at 10:03 AM, Yaniv Kaul <ykaul@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'
Sorry: --otopi-environment='OVEHOSTED_CORE/screenProceed=bool:True'
TIA, Y.
[1] https://github.com/oVirt/ovirt-hosted-engine-setup/blob/e339fa94637df536865b...
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
-- Didi
-- Didi

On Tue, Apr 5, 2016 at 10:10 AM, Yedidyah Bar David <didi@redhat.com> wrote:
On Tue, Apr 5, 2016 at 10:03 AM, Yaniv Kaul <ykaul@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 (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/e339fa94637df536865b...
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
-- Didi

On Wed, Apr 6, 2016 at 11:28 AM, Yaniv Kaul <ykaul@redhat.com> wrote:
On Tue, Apr 5, 2016 at 10:10 AM, Yedidyah Bar David <didi@redhat.com> wrote:
On Tue, Apr 5, 2016 at 10:03 AM, Yaniv Kaul <ykaul@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/e339fa94637df536865b...
_______________________________________________ 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
-- Sandro Bonazzola Better technology. Faster innovation. Powered by community collaboration. See how it works at redhat.com

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@redhat.com> wrote:
On Wed, Apr 6, 2016 at 11:28 AM, Yaniv Kaul <ykaul@redhat.com> wrote:
On Tue, Apr 5, 2016 at 10:10 AM, Yedidyah Bar David <didi@redhat.com> wrote:
On Tue, Apr 5, 2016 at 10:03 AM, Yaniv Kaul <ykaul@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/e339fa94637df536865b...
_______________________________________________ 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
-- 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

On Wed, Apr 6, 2016 at 11:28 AM, Yaniv Kaul <ykaul@redhat.com> wrote:
On Tue, Apr 5, 2016 at 10:10 AM, Yedidyah Bar David <didi@redhat.com> wrote:
On Tue, Apr 5, 2016 at 10:03 AM, Yaniv Kaul <ykaul@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?
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/e339fa94637df536865b...
_______________________________________________ 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

On Wed, Apr 6, 2016 at 11:46 AM, Simone Tiraboschi <stirabos@redhat.com> wrote:
On Wed, Apr 6, 2016 at 11:28 AM, Yaniv Kaul <ykaul@redhat.com> wrote:
On Tue, Apr 5, 2016 at 10:10 AM, Yedidyah Bar David <didi@redhat.com>
wrote:
On Tue, Apr 5, 2016 at 10:03 AM, Yaniv Kaul <ykaul@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/e339fa94637df536865b...
_______________________________________________ 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

On Wed, Apr 6, 2016 at 11:50 AM, Sandro Bonazzola <sbonazzo@redhat.com> wrote:
On Wed, Apr 6, 2016 at 11:46 AM, Simone Tiraboschi <stirabos@redhat.com> wrote:
On Wed, Apr 6, 2016 at 11:28 AM, Yaniv Kaul <ykaul@redhat.com> wrote:
On Tue, Apr 5, 2016 at 10:10 AM, Yedidyah Bar David <didi@redhat.com> wrote:
On Tue, Apr 5, 2016 at 10:03 AM, Yaniv Kaul <ykaul@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.
Indeed, I mean running screen hosted-engine --deploy instead of just hosted-engine --deploy from ansible
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/e339fa94637df536865b...
_______________________________________________ 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

On Wed, Apr 6, 2016 at 2:22 PM, Simone Tiraboschi <stirabos@redhat.com> wrote:
On Wed, Apr 6, 2016 at 11:50 AM, Sandro Bonazzola <sbonazzo@redhat.com> wrote:
On Wed, Apr 6, 2016 at 11:46 AM, Simone Tiraboschi <stirabos@redhat.com> wrote:
On Wed, Apr 6, 2016 at 11:28 AM, Yaniv Kaul <ykaul@redhat.com> wrote:
On Tue, Apr 5, 2016 at 10:10 AM, Yedidyah Bar David <didi@redhat.com> wrote:
On Tue, Apr 5, 2016 at 10:03 AM, Yaniv Kaul <ykaul@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.
Indeed, I mean running screen hosted-engine --deploy instead of just hosted-engine --deploy from ansible
It didn't. I tried various hacks: export TERM=xterm && ... screen -T xterm ... Played around with Ansible configuration... None worked. Y.
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/e339fa94637df536865b...
_______________________________________________ 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

On Wed, Apr 6, 2016 at 3:22 PM, Yaniv Kaul <ykaul@redhat.com> wrote:
On Wed, Apr 6, 2016 at 2:22 PM, Simone Tiraboschi <stirabos@redhat.com> wrote:
On Wed, Apr 6, 2016 at 11:50 AM, Sandro Bonazzola <sbonazzo@redhat.com> wrote:
On Wed, Apr 6, 2016 at 11:46 AM, Simone Tiraboschi <stirabos@redhat.com> wrote:
On Wed, Apr 6, 2016 at 11:28 AM, Yaniv Kaul <ykaul@redhat.com> wrote:
On Tue, Apr 5, 2016 at 10:10 AM, Yedidyah Bar David <didi@redhat.com> wrote:
On Tue, Apr 5, 2016 at 10:03 AM, Yaniv Kaul <ykaul@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.
Indeed, I mean running screen hosted-engine --deploy instead of just hosted-engine --deploy from ansible
It didn't. I tried various hacks: export TERM=xterm && ... screen -T xterm ...
Played around with Ansible configuration... None worked.
Perhaps use 'screen -d -m'? You'll then need other means to know when it finished. E.g. something like: screen -S hosted-engine-run -d -m sh -c 'hosted-engine --deploy other opts'; while screen -list | grep -q hosted-engine-run; do sleep 10; done
Y.
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/e339fa94637df536865b... > > _______________________________________________ > 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
-- Didi

On Wed, Apr 6, 2016 at 3:30 PM, Yedidyah Bar David <didi@redhat.com> wrote:
On Wed, Apr 6, 2016 at 3:22 PM, Yaniv Kaul <ykaul@redhat.com> wrote:
On Wed, Apr 6, 2016 at 2:22 PM, Simone Tiraboschi <stirabos@redhat.com> wrote:
On Wed, Apr 6, 2016 at 11:50 AM, Sandro Bonazzola <sbonazzo@redhat.com> wrote:
On Wed, Apr 6, 2016 at 11:46 AM, Simone Tiraboschi <stirabos@redhat.com> wrote:
On Wed, Apr 6, 2016 at 11:28 AM, Yaniv Kaul <ykaul@redhat.com> wrote:
On Tue, Apr 5, 2016 at 10:10 AM, Yedidyah Bar David <didi@redhat.com> wrote: > > On Tue, Apr 5, 2016 at 10:03 AM, Yaniv Kaul <ykaul@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.
Indeed, I mean running screen hosted-engine --deploy instead of just hosted-engine --deploy from ansible
It didn't. I tried various hacks: export TERM=xterm && ... screen -T xterm ...
Played around with Ansible configuration... None worked.
Perhaps use 'screen -d -m'?
You'll then need other means to know when it finished.
E.g. something like:
screen -S hosted-engine-run -d -m sh -c 'hosted-engine --deploy other opts'; while screen -list | grep -q hosted-engine-run; do sleep 10; done
Sorry, there is also 'screen -D -m'.
Y.
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/e339fa94637df536865b... > > > > _______________________________________________ > > 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
-- Didi
-- Didi

Hello! I have an oVirt Environment where one host is phisically in a different building than others hosts. Main building and remote building are connected using a WiFi link. The host on remote building runs a VM that use host local storage. The VM is pinned to the host to prevent any migration. Hosted engine VM never runs on this host. I need that this VM starts on this host even if the host restarts accidentally and the wifi link is down (aka "Cleaning lady unintentional DoS attack" ;-) ). There are a way to do this?

A standalone host with only the local storage in a separate location and no clustering... I would leave that host out of the oVirt setup, and keep it under simple libvirt control. Then it's a simple matter of setting the VM up using libvirt and running virsh autostart VMNAME to make sure it restarts on reboot. The engine manages the VMs, if it can't, then you can either do a dirty hack to bypass the engine and create a splitbrain between what the engine knows and what happens on the host, or ensure stable communication between the host and engine. On Wed, Apr 6, 2016 at 1:38 PM, Stefano Danzi <s.danzi@hawai.it> wrote:
Hello!
I have an oVirt Environment where one host is phisically in a different building than others hosts. Main building and remote building are connected using a WiFi link.
The host on remote building runs a VM that use host local storage. The VM is pinned to the host to prevent any migration. Hosted engine VM never runs on this host.
I need that this VM starts on this host even if the host restarts accidentally and the wifi link is down (aka "Cleaning lady unintentional DoS attack" ;-) ).
There are a way to do this?
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
participants (7)
-
Dan Yasny
-
Martin Sivak
-
Sandro Bonazzola
-
Simone Tiraboschi
-
Stefano Danzi
-
Yaniv Kaul
-
Yedidyah Bar David