Bug 1012942

Summary: RUV tombstone search with scope "one" doesn`t work
Product: Red Hat Enterprise Linux 6 Reporter: Ján Rusnačko <jrusnack>
Component: 389-ds-baseAssignee: Rich Megginson <rmeggins>
Status: CLOSED DUPLICATE QA Contact: Sankar Ramalingam <sramling>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.5CC: jgalipea, nkinder
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1013063 (view as bug list) Environment:
Last Closed: 2013-09-27 18:51:18 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:
Embargoed:
Bug Depends On:    
Bug Blocks: 1013063    

Description Ján Rusnačko 2013-09-27 12:27:30 UTC
Description of problem:
Replication monitor searches for RUV tombstone entries to get values such as maxCSN. These searches fail to return any entries and replication monitor generates empty report.

When line 368 of repl-monitor.pl 

    $ruv = $conn->search($replicaroot, "one",
         "(&(nsuniqueid=ffffffff-ffffffff-ffffffff-ffffffff)(objectClass=nsTombstone))",
	 0, qw(nsds50ruv nsruvReplicaLastModified));

is changed to 
 
    $ruv = $conn->search($replicaroot, "sub",
         "(&(nsuniqueid=ffffffff-ffffffff-ffffffff-ffffffff)(objectClass=nsTombstone))",
	 0, qw(nsds50ruv nsruvReplicaLastModified));

replication monitor generates full report. Indeed search 

[root@hp-dl380pgen8-02-vm-1 BE_0]# ldapsearch ... -b "o=my_suffix.com" "(&(nsuniqueid=ffffffff-ffffffff-ffffffff-ffffffff)(objectClass=nsTombstone))" -s one

returns no entries, while 

[root@hp-dl380pgen8-02-vm-1 BE_0]# ldapsearch ... -b "o=my_suffix.com" "(&(nsuniqueid=ffffffff-ffffffff-ffffffff-ffffffff)(objectClass=nsTombstone))" -s sub

returns tombstone entries with RUV information.

Version-Release number of selected component (if applicable):
389-ds-base-1.2.11.15-24.el6.x86_64

Additional info:
Possibly related to https://bugzilla.redhat.com/show_bug.cgi?id=788731 .

Comment 2 Noriko Hosoi 2013-09-27 17:13:41 UTC
Upstream ticket:
https://fedorahosted.org/389/ticket/47534

Comment 3 Nathan Kinder 2013-09-27 18:51:18 UTC
This was introduced by the fix for bug 947583.  I've reopened that bug, and will close this as a duplicate.

*** This bug has been marked as a duplicate of bug 947583 ***