Bug 2158775
Summary: | Removing the last DNS type for ipa-ca does not work. | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Sudhir Menon <sumenon> | |
Component: | ipa | Assignee: | Rob Crittenden <rcritten> | |
Status: | CLOSED ERRATA | QA Contact: | Sudhir Menon <sumenon> | |
Severity: | unspecified | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 8.8 | CC: | frenaud, rcritten, rjeffman, tscherf | |
Target Milestone: | rc | Keywords: | Triaged | |
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | ipa-4.9.11-5.module+el8.8.0+18146+a1d8660b | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 2166326 (view as bug list) | Environment: | ||
Last Closed: | 2023-05-16 08:29:08 UTC | 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: | ||||
Bug Depends On: | ||||
Bug Blocks: | 2099484, 2166326 |
Description
Sudhir Menon
2023-01-06 14:20:43 UTC
Sudhir, can you add a bit more info? > 1. Install a server which options are provided? Is --ip-address provided (with IPv4, with IPv6)? > 2. In my manual test the server IPv6 address WAS added to ipa-ca so I used ipa dnsrecord-del to remove it Was the server IPv6 address also added to the server DNS records? > 3. Install a client > 4. Install a replica with --setup-ca Is --ip-address provided (with IPv4, IPv6)? > 5. ipa server-del replica > 6. dig -t AAAA ipa-ca.DOMAIN > > Actual results: > The replica AAAA record is listed. Flo, for clarity the failing test we reproduced this with is ipatests/test_integration/test_ipahealthcheck::TestIpaHealthCheck::test_ipahealthcheck_ca_not_configured Sudir ran the tests and we watched the logs live as the servers were installed. The initial server created only a DNS A record for ipa-ca. The replica was installed via promotion, so client install first, then ipa-replica-install --setup-ca. This added both an A and an AAAA record for ipa-ca. Based on the servers install logs: ipa-server-install: no address was passed in ipa-replica-install: the IPv4 address was passed in One major difference is the order in which ipa-client-install is executed. The replica runs it first so there are already A and AAAA records for itself when the server install completes and I suspect that is why the AAAA record is added to ipa-ca (not that this is wrong). But there is still an issue in ipa-ca cleanup. My working assumption is that the last record of a given type gets orphaned. I suppose there is also a bug in that the initial install doesn't get an IPv6 address in ipa-ca. DNS looked like this after the replica install was completed: # dig -t A ipa-ca.example.test. ;; ANSWER SECTION: ipa-ca.example.test. 1 IN A 0.0.0.83 ipa-ca.example.test. 1 IN A 0.0.0.175 # dig -t AAAA ipa-ca.example.test. ;; ANSWER SECTION: ipa-ca.example.test. 1 IN AAAA aaaa:52:0:a9:f816:3eff:fe3a:951b The test uninstalls the replica and then re-installs it without a CA. The same queries post install look like: # dig -t A ipa-ca.example.test. ;; ANSWER SECTION: ipa-ca.example.test. 1 IN A 0.0.0.83 # dig -t AAAA ipa-ca.example.test. ;; ANSWER SECTION: ipa-ca.example.test. 1 IN AAAA aaaa:52:0:a9:f816:3eff:fe3a:951b So the IPv6 address got left behind somehow. Rob, thanks for the clarifications. Could this be somehow related to https://pagure.io/freeipa/issue/9195, for which there is a PR in progress https://github.com/freeipa/freeipa/pull/6358 Wipe the ipa-ca DNS record when updating system records ? Yes, it could be the same issue. I've started working on the the PR again. Fixed upstream master: https://pagure.io/freeipa/c/c38546d0853c97e2a6ad9868d0c7020bc0f9f586 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 (idm:client and idm:DL1 bug fix and enhancement update), 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/RHBA-2023:2794 |