Bug 2106419

Summary: Hosted Engine deployment fails with error 'he_admin_username' is undefined
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Vinayak Papnoi <vpapnoi>
Component: rhhiAssignee: Gobinda Das <godas>
Status: CLOSED EOL QA Contact: Vinayak Papnoi <vpapnoi>
Severity: high Docs Contact:
Priority: unspecified    
Version: rhhiv-1.8CC: abhishku, godas, nyancey, vdas
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: cockpit-ovirt-0.16.1-2.el8ev Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2107094 (view as bug list) Environment:
Last Closed: 2023-12-15 11:16:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2107094, 2107468    
Bug Blocks:    

Description Vinayak Papnoi 2022-07-12 16:25:37 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:

Comment 2 Ritesh Chikatwar 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

Comment 4 Vinayak Papnoi 2022-07-15 09:19:36 UTC
@godas 

Hi, Can you please update the fixed-in-version?

Comment 5 Gobinda Das 2022-07-15 09:35:37 UTC
It's already there on dependent bug, but anyway I have added here too.

Comment 6 Vinayak Papnoi 2022-07-15 09:47:24 UTC
(In reply to Gobinda Das from comment #5)
> It's already there on dependent bug, but anyway I have added here too.

Thanks Gobinda.

With the build "cockpit-ovirt-dashboard-0.16.1-2.el8ev.noarch" the deployment is successful.
Hence, moving the bug to VERIFIED.