Created attachment 1422945 [details] ovirt hosted engine setup log Description of problem: Ansible deploy of HE failed with error "Please specify host FQDN" when using an answer file Version-Release number of selected component (if applicable): ovirt-hosted-engine-setup-2.2.17-1.el7ev.noarch rhvm-appliance-4.2-20180410.0.el7.noarch How reproducible: 100% Steps to Reproduce: 1. Strat run ansible deploy by running the command: hosted-engine --deploy --config-append=/etc/ansible-ovirt/answers Actual results: get multiple times the following error: [ ERROR ] Host name is not valid: Please specify host FQDN Please provide the FQDN you would like to use for the engine appliance. Note: This will be the FQDN of the engine VM you are now going to launch, it should not point to the base host or to any other existing machine. Engine VM FQDN: []: Expected results: To be able to run with an answer file and take the fqdn from there Additional info: you can see the attached ovirt-hosted engine log file. This it looks like this issue related to the changes in bug#: https://bugzilla.redhat.com/show_bug.cgi?id=1560551
Please attach also the answerfile
Created attachment 1422955 [details] answer file
Try to change the header of the answerfile to: [environment:default] Does it help?
I started to deploy but it succeeds... so I investigate it and found out that because it's installed on rhvh-4.2.2.1-0.20180404.0 we have there ovirt-hosted-engine-setup-2.2.15-1.el7ev.noarch I'll try on different env and update.
(In reply to Ido Rosenzwig from comment #3) > Try to change the header of the answerfile to: [environment:default] > Does it help? It didn't help attached the new answer file with [environment:default] section first
Created attachment 1423141 [details] answer file with environment default section first
(In reply to Kobi Hakimi from comment #6) > Created attachment 1423141 [details] > answer file with environment default section first [environment:init] DIALOG/autoAcceptDefault=bool:True [environment:default] was correct, please keep it
In upstream CI test answer file template we are using: OVEHOSTED_NETWORK/fqdn=str:@HOSTEDENGINE@.@DOMAIN@ OVEHOSTED_VM/cloudinitInstanceDomainName=str:@DOMAIN@ OVEHOSTED_VM/cloudinitInstanceHostName=str:@HOSTEDENGINE@.@DOMAIN@ Can you please try explicitly setting all the three values?
(In reply to Simone Tiraboschi from comment #8) > In upstream CI test answer file template we are using: > > OVEHOSTED_NETWORK/fqdn=str:@HOSTEDENGINE@.@DOMAIN@ > OVEHOSTED_VM/cloudinitInstanceDomainName=str:@DOMAIN@ > OVEHOSTED_VM/cloudinitInstanceHostName=str:@HOSTEDENGINE@.@DOMAIN@ > > Can you please try explicitly setting all the three values? Thanks Simone!!! these three values resolved this issue.
closing since the problem has been solved.