Bug 1698811

Summary: Wrong error when missing he_ansible_host_name parameter
Product: [oVirt] ovirt-ansible-collection Reporter: Liran Rotenberg <lrotenbe>
Component: hosted-engine-setupAssignee: Asaf Rachmani <arachman>
Status: CLOSED EOL QA Contact: Nikolai Sednev <nsednev>
Severity: low Docs Contact: Tahlia Richardson <trichard>
Priority: medium    
Version: unspecifiedCC: bugs
Target Milestone: ---Flags: sbonazzo: ovirt-4.5?
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-04-20 14:17:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Integration RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
remote ansible log from alma04 none

Description Liran Rotenberg 2019-04-11 08:54:44 UTC
Description of problem:
Deploying on a remote host requires 
"he_ansible_host_name" parameter set in the json file.
Without it, the user will get a error regarding to connection(failed to ssh or sudo: a password is required).
These errors are unrelated to the real problem - the missing parameter.

Version-Release number of selected component (if applicable):
ovirt-ansible-hosted-engine-setup-1.0.15-1.el7ev.noarch

How reproducible:
100%

Steps to Reproduce:
1. Deploy HE using the ansible role, missing he_ansible_host_name parameter in the json file.
2. Check the error/s given.

Actual results:
Errors are shown as:
fatal: [ocelot05.qa.lab.tlv.redhat.com -> compute-ge-he-6.qa.lab.tlv.redhat.com]: FAILED! => {"changed": false, "elapsed": 192, "msg": "timed out waiting for ping module test success: Failed to connect to the host via ssh: ssh: connect to host compute-ge-he-6.qa.lab.tlv.redhat.com port 22: Connection timed out"}

And:
fatal: [ocelot05.qa.lab.tlv.redhat.com -> localhost]: FAILED! => {"changed": false, "module_stderr": "sudo: a password is required\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}

Expected results:
Error regarding the missing parameter he_ansible_host_name.

Comment 1 Sandro Bonazzola 2019-07-30 10:20:45 UTC
Moved out to 4.4 being low severity

Comment 3 Sandro Bonazzola 2020-10-29 08:48:01 UTC
Liran, does this happen again in 4.4?

Comment 4 Liran Rotenberg 2020-10-29 10:25:23 UTC
No idea, since I didn't deployed HE for a long time. Better to ask QE.

Comment 7 Nikolai Sednev 2021-06-07 13:46:47 UTC
Created attachment 1789223 [details]
remote ansible log from alma04

Comment 10 Sandro Bonazzola 2022-04-20 14:17:25 UTC
This is an automated message.
This Bugzilla report has been opened on a version which is not maintained anymore (4.3).
Please check if this bug is still relevant in oVirt 4.5.0 and reopen if still an issue.