Bug 1984091

Summary: persistent search returns entries even when an error is returned by content-sync-plugin [rhel-8.4.0.z]
Product: Red Hat Enterprise Linux 8 Reporter: RHEL Program Management Team <pgm-rhel-tools>
Component: 389-ds-baseAssignee: LDAP Maintainers <ldap-maint>
Status: CLOSED ERRATA QA Contact: RHDS QE <ds-qe-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.5CC: afarley, ldap-maint, mreynolds, tbordaz
Target Milestone: betaKeywords: Triaged, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 389-ds-1.4-8040020210721074904.96015a92 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1983921 Environment:
Last Closed: 2021-08-10 13:59:33 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: 1983921    
Bug Blocks:    

Comment 1 thierry bordaz 2021-07-21 07:31:29 UTC
Fix pushed upstream => POST

Comment 6 Akshay Adhikari 2021-07-28 11:46:33 UTC
Build tested: 389-ds-base-1.4.3.16-19.module+el8.4.0+11894+f5bb5c43.x86_64

Steps:

1) Create an instance with sample entries

2) Enable Content Synchronization and Retro Changelog Plugin

# ldapmodify -D "cn=directory manager" -w password -p 389 -h localhost
dn: cn=Content Synchronization,cn=plugins,cn=config
changetype: modify
replace: nsslapd-pluginEnabled
nsslapd-pluginEnabled: on

modifying entry "cn=Content Synchronization,cn=plugins,cn=config"

dn: cn=Retro Changelog Plugin,cn=plugins,cn=config
changetype: modify
replace: nsslapd-pluginEnabled
nsslapd-pluginEnabled: on

modifying entry "cn=Retro Changelog Plugin,cn=plugins,cn=config"

3) Restarted the instance

4) Performed a persistent search on cn=monitor :

# ldapsearch -LLL -h localhost -p 389 -D "cn=directory manager" -w password -E sync=rp -b 'cn=monitor'
SyncInfo Received


No entry is returned.

An ERROR message is displayed in the error log showing the issue.

[28/Jul/2021:07:35:29.624617855 -0400] - ERR - content-sync-plugin - sync_create_state_control - Entries are missing nsuniqueid. Unable to proceed.
[28/Jul/2021:07:35:29.624941108 -0400] - ERR - send_ldap_search_entry_ext - Error 1 returned by pre entry plugins for entry cn=snmp,cn=monitor


Marking as VERIFIED.

Comment 10 errata-xmlrpc 2021-08-10 13:59:33 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 (Low: 389-ds:1.4 security and bug fix update), 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/RHSA-2021:3079