Bug 1477615

Summary: reinstallation of ipa replica failling
Product: Red Hat Enterprise Linux 7 Reporter: Mohammad Rizwan <myusuf>
Component: ipaAssignee: IPA Maintainers <ipa-maint>
Status: CLOSED WORKSFORME QA Contact: ipa-qe <ipa-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.4CC: pvoborni, rcritten, tscherf
Target Milestone: rcKeywords: Reopened
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: 2017-08-18 16:21:06 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
console logs none

Description Mohammad Rizwan 2017-08-02 13:28:45 UTC
Created attachment 1308228 [details]
console logs

Description of problem:
reinstall of ipa replica is failing.

Version-Release number of selected component (if applicable):

ipa-server-4.5.0-20.el7.x86_64
ipa-client-4.5.0-20.el7.x86_64
389-ds-base-1.3.6.1-16.el7.x86_64
pki-ca-10.4.1-10.el7.noarch
krb5-server-1.15.1-8.el7.x86_64

How reproducible:
always

Steps to Reproduce:
1. Install Master
2. Install replica
3. uninstall replica
4. Install replica again 

Actual results:
reinstall is failing with following error:

ipa         : CRITICAL Failed to load master-entry.ldif: Command '/usr/bin/ldapmodify -v -f /tmp/tmpbP_5sH -H ldapi://%2Fvar%2Frun%2Fslapd-TESTRELM-TEST.socket -Y EXTERNAL' returned non-zero exit status 68
  [error] CalledProcessError: Command '/usr/bin/ldapmodify -v -f /tmp/tmpbP_5sH -H ldapi://%2Fvar%2Frun%2Fslapd-TESTRELM-TEST.socket -Y EXTERNAL' returned non-zero exit status 68
Your system may be partly configured.
Run /usr/sbin/ipa-server-install --uninstall to clean up.

ipa.ipapython.install.cli.install_tool(CompatServerReplicaInstall): ERROR    Command '/usr/bin/ldapmodify -v -f /tmp/tmpbP_5sH -H ldapi://%2Fvar%2Frun%2Fslapd-TESTRELM-TEST.socket -Y EXTERNAL' returned non-zero exit status 68
ipa.ipapython.install.cli.install_tool(CompatServerReplicaInstall): ERROR    The ipa-replica-install command failed. See /var/log/ipareplica-install.log for more information

Expected results:
reinstall should be success

Additional info:
console logs are attached.

Comment 4 Mohammad Rizwan 2017-08-02 14:21:13 UTC
This issue is reproducible on following version too.

version:
ipa-server-4.5.0-21.el7_4.1.x86_64

Comment 5 Petr Vobornik 2017-08-02 16:03:56 UTC
What exact steps did you do to uninstall the replica?

Have you run `ipa server-del $replica` on the master before re-installing?

Comment 6 Mohammad Rizwan 2017-08-03 07:00:08 UTC
(In reply to Petr Vobornik from comment #5)
> What exact steps did you do to uninstall the replica?
> 
> Have you run `ipa server-del $replica` on the master before re-installing?

Yes, now it works. 

steps:

1) Install Master
2) Install Replica
3) Uninstall Replica
4) ipa server-del $replica on master
5) Reinstall replica

Comment 7 Petr Vobornik 2017-08-03 20:55:20 UTC
I'll let it triage anyway. The way how it fails is not good.