Bug 2229768
| Summary: | Cannot enroll replica on IPv6 only host | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Tomasz Kepczynski <tomek> |
| Component: | ipa | Assignee: | Florence Blanc-Renaud <frenaud> |
| Status: | NEW --- | QA Contact: | ipa-qe |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 9.2 | CC: | abokovoy, rcritten, tscherf |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | Bug | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Tomasz Kepczynski
2023-08-07 15:37:46 UTC
Notes: We need to extend IPA installers to be smarter and recognize IPv6-only or IPv4-only setups. This means also taking into account gai.conf configuration (default one, when /etc/gai.conf does not exist, is to prefer IPv6 over IPv4). When only IPv6 routing is available: - when detecting IPv6-only configuration, filter out link-local IPv6 routes as these will not lead to working IPv6 setup - filter out IPv4 hosts from the list of available replicas. Assume system resolver is taking gai.conf preferences. When only IPv4 routing is available: - when detecting IPv4-only configuration, filter out link-local IPv6 routes as these will not lead to working IPv6 setup - filter out IPv6 hosts from the list of available replicas. Assume system resolver is already taking gai.conf preferences into account. In both cases it should be done for both client and replica deployments. Additional consideration on the client side is to filter out IPv4 hosts from IPv6-only environment (and vice-versa) and issue a warning that hosts were dropped out. Perhaps, we would need to add a way to tune this through /etc/ipa/installer.conf to allow either behavior (drop/not drop) in order to avoid adding new command line options. The interesting part is that the installation from dual stack system against IPv6 only master works: the connection checker is able to resolve IPv6 only destination. Please make sure to validate connection checking both ways. Connection checker seems to check connection from client to master first and then seems to ask the master to check the other way - this can be prone to same issue as described here. Additionally I noted that CA enrolment at least sometimes fails when CA resolves to both IPv4 and IPv6 but is not reachable by IPv4 (RFC1918 involved at least on one side of the connection). But this likely is another issue (please let me know if I should look into it a bit more and file a bug if confirmed). |