#5278 realmdomains-mod --add-domain command throwing error when domain already is in forwardzone.
Closed: Fixed Opened by pvoborni.

Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 7): Bug 1258626

Description of problem:
realmdomains-mod --add-domain command throwing error when doamin already is in
forwardzone
Version-Release number of selected component (if applicable):
ipa-server-4.2.0-8.el7.x86_64
How reproducible:
100%
Steps to Reproduce:
1.On IPA server, add conditional forwarder for domain.
2.try to add a domain to the list of IPA realmdomains (domain should already
setup as forwardzone)
Actual results:
ipa: ERROR: no modifications to be performed
and
ipa: ERROR: invalid 'dnszoneidnsname': only master zones can contain records
(after remove it and re-add it)
Additional info:
root@master72 ~]# ipa realmdomains-mod --add-domain=adlabs.com
ipa: ERROR: no modifications to be performed
[root@master72 ~]# ipa realmdomains-show
Domain: adlabs.com, ipa.adlabs.com
[root@master72 ~]# ipa realmdomains-mod --del-domain=adlabs.com
ipa: ERROR: invalid 'dnszoneidnsname': only master zones can contain records
[root@master72 ~]# ipa realmdomains-show
  Domain: ipa.adlabs.com
[root@master72 ~]# ipa realmdomains-mod --add-domain=adlabs.com
ipa: ERROR: invalid 'dnszoneidnsname': only master zones can contain records
[root@master72 ~]# ipa realmdomains-show
  Domain: adlabs.com, ipa.adlabs.com

Patches are on the list since September the 3rd.

FreeIPA 4.2.2 was released. Moving to next bug-fixing milestone.

master:

  • 4ceae037f5f756b0e690f8ec6e4729b42d2393b1 util: Add detect_dns_zone_realm_type helper
  • fc6e1f0bb5e09c1c7036a0cebdb54905f34b1fb9 realmdomains: Minor style and wording improvements
  • 6a2f47acbe301759899d477e524af8968a7c97c1 realmdomains: Add validation that realmdomain being added is indeed from our realm
  • 1e1d6d15c65357b1475917597ffa715ad9d6c8c1 realmdomains: Issue a warning when automated management of realmdomains failed
  • dae9c6cbc164c8d1d5da22013193f2b1778e4d17 realmdomains: Do not fail due the ValidationError when adding _kerberos TXT record
  • 12840e0bfa545341c448276c4803a49cbae63e8a tests: Amend result assertions in realmdomains tests

ipa-4-2:

  • 6248ae262e8d7ec46128aedd6200230505711cff util: Add detect_dns_zone_realm_type helper
  • a593abd6e8461132bdebff53304ac230b6d7d9af realmdomains: Minor style and wording improvements
  • 3bcd894de26383b37475ed8fc8d3cee36cd57645 realmdomains: Add validation that realmdomain being added is indeed from our realm
  • 01a75c6a8914fcda929cd23f883f2165708c874c realmdomains: Issue a warning when automated management of realmdomains failed
  • 31e7a7e19d5cd0930ba56b25a96e2998383d990e realmdomains: Do not fail due the ValidationError when adding _kerberos TXT record
  • 291aa25acd5df24b8bcc36fc02f6af0cc4f7d0f9 tests: Amend result assertions in realmdomains tests

Metadata Update from @pvoborni:
- Issue assigned to tbabej
- Issue set to the milestone: FreeIPA 4.2.3

Metadata