ovirt-ansible-collection icon indicating copy to clipboard operation
ovirt-ansible-collection copied to clipboard

HE: Filter IP addresses based on 'ipv6_deployment'

Open tinez opened this issue 1 year ago • 5 comments

At the beginning of HE deployment we set the 'ipv6_deployment' fact based on host's address. This var should be the source of truth for whether to use an IPv4 or IPv6 address for the HE VM.

Until now we were simply picking up the first address that was reported by 'virsh' and using this throughout the rest of the process.

This PR adds filtering of the reported addresses based on the value of 'ipv6_deployment'. Additionally we're picking the first address to make other usages of 'local_vm_ip' nicer.

Signed-off-by: Marcin Sobczyk [email protected]

tinez avatar Jul 11 '22 15:07 tinez

/ost he-basic-suite-master el9stream

tinez avatar Jul 11 '22 15:07 tinez

/ost he-basic-suite-master el8stream

michalskrivanek avatar Jul 11 '22 16:07 michalskrivanek

it seems it's broken on el8stream too now

michalskrivanek avatar Jul 11 '22 16:07 michalskrivanek

it seems to me that due to the now-functional ipv4 dhcp entry the vm boots with default route on ipv4, which breaks the assumption and route manipulation of he setup

michalskrivanek avatar Jul 11 '22 16:07 michalskrivanek

Same problem happens for IPv4-only deployment. Somehow the bootstrap VM enables and gets IPv6 now

michalskrivanek avatar Jul 13 '22 10:07 michalskrivanek