Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1667795

Summary: Error message "Validation for this host's FQDN failed" deploys in vm settings of Hosted engine Wizard
Product: Red Hat Enterprise Virtualization Manager Reporter: Wei Wang <weiwang>
Component: ovirt-hosted-engine-setupAssignee: Simone Tiraboschi <stirabos>
Status: CLOSED ERRATA QA Contact: Wei Wang <weiwang>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 4.3.0CC: cshao, huzhao, lsurette, mtessun, qiyuan, weiwang, yaniwang, ycui, yturgema
Target Milestone: ovirt-4.3.0Keywords: Regression, TestBlocker
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: cockpit-ovirt-0.12.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-05-08 12:32:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Node RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
vm_settings_wizard
none
Log file none

Description Wei Wang 2019-01-21 05:53:11 UTC
Created attachment 1522001 [details]
vm_settings_wizard

Description of problem:
Error message "Validation for this host's FQDN failed" deploys in vm settings of Hosted engine Wizard.
At advanced setting domain, "The resolved address doesn't resolve on the selected interface" displays below the "Host FQDN" item.

2019-01-21 09:50:53,476+0800 DEBUG ansible on_any args TASK: oVirt.hosted-engine-setup : Parse host address resolution kwargs is_conditional:False
2019-01-21 09:50:53,869+0800 DEBUG var changed: host "localhost" var "r_host_address" type "<class 'ansible.utils.unsafe_proxy.AnsibleUnsafeText'>" value: ""10.73.73.105""
2019-01-21 09:50:53,870+0800 INFO ansible ok {'status': 'OK', 'ansible_task': u'Parse host address resolution', 'ansible_host': u'localhost', 'ansible_playbook': u'/usr/share/ovirt-hosted-engine-setup/ansible/validate_hostnames.yml', 'ansible_type': 'task'}
2019-01-21 09:50:53,870+0800 DEBUG ansible on_any args <ansible.executor.task_result.TaskResult object at 0x7f02c33e36d0> kwargs
2019-01-21 09:50:54,241+0800 INFO ansible task start {'status': 'OK', 'ansible_task': u'oVirt.hosted-engine-setup : debug', 'ansible_playbook': u'/usr/share/ovirt-hosted-engine-setup/ansible/validate_hostnames.yml', 'ansible_type': 'task'}
2019-01-21 09:50:54,241+0800 DEBUG ansible on_any args TASK: oVirt.hosted-engine-setup : debug kwargs is_conditional:False
2019-01-21 09:50:54,634+0800 INFO ansible ok {'status': 'OK', 'ansible_task': u'', 'ansible_host': u'localhost', 'ansible_playbook': u'/usr/share/ovirt-hosted-engine-setup/ansible/validate_hostnames.yml', 'ansible_type': 'task'}
2019-01-21 09:50:54,634+0800 DEBUG ansible on_any args <ansible.executor.task_result.TaskResult object at 0x7f02c33bf810> kwargs
2019-01-21 09:50:55,012+0800 INFO ansible task start {'status': 'OK', 'ansible_task': u'oVirt.hosted-engine-setup : Ensure host address resolves locally', 'ansible_playbook': u'/usr/share/ovirt-hosted-engine-setup/ansible/validate_hostnames.yml', 'ansible_type': 'task'}
2019-01-21 09:50:55,013+0800 DEBUG ansible on_any args TASK: oVirt.hosted-engine-setup : Ensure host address resolves locally kwargs is_conditional:False
2019-01-21 09:50:55,381+0800 INFO ansible skipped {'status': 'SKIPPED', 'ansible_task': u'Ensure host address resolves locally', 'ansible_host': u'localhost', 'ansible_playbook': u'/usr/share/ovirt-hosted-engine-setup/ansible/validate_hostnames.yml', 'ansible_type': 'task'}
2019-01-21 09:50:55,381+0800 DEBUG ansible on_any args <ansible.executor.task_result.TaskResult object at 0x7f02c33bf7d0> kwargs
2019-01-21 09:50:55,763+0800 INFO ansible task start {'status': 'OK', 'ansible_task': u'oVirt.hosted-engine-setup : Get target address from selected interface (IPv4)', 'ansible_playbook': u'/usr/share/ovirt-hosted-engine-setup/ansible/validate_hostnames.yml', 'ansible_type': 'task'}
2019-01-21 09:50:55,763+0800 DEBUG ansible on_any args TASK: oVirt.hosted-engine-setup : Get target address from selected interface (IPv4) kwargs is_conditional:False
2019-01-21 09:50:56,312+0800 DEBUG var changed: host "localhost" var "target_address_v4" type "<type 'unicode'>" value: """"
2019-01-21 09:50:56,312+0800 INFO ansible ok {'status': 'OK', 'ansible_task': u'Get target address from selected interface (IPv4)', 'ansible_host': u'localhost', 'ansible_playbook': u'/usr/share/ovirt-hosted-engine-setup/ansible/validate_hostnames.yml', 'ansible_type': 'task'}
2019-01-21 09:50:56,312+0800 DEBUG ansible on_any args <ansible.executor.task_result.TaskResult object at 0x7f02c337cd10> kwargs
2019-01-21 09:50:56,680+0800 INFO ansible task start {'status': 'OK', 'ansible_task': u'oVirt.hosted-engine-setup : debug', 'ansible_playbook': u'/usr/share/ovirt-hosted-engine-setup/ansible/validate_hostnames.yml', 'ansible_type': 'task'}
2019-01-21 09:50:56,681+0800 DEBUG ansible on_any args TASK: oVirt.hosted-engine-setup : debug kwargs is_conditional:False
2019-01-21 09:50:57,053+0800 INFO ansible ok {'status': 'OK', 'ansible_task': u'', 'ansible_host': u'localhost', 'ansible_playbook': u'/usr/share/ovirt-hosted-engine-setup/ansible/validate_hostnames.yml', 'ansible_type': 'task'}
2019-01-21 09:50:57,053+0800 DEBUG ansible on_any args <ansible.executor.task_result.TaskResult object at 0x7f02c337cd90> kwargs
2019-01-21 09:50:57,422+0800 INFO ansible task start {'status': 'OK', 'ansible_task': u'oVirt.hosted-engine-setup : Get target address from selected interface (IPv6)', 'ansible_playbook': u'/usr/share/ovirt-hosted-engine-setup/ansible/validate_hostnames.yml', 'ansible_type': 'task'}
2019-01-21 09:50:57,422+0800 DEBUG ansible on_any args TASK: oVirt.hosted-engine-setup : Get target address from selected interface (IPv6) kwargs is_conditional:False
2019-01-21 09:50:58,121+0800 DEBUG var changed: host "localhost" var "target_address_v6_list" type "<type 'list'>" value: "[]"
2019-01-21 09:50:58,122+0800 INFO ansible ok {'status': 'OK', 'ansible_task': u'Get target address from selected interface (IPv6)', 'ansible_host': u'localhost', 'ansible_playbook': u'/usr/share/ovirt-hosted-engine-setup/ansible/validate_hostnames.yml', 'ansible_type': 'task'}
2019-01-21 09:50:58,122+0800 DEBUG ansible on_any args <ansible.executor.task_result.TaskResult object at 0x7f02c33bf750> kwargs
2019-01-21 09:50:58,671+0800 INFO ansible task start {'status': 'OK', 'ansible_task': u'oVirt.hosted-engine-setup : debug', 'ansible_playbook': u'/usr/share/ovirt-hosted-engine-setup/ansible/validate_hostnames.yml', 'ansible_type': 'task'}
2019-01-21 09:50:58,672+0800 DEBUG ansible on_any args TASK: oVirt.hosted-engine-setup : debug kwargs is_conditional:False
2019-01-21 09:50:59,232+0800 INFO ansible ok {'status': 'OK', 'ansible_task': u'', 'ansible_host': u'localhost', 'ansible_playbook': u'/usr/share/ovirt-hosted-engine-setup/ansible/validate_hostnames.yml', 'ansible_type': 'task'}
2019-01-21 09:50:59,232+0800 DEBUG ansible on_any args <ansible.executor.task_result.TaskResult object at 0x7f02c3dab910> kwargs
2019-01-21 09:50:59,683+0800 INFO ansible task start {'status': 'OK', 'ansible_task': u'oVirt.hosted-engine-setup : Check the resolved address resolves on the selected interface', 'ansible_playbook': u'/usr/share/ovirt-hosted-engine-setup/ansible/validate_hostnames.yml', 'ansible_type': 'task'}
2019-01-21 09:50:59,683+0800 DEBUG ansible on_any args TASK: oVirt.hosted-engine-setup : Check the resolved address resolves on the selected interface kwargs is_conditional:False
2019-01-21 09:51:00,235+0800 DEBUG var changed: host "localhost" var "ansible_play_hosts" type "<type 'list'>" value: "[]"
2019-01-21 09:51:00,235+0800 DEBUG var changed: host "localhost" var "play_hosts" type "<type 'list'>" value: "[]"
2019-01-21 09:51:00,235+0800 DEBUG var changed: host "localhost" var "ansible_play_batch" type "<type 'list'>" value: "[]"
2019-01-21 09:51:00,235+0800 ERROR ansible failed {'status': 'FAILED', 'ansible_type': 'task', 'ansible_task': u'Check the resolved address resolves on the selected interface', 'ansible_result': u'type: <type \'dict\'>\nstr: {\'msg\': u"The resolved address doesn\'t resolve on the selected interface\\n", \'changed\': False, \'_ansible_no_log\': False}', 'ansible_host': u'localhost', 'ansible_playbook': u'/usr/share/ovirt-hosted-engine-setup/ansible/validate_hostnames.yml'}

Check the log and code, we can see the variable target_address_v4 is """" and variable target_address_v6_list is []. So the root cause maybe since the set_fact model for getting IPv4 and IPv6 address has something wrong.

