Bug 820012 - host-add accepts --ip-address option without DNS installed
host-add accepts --ip-address option without DNS installed
Status: CLOSED CURRENTRELEASE
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ipa (Show other bugs)
7.0
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: Martin Kosek
IDM QE LIST
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-08 17:47 EDT by Rob Crittenden
Modified: 2015-01-16 09:14 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-01-16 09:14:06 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Rob Crittenden 2012-05-08 17:47:23 EDT
This bug is created as a clone of upstream ticket:
https://fedorahosted.org/freeipa/ticket/2729

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.

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
}}}
Comment 1 Martin Kosek 2015-01-16 09:14:06 EST
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.

Note You need to log in before you can comment on or make changes to this bug.