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 918263

Summary: join command succeeds even if client is already enrolled
Product: Red Hat Enterprise Linux 7 Reporter: Namita Soman <nsoman>
Component: ipaAssignee: Rob Crittenden <rcritten>
Status: CLOSED CURRENTRELEASE QA Contact: IDM QE LIST <seceng-idm-qe-list>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 7.0CC: ksiddiqu, mkosek
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ipa-3.2.1-1.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-13 12:28:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Namita Soman 2013-03-05 19:09:56 UTC
This bug is created as a clone of upstream ticket:
https://fedorahosted.org/freeipa/ticket/3481

As reported in IRC, if you have a client that is enrolled, you delete its local configuration w/o unenrolling, then try to re-enroll, the server-side isn't very useful.

The server reports that the join command was successful. Then the enrollment will fail as already joined.

I think we need to check for a principal key in the join command.

Comment 1 Martin Kosek 2013-03-25 10:01:30 UTC
Fixed upstream:
master: https://fedorahosted.org/freeipa/changeset/2f0c7d6e233f3f9ed5559bf760f274c33c42be3d
ipa-3-1: https://fedorahosted.org/freeipa/changeset/e6fedfb68dc465687c862acd4139b51e7d6e3475

IPA server http error log will now contain warnings/more information when trying to reenroll existing client host.

Comment 4 Kaleem 2014-01-13 06:12:17 UTC
Verified.

IPA version:
============
[root@rhel70-master ~]# rpm -q ipa-server ipa-client
ipa-server-3.3.3-11.el7.x86_64
ipa-client-3.3.3-11.el7.x86_64
[root@rhel70-master ~]#

snippet from /var/log/httpd/error_log on IPA Server:
===================================================
[Mon Jan 13 11:33:50.669202 2014] [:error] [pid 23752] ipa: INFO: Host entry for rhel70-client.testrelm.com already exists, joining may fail on the client side if not forced
[Mon Jan 13 11:33:50.696464 2014] [:error] [pid 23752] ipa: INFO: admin: join(u'rhel70-client.testrelm.com', nshardwareplatform=u'x86_64', nsosversion=u'3.10.0-67.el7.x86_64', version=u'2.51'): SUCCESS

Following steps followed:
=========================
[root@rhel70-client ~]# iptables -A INPUT -j REJECT -p all --source 10.65.207.198
[root@rhel70-client ~]# ipa-client-install --uninstall -U
Unenrolling client from IPA server
Unenrolling host failed: Error obtaining initial credentials: Cannot contact any KDC for requested realm.
..
...
Restoring client configuration files
Client uninstall complete.
[root@rhel70-client ~]# iptables -F
[root@rhel70-client ~]#

[root@rhel70-client ~]# ipa-client-install -U --domain=testrelm.com --realm=TESTRELM.COM -p admin -w xxxxxxx --server=rhel70-master.testrelm.com
Hostname: rhel70-client.testrelm.com
Realm: TESTRELM.COM
..
...
....
    Valid Until: Fri Jan 13 05:44:15 2034 UTC

Joining realm failed: Host is already joined.

Use --force-join option to override the host entry on the server and force client enrollment.
Installation failed. Rolling back changes.
IPA client is not configured on this system.
[root@rhel70-client ~]#

Comment 5 Ludek Smid 2014-06-13 12:28:24 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.