Bug 754524

Summary: ipa-replica-manage - better error reporting when doing a del
Product: Red Hat Enterprise Linux 6 Reporter: Namita Soman <nsoman>
Component: ipaAssignee: Rob Crittenden <rcritten>
Status: CLOSED ERRATA QA Contact: IDM QE LIST <seceng-idm-qe-list>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.1CC: grajaiya, jgalipea, mkosek, syeghiay
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ipa-2.2.0-1.el6 Doc Type: Bug Fix
Doc Text:
No documentation needed.
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-20 13:17:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 756082    

Description Namita Soman 2011-11-16 18:09:39 UTC
Description of problem:
ipa-replica-manage del <hostname> -v -p XXX

will successfully delete the host, but there is no message indicating this.
If there is no replication agreement, it still does not have a message. Would be nice in both cases to indicate if the action was successful. and a reason, if not.

Version-Release number of selected component (if applicable):
ipa-server-2.1.3-9.el6.x86_64

How reproducible:
always

Steps to Reproduce:
1.run cmd:
ipa-replica-manage del <hostname> -v -p XXX
when a master has a replica
2. run cmd again when master does not have a replica

  
Actual results:
no message

Expected results:
1. Expect message: Deleted <replicahost> from <masterhost>
2. Expect message: <masterhost> has no replication agreement for <replicahost>


Additional info:

Comment 3 Martin Kosek 2011-11-21 09:23:16 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/2125

Comment 6 Gowrishankar Rajaiyan 2012-03-08 06:21:01 UTC
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: Uninstalling replica
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
...
:: [   LOG    ] :: verifies https://bugzilla.redhat.com/show_bug.cgi?id=754524
...
:: [   PASS   ] :: Running 'remoteExec root 10.16.98.181 "ipa-replica-manage del ipaqavma.testrelm.com" yes'
:: [   PASS   ] :: Running 'egrep "Deleted replication agreement from 'ipaqavmd.testrelm.com' to 'ipaqavma.testrelm.com'" /tmp/remote_exec.out'
...
:: [   PASS   ] :: Running 'remoteExec root 10.16.98.181 redhat "ipa-replica-manage del ipaqavma.testrelm.com"'
:: [   PASS   ] :: Running 'egrep "'ipaqavmd.testrelm.com' has no replication agreement for 'ipaqavma.testrelm.com'" /tmp/remote_exec.out'


Verified: ipa-server-2.2.0-3.el6.x86_64

Comment 8 Martin Kosek 2012-04-19 12:26:35 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:
No documentation needed.

Comment 10 errata-xmlrpc 2012-06-20 13:17:26 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/RHBA-2012-0819.html