RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1887449 - Sync repl: missing update because operation are erroneously stated as nested
Summary: Sync repl: missing update because operation are erroneously stated as nested
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: 389-ds-base
Version: 8.3
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: 8.0
Assignee: thierry bordaz
QA Contact: RHDS QE
URL:
Whiteboard: sync-to-jira
Depends On:
Blocks: 1894575
TreeView+ depends on / blocked
 
Reported: 2020-10-12 14:03 UTC by thierry bordaz
Modified: 2021-05-18 15:45 UTC (History)
9 users (show)

Fixed In Version: 389-ds-devel-1.4-8040020201105165416.866effaa
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-18 15:45:26 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github 389ds 389-ds-base issues 4363 0 None closed Sync repl: per thread structure was incorrectly initialized 2021-02-17 12:46:43 UTC

Description thierry bordaz 2020-10-12 14:03:01 UTC
Description of problem:

The system to detect nested entry is broken for example, this direct update is assumed to be nested

[02/Oct/2020:12:48:42.407064204 +0000] conn=11 op=100 ADD dn="ipk11UniqueID=9a0baa52-04ad-11eb-a0dc-525400ea4c12,cn=keys,cn=sec,cn=dns,dc=ipa,dc=test"
[02/Oct/2020:12:48:42.504063075 +0000] conn=11 op=100 RESULT err=0 tag=105 nentries=0 wtime=0.000369948 optime=0.097011474 etime=0.097377063 csn=5f7721ab000800040000

[02/Oct/2020:12:48:42.427542634 +0000] - DEBUG - content-sync-plugin - sync_update_persist_betxn_pre_op - nested operation targets "ipk11UniqueID=9a0baa52-04ad-11eb-a0dc-525400ea4c12,cn=keys,cn=sec,cn=dns,dc=ipa,dc=test" (0x7fe7734bc800)

Also the way pending updates are flushed rely on betxn_preop - betxn_postop balance. Unfortunately some op seems to miss the postop, so operation remain pending

[02/Oct/2020:12:48:17.366968904 +0000] conn=28 op=1 MOD dn="cn=config"
[02/Oct/2020:12:48:17.374753804 +0000] conn=28 op=0 RESULT err=0 tag=97 nentries=0 wtime=0.009704399 optime=0.066472741 etime=0.076171658 dn="cn=directory manager"

[02/Oct/2020:12:48:17.392523825 +0000] - DEBUG - content-sync-plugin - sync_update_persist_betxn_pre_op - primary operation targets "cn=config" (0x7fe7734bc800)
#post op is not called



Version-Release number of selected component (if applicable):
regression introduced pagure ticket 51190

How reproducible:
TBD
At the moment detected with DNSSEC tests from freeipa


Actual results:
Direct updates are stated as nested (plugin log enabled)


Expected results:
Direct updates should be primary update.


Additional info:

Comment 1 thierry bordaz 2020-10-23 08:35:35 UTC
Fix pushed upstream => POST

Comment 8 sgouvern 2020-11-30 09:02:29 UTC
Need more time to test it
-> moving to ITM 6

Comment 9 Akshay Adhikari 2020-12-14 11:43:18 UTC
Build tested: 389-ds-base-libs-1.4.3.16-5.module+el8.4.0+9096+da32555e.x86_64

The patch is present in the source.

-> Marking as verified: tested.

Comment 10 sgouvern 2020-12-14 14:56:53 UTC
Missed the ITM 6 milestone -> moving to ITM 7

Comment 14 sgouvern 2020-12-21 14:33:45 UTC
With build 389-ds-base-1.4.3.16-6.module+el8.4.0+9207+729bbaca.x86_64

fixed code is present in the source

marking as VERIFIED

Comment 16 errata-xmlrpc 2021-05-18 15:45: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 (389-ds:1.4 bug fix and enhancement 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/RHBA-2021:1835


Note You need to log in before you can comment on or make changes to this bug.