Bug 2107063 - [HE] ansible-role is calling ovn-config without specifying the host FQDN
Summary: [HE] ansible-role is calling ovn-config without specifying the host FQDN
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-ansible-collection
Classification: oVirt
Component: hosted-engine-setup
Version: 2.0.3
Hardware: x86_64
OS: Linux
high
high
Target Milestone: ovirt-4.5.2
: ---
Assignee: eraviv
QA Contact: Michael Burman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-07-14 08:52 UTC by Michael Burman
Modified: 2022-08-30 08:47 UTC (History)
8 users (show)

Fixed In Version: ovirt-ansible-collection-2.2.1
Clone Of:
Environment:
Last Closed: 2022-08-30 08:47:42 UTC
oVirt Team: Network
Embargoed:
mperina: ovirt-4.5+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github oVirt ovirt-ansible-collection pull 563 0 None Merged he-setup: ovn should be configured with he_host_name 2022-07-20 08:13:08 UTC
Github oVirt ovirt-ansible-collection pull 568 0 None Merged he-setup: ovn should be configured with he_host_address 2022-08-03 12:12:45 UTC
Red Hat Issue Tracker RHV-47688 0 None None None 2022-07-14 08:53:24 UTC

Description Michael Burman 2022-07-14 08:52:07 UTC
Description of problem:
[HE] ansible-role is calling ovn-config without specifying the host FQDN 
which is causing the first host to be deployed with UUID in the chassis ovn-sbctl, instead of FQDN. Which making OVN not functional after fresh HE deploy on the first deployed host. 

ansible.builtin.command: vdsm-tool ovn-config {{ engine_vm_ip.stdout_lines[0] }} {{ he_mgmt_network }}

Chassis "5d9ae13e-1fb9-48d9-ba66-c777d5753444"

Version-Release number of selected component (if applicable):
ansible-core-2.12.2-3.1.el8.x86_64
ovirt-ansible-collection-2.1.0-1.el8ev.noarch
rhvm-4.5.1.3-0.28.el8ev.noarch
ovirt-hosted-engine-setup-2.6.4-1.el8ev.noarch
ovirt-hosted-engine-ha-2.5.0-1.el8ev.noarch

How reproducible:
100%

Steps to Reproduce:
1. Deploy fresh Hosted Engine 4.5.1.3

Actual results:
HE ansible-role is calling ovn-config without specifying the host FQDN. Ends up with first host's chassis in sbctl as UUID instead of FQDN. Making OVN not functional on the first deployed host in the HE environment. 

Expected results:
HE ansible-role should specify the host FQDN when calling ovn-config

Additional info:
The work around will be:
vdsm-tool ovn-config {{ ovn_central }} {{ ovn_tunneling_interface }} {{ ovn_host_fqdn }}

Comment 5 Michael Burman 2022-07-31 11:10:00 UTC
    ansible.builtin.command: vdsm-tool ovn-config {{ engine_vm_ip.stdout_lines[0] }} {{ he_mgmt_network }} {{ he_host_name }} is picking up: name used by the engine for the first host
in our case it return 'host_mixed_1'

Comment 6 Michael Burman 2022-07-31 11:19:58 UTC
The following should be fixed in the docs:

he_host_name is NOT equal to $(hostname -f)

he_host_address is NOT equal to $(hostname -f) - it should be host's IP address

Suggesting to change he_ansible_host_name to $(hostname -f)

Comment 9 Michael Burman 2022-08-08 11:09:08 UTC
Verified on - ovirt-ansible-collection-2.2.1-1.el8ev.noarch  with:

rhvm-4.5.2.1-0.1.el8ev.noarch
ovirt-hosted-engine-setup-2.6.5-1.el8ev.noarch
vdsm-4.50.2.2-1.el8ev.x86_64

Comment 10 Sandro Bonazzola 2022-08-30 08:47:42 UTC
This bugzilla is included in oVirt 4.5.2 release, published on August 10th 2022.
Since the problem described in this bug report should be resolved in oVirt 4.5.2 release, it has been closed with a resolution of CURRENT RELEASE.
If the solution does not work for you, please open a new bug report.


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