host plugin accepts IP address passed to host-add command for an unresolvable host even when IPA is configured without DNS support and the IP address is obviously not used.
host-add
Current behavior:
# ipa host-add foo.example.com ipa: ERROR: Host does not have corresponding DNS A record # ipa host-add foo.example.com --ip-address=10.0.0.1 ---------------------------- Added host "foo.example.com" ---------------------------- Host name: foo.example.com Principal name: host/foo.example.com@IDM.LAB.BOS.REDHAT.COM Password: False Keytab: False Managed by: foo.example.com
Previous behavior:
# ipa host-add foo.example.com ipa: ERROR: Host does not have corresponding DNS A record # ipa host-add foo.example.com --ip-address=10.0.0.1 ipa: ERROR: DNS zone example.com not found
Ticket has been cloned to Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=820012
I do not think wee should fix it until someone complains. Fixing it now would be a semantic change.
Moving to backlog.
Moving my tickets back to free-to-take pool.
I checked this Bug with current IdM/FreeIPA (4.1) and the error was raised properly:
# ipa host-add foo.example.com ipa: ERROR: Host does not have corresponding DNS A/AAAA record # ipa host-add foo.example.com --ip-address=10.0.0.1 ipa: ERROR: DNS zone example.com. not found
If you still reproduce the issue, please feel free to reopen this request.
Metadata Update from @mkosek: - Issue assigned to someone - Issue set to the milestone: FreeIPA 4.1
Login to comment on this ticket.