Bug 433347

Summary: ipa-replica-prepare on non-master returns bad error msg
Product: [Retired] freeIPA Reporter: Rob Crittenden <rcritten>
Component: ipa-serverAssignee: Rob Crittenden <rcritten>
Status: CLOSED ERRATA QA Contact: Chandrasekar Kannan <ckannan>
Severity: low Docs Contact:
Priority: low    
Version: 1.0CC: benl
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: freeipa-2.0.0-1.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 429034    
Attachments:
Description Flags
Add some additional error checking none

Description Rob Crittenden 2008-02-18 19:40:35 UTC
Description of problem:

On a machine with the IPA packages installed but haven't run ipa-server-install
or ipa-replica-install returns:

# ipa-replica-prepare foo
ERROR:root:could not find directory instance: /etc/dirsrv/slapd-EXAMPLE-COM/

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

Changeset 641

How reproducible:

Every time

Steps to Reproduce:
1. ipa-replica-prepare <anything>
2.
3.
  
Actual results:

# ipa-replica-prepare foo
ERROR:root:could not find directory instance: /etc/dirsrv/slapd-EXAMPLE-COM/

Expected results:

Only a master can create a replica.

Or, IPA not configured.

Comment 1 Rob Crittenden 2008-02-20 21:33:17 UTC
Created attachment 295452 [details]
Add some additional error checking

That problem was fixed in changeset 634

I did find a few places we weren't doing go error handling so I've patched
those.

Ideally a user will never see a python back trace.

Comment 2 Rob Crittenden 2008-02-21 21:28:44 UTC
Committed in changeset 669

Comment 3 Yi Zhang 2008-05-29 15:53:49 UTC
QA Verified on May 29, 2008 (Yi)

Build used: May 29, 2008 (i386)


Test as below:
1> yum install ipa-server
2> run test above:
ipaserver[05/29/08 08:25] ipa-replica-prepare foo.com
The replica must be created on the primary IPA server.