Version-Release number of selected component (if applicable):
RHVH-4.3-20190117.0-RHVH-x86_64-dvd1.iso
cockpit-176-4.el7.x86_64
cockpit-machines-ovirt-176-4.el7.noarch
cockpit-bridge-176-4.el7.x86_64
cockpit-storaged-176-4.el7.noarch
cockpit-ovirt-dashboard-0.12.0-1.el7ev.noarch
cockpit-dashboard-176-4.el7.x86_64
cockpit-system-176-4.el7.noarch
cockpit-ws-176-4.el7.x86_64
ovirt-hosted-engine-ha-2.3.0-1.el7ev.noarch
ovirt-hosted-engine-setup-2.3.2-1.el7ev.noarch
rhvm-appliance-4.3-20190115.0.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Clean install RHVH-4.3-20190117.0-RHVH-x86_64-dvd1.iso
2. Login to cockpit with root account
3. Go to Hosted-engine deployment page, click "start" button to start hosted engine deployment
4. Check the vm settings window of hosted engine wizard.

Actual results:
Error message "Validation for this host's FQDN failed" deploys in vm settings of Hosted engine Wizard

Expected results:
No error deploys in vm settings of Hosted engine Wizard, no matter using IPv4 and IPv6 network interface.


Additional info:
1. The issue occurs when only IPv4 enabled with interface
2. The issue occurs when IPv6 and IPv6 enabled with interface

