Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1389788

Summary: Cannot add a host to the realm even if the host isn't available
Product: Red Hat Enterprise Linux 7 Reporter: Valentin Bajrami <valentin.bajrami>
Component: ipaAssignee: IPA Maintainers <ipa-maint>
Status: CLOSED NOTABUG QA Contact: Kaleem <ksiddiqu>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.2CC: ksiddiqu, pvoborni, rcritten, valentin.bajrami
Target Milestone: rcFlags: valentin.bajrami: needinfo-
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-31 10:40:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
ipa host-del log output
none
ipa host-add log output none

Description Valentin Bajrami 2016-10-28 15:37:49 UTC
Created attachment 1215022 [details]
ipa host-del  log output

Description of problem:

Unable to add or remove a host to the realm using ipa host-add. 


Version-Release number of selected component (if applicable):
ipa-client-4.2.0-15.sl7_2.19.x86_64
sssd-ipa-1.13.0-40.el7_2.12.x86_64
ipa-admintools-4.2.0-15.sl7_2.19.x86_64
ipa-python-4.2.0-15.sl7_2.19.x86_64
ipa-server-dns-4.2.0-15.sl7_2.19.x86_64
python-libipa_hbac-1.13.0-40.el7_2.12.x86_64
ipa-server-4.2.0-15.sl7_2.19.x86_64
libipa_hbac-1.13.0-40.el7_2.12.x86_64

389-ds-base-libs-1.3.4.0-33.el7_2.x86_64
389-ds-base-debuginfo-1.3.4.0-33.el7_2.x86_64
389-ds-base-1.3.4.0-33.el7_2.x86_64



How reproducible:

This is reproducible using:

ipa host-add campbell.intra.domain.tld --ip-address=10.0.6.179

Using --force or --no-reverse  doesn't change anything




Actual results:
root# ipa host-add campbell.intra.domain.tld --ip-address=10.0.6.179

ipa: ERROR: IP address 10.0.6.179 is already assigned in domain intra.astro.rug.nl..


root# ipa host-del campbell.intra.astro.rug.nl
ipa: ERROR: campbell.intra.astro.rug.nl: host not found


root# ipa host-find campbell
---------------
0 hosts matched
---------------
----------------------------
Number of entries returned 0



Expected results:
root# ipa host-find fischer

--------------
1 host matched
--------------
  Host name: fischer.intra.domain.tld
  Location: 186
  Principal name: host/fischer.intra.domain.tld.TLD
  Password: False
  Member of HBAC rule: allow_all
  Keytab: True
  Managed by: fischer.intra.domain.tld
  SSH public key fingerprint: 12:6C:63:27:49:45:34:12:D8:17:42:90:29:37:BD:BD (ssh-rsa), A1:74:FF:12:FE:11:6B:A7:1C:FA:FF:DA:B4:32:BB:F6 (ssh-ed25519),
                              D1:A8:51:52:22:AD:36:FD:28:BE:BF:26:2A:26:86:29 (ecdsa-sha2-nistp256)
----------------------------
Number of entries returned 1


Additional info:

See attachment

Comment 1 Valentin Bajrami 2016-10-28 15:38:58 UTC
Created attachment 1215023 [details]
ipa host-add  log output

output of ipa host-add.  This comes from  debug=true in /etc/ipa/ipa.conf

Comment 3 Rob Crittenden 2016-10-29 19:01:34 UTC
It seems to be working properly to me.

You tried to add a host with a duplicate IP and the add was rejected.

When you tried to delete it, it wasn't there because it was never created.

What you need to do is find the host with IP 10.0.6.179.

Comment 4 Valentin Bajrami 2016-10-31 08:52:38 UTC
Hi Rob,
 
My apologies. It seems that the host was not removed entirely from the DNS Zone record.  It's such a pity that the '--updatedns' is broken in 4.2.x which is constantly causing problems.  

Thank you for your reply. It made me have another check on the dns zones.

As far as I'm concerned, the status of this bug-report can be changed and marked as not being a bug.

Comment 5 Petr Vobornik 2016-10-31 10:40:54 UTC
Closing according to comment 4 and comment 3.

Comment 6 Kaleem 2017-01-02 12:18:46 UTC
clearing needinfo on me