Bug 2107094 - Hosted Engine deployment fails with error 'he_admin_username' is undefined
Summary: Hosted Engine deployment fails with error 'he_admin_username' is undefined
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: cockpit-ovirt
Version: 4.4.10
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ovirt-4.5.1
: 4.5.1
Assignee: Ritesh Chikatwar
QA Contact: Vinayak Papnoi
URL:
Whiteboard:
Depends On:
Blocks: 2106419 2107468
TreeView+ depends on / blocked
 
Reported: 2022-07-14 10:27 UTC by Gobinda Das
Modified: 2022-07-19 09:29 UTC (History)
15 users (show)

Fixed In Version: cockpit-ovirt-0.16.1-2.el8ev
Doc Type: No Doc Update
Doc Text:
Clone Of: 2106419
Environment:
Last Closed: 2022-07-19 09:29:34 UTC
oVirt Team: Integration
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github oVirt cockpit-ovirt pull 27 0 None Merged Update cockpit to match new path to ansible code 2022-07-14 10:40:52 UTC
Github oVirt cockpit-ovirt pull 28 0 None Merged he: Deployment was failing because of undefine ansible variable 2022-07-14 12:47:34 UTC
Red Hat Issue Tracker RHV-47689 0 None None None 2022-07-14 10:29:27 UTC
Red Hat Product Errata RHBA-2022:5601 0 None None None 2022-07-19 09:29:42 UTC

Description Gobinda Das 2022-07-14 10:27:52 UTC
Description of problem:
-----------------------

While deploying hosted engine using the web console, after clicking 'Finish Deployment' the deployment fails with the following error message:

[ ERROR ] fatal: [localhost]: FAILED! => {"msg": "The field 'environment' has an invalid value, which includes an undefined variable. The error was: 'he_admin_username' is undefined\n\nThe error appears to be in '/usr/share/ansible/collections/ansible_collections/ovirt/ovirt/roles/hosted_engine_setup/tasks/auth_sso.yml': line 2, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n---\n- name: Obtain SSO token using username/password credentials\n ^ here\n"}


Version-Release number of selected component (if applicable):
-------------------------------------------------------------

RHVH-4.5-20220712.0-RHVH-x86_64-dvd1.iso
rhvm-appliance-4.5-20220603.1.el8ev.x86_64.rpm


How reproducible:
-----------------

1/1


Steps to Reproduce:
-------------------

1. Install RHVH image
2. Configure glusterfs storage using web console
3. Deploy Hosted Engine using web console

Actual results:
---------------

Hosted Engine deployment fails with the error mentioned above.


Expected results:
-----------------

Hosted Engine deployment must succeed


Additional info:

--- Additional comment from RHEL Program Management on 2022-07-12 16:25:42 UTC ---

This bug is automatically being proposed for a RHHI-V 1.8.z update at Red Hat Hyperconverged Infrastructure for Virtualization product, by setting the release flag 'rhiv‑1.8.z' to '?'.

--- Additional comment from Ritesh Chikatwar on 2022-07-14 06:54:41 UTC ---

@vpapnoi 

we have a workaround for this you can use this for your testing. So that you are unblocked.

Meanwhile, I will see how I can address this issue.

ssh to host 
edit the file /usr/share/ansible/collections/ansible_collections/ovirt/ovirt/roles/hosted_engine_setup/defaults/main.yml

add he_admin_username: admin@internal

Thanks 
Regrads

--- Additional comment from RHEL Program Management on 2022-07-14 07:08:07 UTC ---

This bug report has Keywords: Regression or TestBlocker.

Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release.

Please resolve ASAP.

Comment 5 Vinayak Papnoi 2022-07-18 10:08:10 UTC
Based on Bug 2106419 , moving this bug to VERIFIED.

Comment 7 errata-xmlrpc 2022-07-19 09:29:34 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 (RHV RHEL Host (ovirt-host) [ovirt-4.5.1-1] update), 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/RHBA-2022:5601


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