Bug 1477615 - reinstallation of ipa replica failling
reinstallation of ipa replica failling
Status: NEW
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ipa (Show other bugs)
7.4
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: IPA Maintainers
ipa-qe
: Reopened
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-08-02 09:28 EDT by Mohammad Rizwan
Modified: 2017-08-03 16:55 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-08-03 03:00:08 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
console logs (22.22 KB, text/plain)
2017-08-02 09:28 EDT, Mohammad Rizwan
no flags Details

  None (edit)
Description Mohammad Rizwan 2017-08-02 09:28:45 EDT
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 10:21:13 EDT
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 12:03:56 EDT
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 03:00:08 EDT
(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 16:55:20 EDT
I'll let it triage anyway. The way how it fails is not good.

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