Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
Description of problem:
When claanallruv deletes a replica, it also deletes all the entries in the changelog that originated in that replica but if the ruv is still pointing to one of those changes, replication is broken.
Cleanallruv should re-calculate the anchor csn or avoid deleting from the changelog the updates which csn is present in the ruv.
For instance, we have seen this scenario:
[XX/Oct/2017:02:30:13.591580305 +0200] - ERR - agmt="cn=replica1-to-replica2" (replica1:389) - clcache_load_buffer - Can't locate CSN 59ecbf880001003e0000 in the changelog (DB rc=-30988). If replication stops, the consumer may need to be reinitialized.
[27/Oct/2017:02:30:13.592294772 +0200] - ERR - NSMMReplicationPlugin - changelog program - repl_plugin_name_cl - agmt="cn=replica1-to-replica2" (replica2:389): CSN 59ecbf880001003e0000 not found, we aren't as up to date, or we purged
3e => 62
ipa-replica-manage clean-dangling-ruv
unable to decode: {replica 62} 59ecbf880001003e0000 59ecc0090005003e0000
The cleanallruv operation was still pending but and clean-dangling-ruv has not managed to clean the corrupted ruv but the csn is not anymore in the changelog.
The replica id 62 was already deleted.
Version-Release number of selected component (if applicable):
389-ds-base-1.3.6.1-19.el7_4.x86_64
How often does this occur? Any chance there is a reproducer?
Do we have the database RUV entry from before and after the cleanallruv task was run?
One comment says the cleanAllRUV task is still running. In the logs I see the cleanAllRUV task starting, but not finishing or more importantly, it's not purging the change log.
errors:[26/Oct/2017:15:32:36.203318929 +0200] - INFO - NSMMReplicationPlugin - multimaster_extop_cleanruv - CleanAllRUV Task - Launching cleanAllRUV thread...
errors:[26/Oct/2017:15:32:36.252696137 +0200] - INFO - NSMMReplicationPlugin - multimaster_extop_cleanruv - CleanAllRUV Task - Launching cleanAllRUV thread...
errors:[26/Oct/2017:17:29:38.831210809 +0200] - INFO - NSMMReplicationPlugin - multimaster_extop_cleanruv - CleanAllRUV Task - Launching cleanAllRUV thread...
errors:[26/Oct/2017:17:29:38.839862036 +0200] - INFO - NSMMReplicationPlugin - multimaster_extop_cleanruv - CleanAllRUV Task - Launching cleanAllRUV thread...
errors:[27/Oct/2017:02:27:39.415596254 +0200] - INFO - NSMMReplicationPlugin - multimaster_extop_cleanruv - CleanAllRUV Task - Launching cleanAllRUV thread...
errors:[27/Oct/2017:02:27:39.594251800 +0200] - INFO - NSMMReplicationPlugin - multimaster_extop_cleanruv - CleanAllRUV Task - Launching cleanAllRUV thread...
errors:[27/Oct/2017:02:27:39.776221420 +0200] - INFO - NSMMReplicationPlugin - multimaster_extop_cleanruv - CleanAllRUV Task - Launching cleanAllRUV thread...
errors:[27/Oct/2017:02:27:39.908068884 +0200] - INFO - NSMMReplicationPlugin - multimaster_extop_cleanruv - CleanAllRUV Task - Launching cleanAllRUV thread...
What I also don't see is the cleanAllRUV logging of the different phases of cleaning. The next message should of been: "Cleaning rid (62)...", but none of that logging is present in any of the SOS files.
Perhaps the cleaning task was fully run already and it's not in the errors log in the SOS reports, but I can only comment on what is provided. From what I'm seeing this issue is not related to the cleanAllRUV task.
For more on troubleshooting the cleanAllRUV task please see:
http://www.port389.org/docs/389ds/FAQ/troubleshoot-cleanallruv.html#troubleshooting-the-cleanallruv-task
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-2018:0811
Description of problem: When claanallruv deletes a replica, it also deletes all the entries in the changelog that originated in that replica but if the ruv is still pointing to one of those changes, replication is broken. Cleanallruv should re-calculate the anchor csn or avoid deleting from the changelog the updates which csn is present in the ruv. For instance, we have seen this scenario: [XX/Oct/2017:02:30:13.591580305 +0200] - ERR - agmt="cn=replica1-to-replica2" (replica1:389) - clcache_load_buffer - Can't locate CSN 59ecbf880001003e0000 in the changelog (DB rc=-30988). If replication stops, the consumer may need to be reinitialized. [27/Oct/2017:02:30:13.592294772 +0200] - ERR - NSMMReplicationPlugin - changelog program - repl_plugin_name_cl - agmt="cn=replica1-to-replica2" (replica2:389): CSN 59ecbf880001003e0000 not found, we aren't as up to date, or we purged 3e => 62 ipa-replica-manage clean-dangling-ruv unable to decode: {replica 62} 59ecbf880001003e0000 59ecc0090005003e0000 The cleanallruv operation was still pending but and clean-dangling-ruv has not managed to clean the corrupted ruv but the csn is not anymore in the changelog. The replica id 62 was already deleted. Version-Release number of selected component (if applicable): 389-ds-base-1.3.6.1-19.el7_4.x86_64