Bug 1508978

Summary: replicated MODRDN fails breaking replication. [rhel-7.4.z]
Product: Red Hat Enterprise Linux 7 Reporter: Oneata Mircea Teodor <toneata>
Component: 389-ds-baseAssignee: Ludwig <lkrispen>
Status: CLOSED ERRATA QA Contact: Viktor Ashirov <vashirov>
Severity: urgent Docs Contact: Marc Muehlfeld <mmuehlfe>
Priority: urgent    
Version: 7.4CC: fjaspe, gparente, lkrispen, mreynolds, msauton, nkinder, rmeggins
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 389-ds-base-1.3.6.1-24 Doc Type: Bug Fix
Doc Text:
If you rename two different entries to the same name on two servers, Directory Server creates conflict entries. Previously, due to a bug, the creation of one conflict entry failed. Consequently, the replicated modrdn operation returned an error and replication stopped. This update fixes the problem. As a result, the conflict entry is created correctly and replication works as expected.
Story Points: ---
Clone Of: 1506831 Environment:
Last Closed: 2017-11-30 15:59:18 UTC 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: 1506831    
Bug Blocks:    

Description Oneata Mircea Teodor 2017-11-02 15:23:05 UTC
This bug has been copied from bug #1506831 and has been proposed to be backported to 7.4 z-stream (EUS).

Comment 5 mreynolds 2017-11-13 15:10:29 UTC
Ludwig can you set the doc text for this?

Thanks!

Comment 7 Ludwig 2017-11-14 07:49:42 UTC
ack

Comment 8 Viktor Ashirov 2017-11-20 00:54:54 UTC
Build tested:
389-ds-base-1.3.6.1-24.el7_4.x86_64

Using scenario from https://bugzilla.redhat.com/show_bug.cgi?id=1506831#c9,
on older version I see errors:
on m1:
[19/Nov/2017:19:44:57.947167688 -0500] - ERR - conn=29 op=4 csn=5a122530000000020000 - Failed to convert cn=user to RDN
[19/Nov/2017:19:44:57.947650539 -0500] - ERR - NSMMReplicationPlugin - process_postop - Failed to apply update (5a122530000000020000) error (1).  Aborting replication session(conn=29 op=4)

on m2:
[19/Nov/2017:19:44:57.944035669 -0500] - INFO - NSMMReplicationPlugin - bind_and_check_pwp - agmt="cn=meTo_localhost:39001" (localhost:39001): Replication bind with SIMPLE auth resumed
[19/Nov/2017:19:44:57.948569546 -0500] - WARN - NSMMReplicationPlugin - repl5_inc_update_from_op_result - agmt="cn=meTo_localhost:39001" (localhost:39001): Consumer failed to replay change (uniqueid 8f838985-cd8b11e7-8e6d8626-7b59feb1, CSN 5a122530000000020000): Operations error (1). Will retry later.
[19/Nov/2017:19:44:57.949064425 -0500] - WARN - NSMMReplicationPlugin - repl5_inc_update_from_op_result - agmt="cn=meTo_localhost:39001" (localhost:39001): Consumer failed to replay change (uniqueid (null), CSN (null)): Operations error(1). Will retry later.
[19/Nov/2017:19:44:58.047234390 -0500] - ERR - NSMMReplicationPlugin - release_replica - agmt="cn=meTo_localhost:39001" (localhost:39001): Unable to send endReplication extended operation (Operations error)

Using 389-ds-base-1.3.6.1-24.el7_4.x86_64 I can no longer see these errors, replication works.

Marking as VERIFIED.

Comment 11 errata-xmlrpc 2017-11-30 15:59:18 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.

https://access.redhat.com/errata/RHBA-2017:3317