Description of problem: Setup does not allow defining engine hostname as one that resolves to ipv6 address only. Version-Release number of selected component (if applicable): How reproducible: 100% Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Bug tickets must have version flags set prior to targeting them to a release. Please ask maintainer to set the correct version flags and only then set the target milestone.
Simone, is this ovirt-setup-lib related? Or ovirt-engine-setup?
(In reply to Sandro Bonazzola from comment #2) > Simone, is this ovirt-setup-lib related? Or ovirt-engine-setup? Probably both
Created attachment 1455492 [details] terminal log of engine-setup engine-setup works in IPv6. Ip is important to use engine-setup in offline mode, because the repos are net yet IPv6. After engine-setup webadmin is accessible via IPv6.
Created attachment 1456252 [details] setup-engine_with_ipv4
Created attachment 1456253 [details] setup-engine_with_ipv6
There is an issue with IPv6 FQDN resolving. IPv6 FQDN does not recognize by engine-setup * A workaround is by setting 'hostname' as FQDN (hostnamectl --set-hostname FQDN) * Due to lack of IPv6 DHCP server and Domain Name resolving, test is using Static IPv6, and '/etc/hosts' * Same scenario with IPv4 works fine! NOTES: ====== 1. setup-engine must be run with --offline (see Dominik's comments above) 2. OVN must be set to 'No' during setup-engine due to following issue: https://bugzilla.redhat.com/show_bug.cgi?id=1593252 Scenario: ========= 1. Disable IPv4 for localhost set /etc/hosts #127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 2001::2 engine.ipv6 2. Disable IPv4 and enable only IPv6 cat /etc/sysconfig/network-scripts/ifcfg-eth0 NAME="eth0" HWADDR="00:1A:4A:16:98:76" ONBOOT="yes" NETBOOT="yes" UUID="60de5581-79a7-4859-895e-29bf56f902e4" IPV6INIT="yes" #BOOTPROTO="dhcp" BOOTPROTO="none" TYPE="Ethernet" PROXY_METHOD="none" BROWSER_ONLY="no" DEFROUTE="yes" IPV4_FAILURE_FATAL="no" IPV6_AUTOCONF="yes" IPV6_DEFROUTE="yes" IPV6_FAILURE_FATAL="no" IPV6ADDR="2001::2" 3. run engine-setup --offline for the OVN question choose 'No' Results: ======== - engine-setup will give and error, see attached setup-engine_with_ipv6 WebUI will reject login due to mismatch FQDN - same scenario with IPv4 words fine, see attached setup-engine_with_ipv4
editing above comment.... Scenario: ========= 1. Disable IPv4 for localhost & define the IPv6 FQDN locally 2. Disable IPv4 and add static IPv6
Created attachment 1456258 [details] setup-engine_ipv6_no_virbr0
According to Dominik Holler: "this has to be fixed in ovirt-setup-lib" "<dholler> (I located the code which has to be changed in /usr/lib/python2.7/site-packages/ovirt_setup_lib/hostname.py)"
(In reply to Roni from comment #7) > Results: > ======== > - engine-setup will give and error, see attached setup-engine_with_ipv6 Please always attach the generated logs, as output by engine-setup: [ INFO ] Stage: Clean up Log file is located at /var/log/ovirt-engine/setup/ovirt-engine-setup-20180703153401-4xmmu7.log Thanks. In current case, that's not needed: (In reply to Roni from comment #10) > According to Dominik Holler: "this has to be fixed in ovirt-setup-lib" > > "<dholler> (I located the code which has to be changed in > /usr/lib/python2.7/site-packages/ovirt_setup_lib/hostname.py)" Indeed, in getResolvedAddresses.
(In reply to Yedidyah Bar David from comment #11) > Indeed, in getResolvedAddresses. Patching just this function (removing the third argument AF_INET) is not enough, will look at this later.
Sandro, may we attempt to solve this sooner than later? This may be raised as a hurdle for SHE-on-ipv6.
fix for this bug is included in ovirt-setup-lib-1.1.5-1 which is available for testing using https://resources.ovirt.org/pub/yum-repo/ovirt-release42-pre.rpm
Setting oVirt team as Network. I need this bug visible in our sprint board as we are the qa contact of this fix.
verified on: 4.2.6.3-0.1.el7ev
build 4.2.6.3-0.1.el7ev include: ovirt-setup-lib-1.1.5-1.el7ev.noarch