Bug 1389788 - Cannot add a host to the realm even if the host isn't available
Summary: Cannot add a host to the realm even if the host isn't available
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ipa
Version: 7.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: IPA Maintainers
QA Contact: Kaleem
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-28 15:37 UTC by Valentin Bajrami
Modified: 2017-01-02 12:18 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-31 10:40:54 UTC
Target Upstream Version:
valentin.bajrami: needinfo-


Attachments (Terms of Use)
ipa host-del log output (8.18 KB, text/plain)
2016-10-28 15:37 UTC, Valentin Bajrami
no flags Details
ipa host-add log output (8.34 KB, text/plain)
2016-10-28 15:38 UTC, Valentin Bajrami
no flags Details

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


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