Bug 1383389 - Self-hosted failed on ansible:: "It has been detected that this program is executed through an SSH connection without pseudo-tty allocation. Please run again ssh adding -t option"
Summary: Self-hosted failed on ansible:: "It has been detected that this program is ex...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Quickstart Cloud Installer
Classification: Red Hat
Component: Installation - RHEV
Version: 1.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 1.1
Assignee: Fabian von Feilitzsch
QA Contact: Tasos Papaioannou
Dan Macpherson
URL:
Whiteboard:
: 1383486 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-10 14:03 UTC by Antonin Pagac
Modified: 2017-02-28 01:40 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-02-28 01:40:00 UTC
Target Upstream Version:


Attachments (Terms of Use)
ansible log (7.72 KB, text/plain)
2016-10-10 14:03 UTC, Antonin Pagac
no flags Details
sudoers from hypervisor1 (3.84 KB, text/plain)
2016-10-11 09:23 UTC, Antonin Pagac
no flags Details
sudoers from hypervisor2 (3.82 KB, text/plain)
2016-10-11 09:23 UTC, Antonin Pagac
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2017:0335 0 normal SHIPPED_LIVE Red Hat Quickstart Installer 1.1 2017-02-28 06:36:13 UTC

Description Antonin Pagac 2016-10-10 14:03:44 UTC
Created attachment 1208881 [details]
ansible log

Description of problem:
Self-hosted deployment with two hypervisors failed with ansible error. See attachment for ansible log file. The error:

'fatal: [hypervisor1.example.com]: FAILED! => {"ansible_job_id": "144596436505.13812", "changed": true, "cmd": "hosted-engine --deploy --config-append=/etc/qci//answers", "delta": "0:00:00.683397", "end": "2016-10-10 13:35:26.790913", "failed": true, "finished": 1, "rc": 1, "start": "2016-10-10 13:35:26.107516", "stderr": "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/lib/storage_backends.py:15: DeprecationWarning: vdscli uses xmlrpc. since ovirt 3.6 xmlrpc is deprecated, please use vdsm.jsonrpcvdscli\n import vdsm.vdscli", "stdout": "[ INFO ] Stage: Initializing\n[ INFO ] Generating a temporary VNC password.\n[ INFO ] Stage: Environment setup\n During customization use CTRL-D to abort.\n[ 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 \n[WARNING] Aborted\n[ INFO ] Stage: Clean up\n[ INFO ] Generating answer file '/var/lib/ovirt-hosted-engine-setup/answers/answers-20161010133526.conf'\n[ INFO ] Stage: Pre-termination\n[ INFO ] Stage: Termination\n[ ERROR ] Hosted Engine deployment failed\n Log file is located at /var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-20161010133526-rz26qd.log", "stdout_lines": ["[ INFO ] Stage: Initializing", "[ INFO ] Generating a temporary VNC password.", "[ INFO ] Stage: Environment setup", " During customization use CTRL-D to abort.", "[ 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-20161010133526.conf'", "[ INFO ] Stage: Pre-termination", "[ INFO ] Stage: Termination", "[ ERROR ] Hosted Engine deployment failed", " Log file is located at /var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-20161010133526-rz26qd.log"], "warnings": []}'

Version-Release number of selected component (if applicable):
QCI-1.1-RHEL-7-20161007.t.0

How reproducible:
Happened to me once

Steps to Reproduce:
1. Start a deployment of RHV self-hosted with two hypervisors, OSE and CFME
2. After the content sync and hypervisor installs, the task fails
3.

Actual results:
RHV self-hosted fails to deploy

Expected results:
RHV self-hosted deploys

Additional info:

Comment 1 Fabian von Feilitzsch 2016-10-10 15:26:51 UTC
Do you have the /etc/sudoers file from that host?

Comment 2 Fabian von Feilitzsch 2016-10-10 19:49:31 UTC
*** Bug 1383486 has been marked as a duplicate of this bug. ***

Comment 3 Antonin Pagac 2016-10-11 09:23:15 UTC
Created attachment 1209046 [details]
sudoers from hypervisor1

Comment 4 Antonin Pagac 2016-10-11 09:23:46 UTC
Created attachment 1209047 [details]
sudoers from hypervisor2

Comment 5 Antonin Pagac 2016-10-11 09:24:36 UTC
Added sudoers files from both hypervisors.

Comment 7 Fabian von Feilitzsch 2016-10-12 14:20:26 UTC
Added answer to answer file for self-hosted setup which should make it skip TTY check 

https://github.com/fusor/ansible-ovirt/pull/2

Comment 8 John Matthews 2016-10-13 19:11:10 UTC
In 10/13 compose

Comment 9 Tasos Papaioannou 2016-11-02 18:18:10 UTC
Verified on QCI-1.1-RHEL-7-20161101.t.0.

Comment 12 errata-xmlrpc 2017-02-28 01:40:00 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2017:0335


Note You need to log in before you can comment on or make changes to this bug.