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 698219 - Uninstalling ipa-client fails, if it joined replica when being installed
Summary: Uninstalling ipa-client fails, if it joined replica when being installed
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ipa
Version: 6.1
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: ---
Assignee: Rob Crittenden
QA Contact: Chandrasekar Kannan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-20 13:04 UTC by Namita Soman
Modified: 2015-01-04 23:48 UTC (History)
3 users (show)

Fixed In Version: ipa-2.1.0-1.el6
Doc Type: Bug Fix
Doc Text:
Cause: Apache needed to talk to 389-ds early during startup and if that communication failed then Apache would need to be restarted. Consequence: This race condition could make a restarted IPA server unavailable. Fix: Apache was trying to retrieve the LDAP schema a startup. This is now done as needed instead of at startup and it is also recoverable, so if it fails it will try again with the next request instead of simply not responding. Result: The Apache server should be more robust and better handle LDAP availability issues.
Clone Of:
Environment:
Last Closed: 2011-12-06 18:21:48 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
/var/log/httpd/error_log from replica (15.14 KB, text/plain)
2011-04-20 13:08 UTC, Namita Soman
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2011:1533 0 normal SHIPPED_LIVE Moderate: ipa security and bug fix update 2011-12-06 01:23:31 UTC

Description Namita Soman 2011-04-20 13:04:51 UTC
Description of problem:
In a Master-Replica env, install client specifying --server to refer to the replica. Uninstalling this client, then fails with:
Unenrolling host failed: RPC failed at server.  an internal error has occurred

Errors in httpd logs attached.

Version-Release number of selected component (if applicable):
ipa-client-2.0.0-21.el6.x86_64
ipa-server-2.0.0-21.el6.x86_64

How reproducible:
always

Steps to Reproduce:
1. install master and replica
2. install client as:
 ipa-client-install --server=<replica server> --domain=testrelm


  
Actual results:
Uninstall fails with:
Unenrolling host failed: RPC failed at server.  an internal error has occurred

Expected results:
Uninstall should be successful

Additional info:

Comment 1 Namita Soman 2011-04-20 13:08:13 UTC
Created attachment 493482 [details]
/var/log/httpd/error_log from replica

Comment 3 RHEL Program Management 2011-04-21 06:00:27 UTC
Since RHEL 6.1 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.

Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.

Comment 4 Dmitri Pal 2011-04-25 16:45:22 UTC
https://fedorahosted.org/freeipa/ticket/1190

Comment 5 Rob Crittenden 2011-05-11 18:11:14 UTC
The replica wasn't actually accepting requests because it hadn't started up properly. It wasn't able to retrieve the LDAP schema:

[Wed Apr 20 08:00:33 2011] [error] ipa: ERROR: Failed to start IPA: Unable to retrieve LDAP schema: Invalid credentials: SASL(-1): generic failure: GSSAPI Error: Unspecified GSS failure.  Minor code may provide more information (Permission denied)
[Wed Apr 20 08:00:33 2011] [error] ipa: ERROR: Failed to start IPA: Unable to retrieve LDAP schema: Invalid credentials: SASL(-1): generic failure: GSSAPI Error: Unspecified GSS failure.  Minor code may provide more information (Permission denied)

The bug is really: do not accept requests if the LDAP schema is not retrieved.

Comment 6 Rob Crittenden 2011-06-08 20:06:36 UTC
Fixed in ticket https://fedorahosted.org/freeipa/ticket/583

master: 868d4e734ed0f22221f25a1067fbf57141b64c21

We now do lazy LDAP schema retrieval on a per-request basis if it hasn't yet been retrieved. This eliminates some of the timing problems we saw and removes the need to restart Apache to fix.

Comment 8 Namita Soman 2011-10-18 13:03:54 UTC
Verified using steps above, and using ipa-client-2.1.2-2.el6.x86_64, ipa-server-2.1.2-2.el6.x86_64

Comment 9 Rob Crittenden 2011-10-31 18:17:37 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Cause: Apache needed to talk to 389-ds early during startup and if that communication failed then Apache would need to be restarted.
Consequence: This race condition could make a restarted IPA server unavailable.
Fix: Apache was trying to retrieve the LDAP schema a startup. This is now done as needed instead of at startup and it is also recoverable, so if it fails it will try again with the next request instead of simply not responding.
Result: The Apache server should be more robust and better handle LDAP availability issues.

Comment 10 errata-xmlrpc 2011-12-06 18:21:48 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2011-1533.html


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