Comment 1 Wei Wang 2019-01-21 05:54:23 UTC
Created attachment 1522002 [details]
Log file

Comment 2 Simone Tiraboschi 2019-01-21 10:44:39 UTC
(In reply to Wei Wang from comment #0)
> Check the log and code, we can see the variable target_address_v4 is """"
> and variable target_address_v6_list is []. So the root cause maybe since the
> set_fact model for getting IPv4 and IPv6 address has something wrong.

I fear it's still related to:
https://github.com/oVirt/ovirt-ansible-hosted-engine-setup/blob/master/defaults/main.yml#L65

Comment 3 Wei Wang 2019-01-28 06:36:20 UTC
est version:
RHVH-4.3-20190124.0-RHVH-x86_64-dvd1.iso
cockpit-176-4.el7.x86_64
cockpit-system-176-4.el7.noarch
cockpit-ws-176-4.el7.x86_64
cockpit-bridge-176-4.el7.x86_64
cockpit-storaged-176-4.el7.noarch
cockpit-ovirt-dashboard-0.12.1-1.el7ev.noarch
cockpit-machines-ovirt-176-4.el7.noarch
cockpit-dashboard-176-4.el7.x86_64
ovirt-hosted-engine-setup-2.3.2-1.el7ev.noarch
ovirt-hosted-engine-ha-2.3.1-1.el7ev.noarch

Test steps:
Same with steps in comment 0

Result:
No error deploys in vm settings of Hosted engine Wizard.

bug is fixed, move status to "VERIFIED"

Comment 5 errata-xmlrpc 2019-05-08 12:32:03 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-2019:1050