[freeipa PR#2767][opened] replica installation: add master record only if in managed zone
by flo-renaud
URL: https://github.com/freeipa/freeipa/pull/2767
Author: flo-renaud
Title: #2767: replica installation: add master record only if in managed zone
Action: opened
PR body:
"""
### replica installation: add master record only if in managed zone
Scenario: install a replica with DNS, whose IP address is part of a forward zone.
Currently, the replica installation fails because the installer is trying to add a A/AAAA record for the replica in the zone when setting up the bind instance, and addition of records in a forward zone is forbidden.
The bind installer should check if the IP address is in a master zone (i.e. a DNS zone managed by IdM, not a forward zone), and avoid creating the record if it's not the case.
During uninstallation, perform the same check before removing the DNS record (if in a forward zone, no need to call dnsrecord-del).
Fixes: https://pagure.io/freeipa/issue/7369
### ipatests: add test for replica in forward zone
Scenario: install a replica with DNS, with the replica part of a forward zone.
The replica installation should proceed successfully and avoid trying to add a DNS record for the replica in the forward zone, as the forward zone is not managed by IPA DNS.
Test added to nightly definitions.
Related to https://pagure.io/freeipa/issue/7369
"""
To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/2767/head:pr2767
git checkout pr2767
5 years, 3 months