Bug 1329204

Summary: "ipa-kra-install" command when run on replica should not ask for replica file when replica server is configured using the same file containing KRA information.
Product: Red Hat Enterprise Linux 7 Reporter: Nikhil Dehadrai <ndehadra>
Component: ipaAssignee: IPA Maintainers <ipa-maint>
Status: CLOSED WONTFIX QA Contact: Kaleem <ksiddiqu>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.2CC: pvoborni, rcritten
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-28 13:23:26 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:

Description Nikhil Dehadrai 2016-04-21 12:13:03 UTC
Description of problem:
"ipa-kra-install" command when run on replica should not ask for replica file when replica server is configured using the same file containing KRA information.

Version-Release number of selected component (if applicable):
ipa-server-4.2.0-15.el7_2.15.x86_64
pki-server-10.2.5-6.el7.noarch
pki-kra-10.2.5-6.el7.noarch

How reproducible:
Always

Steps to Reproduce:
1. Setup IPA server with 7.2 up4 (ipa-server-4.2.0-15.el7_2.15.x86_64)
2. Install KRA on IPA server 
# ipa-kra-install -p <password> -U
3. Configure Replica for this server.
4. Now try to install KRA on Replica:
# ipa-kra-install -p <password> -U

Actual results:
After step4, notice following message:
Usage: ipa-kra-install [options] [replica_file]
ipa-kra-install: error: A replica file is required.


Expected Result:
Since the Replica file used to configure Replica contains KRA information, it should not again ask for Replica file at the time of executing command "ipa-kra-install".


Additional Information:
When the same Replica file used to configure replica server is used along with "ipa-kra-install", then KRA installation is successful.

Comment 2 Petr Vobornik 2016-04-28 13:23:26 UTC
With replica promotion, a new feature in FreeIPA 4.3, kra installation on domain level 1  doesn't require replica file. On domain level 0 the behavior is not changed. 

http://www.freeipa.org/page/V4/Replica_Promotion

This bug is effectively about domain level 0 - the old method. It is not planned to improve the old method much. Therefore closing the bug.