Bug 755450

Summary: Better message for error diagnosis while adding an existing winsync agreement.
Product: Red Hat Enterprise Linux 6 Reporter: Gowrishankar Rajaiyan <grajaiya>
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.2CC: jgalipea, mkosek, sgoveas
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ipa-2.2.0-3.el6 Doc Type: Bug Fix
Doc Text:
No documentation needed.
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-20 13:17:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Gowrishankar Rajaiyan 2011-11-21 07:36:46 UTC
Description of problem:
During system integration test day for IPA winsync, as part of negative testing we tried to re-add/modify an existing agreement, this however failed since we had an existing agreement established. The error message displayed did not convey any message about existing agreement. Thanks to hbansal for pointing at this. 

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

How reproducible:
Always

Steps to Reproduce:
1. Create winsync agreement.
2. Try to modify the parameter using "--win-subtree" or re-add the agreement.

  
Actual results: Though the output says "Failed to create public entry for winsync replica", it also says "Update succeeded". 


Expected results: Should have a better message for error diagnosis.


Additional info:

[root@decepticons ~]# ipa-replica-manage list
decepticons.lab.eng.pnq.redhat.com: master
dhcp201-112.englab.pnq.redhat.com: winsync
[root@decepticons ~]# 


[root@decepticons ~]# ipa-replica-manage connect --winsync --passsync=password --cacert=/root/wincertnew.cer dhcp201-112.englab.pnq.redhat.com --binddn "cn=Administrator,cn=Users,dc=englab,dc=pnq,dc=redhat,dc=com" --bindpw Secret123 -v -p Secret123 --win-subtree=ou=testou1,dc=englab,dc=pnq,dc=redhat,dc=com
Added CA certificate /root/wincertnew.cer to certificate database for decepticons.lab.eng.pnq.redhat.com
INFO:root:AD Suffix is: DC=englab,DC=pnq,DC=redhat,DC=com
The user for the Windows PassSync service is uid=passsync,cn=sysaccounts,cn=etc,dc=lab,dc=eng,dc=pnq,dc=redhat,dc=com
Windows PassSync entry exists, not resetting password
INFO:root:Added new sync agreement, waiting for it to become ready . . .
INFO:root:Replication Update in progress: FALSE: status: 0 Replica acquired successfully: Incremental update succeeded: start: 20111121071735Z: end: 20111121071735Z
INFO:root:Agreement is ready, starting replication . . .
INFO:root:Failed to create public entry for winsync replica
Starting replication, please wait until this has completed.
Update succeeded
Connected 'decepticons.lab.eng.pnq.redhat.com' to 'dhcp201-112.englab.pnq.redhat.com'
[root@decepticons ~]#

Comment 2 Martin Kosek 2011-11-21 09:33:18 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/2130

Comment 6 Martin Kosek 2012-04-19 12:32:38 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 7 Steeve Goveas 2012-04-23 13:24:04 UTC
* Winsync agreement already exists between the AD server and the IPA server as follows

[root@primenova ~]# ipa-replica-manage list
dhcp201-215.englab.pnq.redhat.com: winsync
primenova.lab.eng.pnq.redhat.com: master

* Attempt to re create an agreement gives message as expected
[root@primenova ~]# ipa-replica-manage connect --winsync --passsync=password --cacert=/etc/openldap/certs/ADcert.cer dhcp201-215.englab.pnq.redhat.com --binddn "cn=Administrator,cn=Users,dc=englab,dc=pnq,dc=redhat,dc=com" --bindpw Secret123 -v -p Secret123
winsync agreement already exists on subtree cn=Users,DC=englab,DC=pnq,DC=redhat,DC=com
[root@primenova ~]# 

Verified in version ipa-server-2.2.0-10.el6.x86_64

Comment 10 errata-xmlrpc 2012-06-20 13:17:49 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