#8850 Bad error message when adding a NS record twice.
Closed: invalid by rjeffman. Opened by rjeffman.

Issue

When adding a NS record to a host, if the host already has a NS record associated, the error message is misleading.

Steps to Reproduce

  1. Add a host with IPv4 or IPv6 and corresponding PTR record.
  2. Add a NS record to the host.
    ipa dnsrecord-add testzone.test. host --ns-hostname host
  3. Add the same NS record to the host.
    ipa dnsrecord-add testzone.test. host --ns-hostname host

Actual behavior

The following message is displayed:

ipa: ERROR: Nameserver 'host.testzone.test.' does not have a corresponding A/AAAA record

Expected behavior

As the host does have a corresponding A/AAAA record, a message better describing the error should be displayed.

Version/Release/Distribution

CentOS Linux release 8.3.2011

ipa-server-4.8.7-16.module_el8.3.0+753+f535d84d.x86_64
ipa-client-4.8.7-16.module_el8.3.0+753+f535d84d.x86_64
389-ds-base-1.4.3.8-7.module_el8.3.0+752+5796e55d.x86_64
pki-ca-10.9.4-3.module_el8.3.0+729+097af0d5.noarch
krb5-server-1.18.2-5.el8.x86_64


Metadata Update from @rjeffman:
- Custom field affects_doc adjusted to on
- Custom field knownissue adjusted to on
- Issue close_status updated to: invalid
- Issue status updated to: Closed (was: Open)

Metadata