-
Bug
-
Resolution: Unresolved
-
Major
-
dirsrv-11.7
-
389-ds-base-1.4.3.34-5.module+el8dsrv+22401+88b9b9f7
-
None
-
rhel-sst-idm-ds
-
1
-
False
-
-
None
-
None
Description of problem:
Attempts to compact a replication changelog with the dsconf CLI are not working.
The changelog is not compacted.
Version-Release number of selected component (if applicable):
$ cat /etc/redhat-release
Red Hat Enterprise Linux release 8.8 (Ootpa)
$
$ rpm -qa | grep 389-ds
389-ds-base-1.4.3.34-1.module+el8dsrv+18528+22f7779f.x86_64
389-ds-base-libs-1.4.3.34-1.module+el8dsrv+18528+22f7779f.x86_64
$
How reproducible:
Always.
Steps to Reproduce:
1. Run the step #5 documented here:
https://access.redhat.com/documentation/en-us/red_hat_directory_server/11/html/administration_guide/trimming_the_replication_changelog#manually_trimming_changelog
$ date ; dsconf -D "cn=Directory Manager" ldap://localhost:1389 backend compact-db --only-changelog
Thu Oct 19 11:16:57 CEST 2023
Enter password for cn=Directory Manager on ldap://localhost:1389:
Successfully started Database Compaction Task
$
Try without the option "--only-changelog":
$ date ; dsconf -D "cn=Directory Manager" ldap://localhost:1389 backend compact-db
Thu Oct 19 11:18:09 CEST 2023
Enter password for cn=Directory Manager on ldap://localhost:1389:
Successfully started Database Compaction Task
$
2. Check the errors log:
There is no mention about replication changelogs:
==================================
[19/Oct/2023:11:17:04.769616210 +0200] - NOTICE - bdb_compact - Compacting databases ...
[19/Oct/2023:11:17:04.771539140 +0200] - NOTICE - bdb_do_compact - Compacting DB start: userroot
[19/Oct/2023:11:17:04.773374311 +0200] - NOTICE - bdb_do_compact - compact userroot - 0 pages freed
...
[19/Oct/2023:11:17:04.815161860 +0200] - NOTICE - bdb_do_compact - Compacting databases finished.
...
[19/Oct/2023:11:18:16.822617190 +0200] - NOTICE - bdb_compact - Compacting databases ...
[19/Oct/2023:11:18:16.826735586 +0200] - NOTICE - bdb_do_compact - Compacting DB start: userroot
...
[19/Oct/2023:11:18:16.871960536 +0200] - NOTICE - bdb_do_compact - Compacting databases finished.
==================================
3. Try with the "COMPACT_CL5" task:
$ date ; ldapmodify -x -D "cn=Directory Manager" -W -H ldaps://localhost:1636
Thu Oct 19 11:19:10 CEST 2023
Enter LDAP Password:
dn: cn=replica,cn=dc\3Dexample\2Cdc\3Dcom,cn=mapping tree,cn=config
changetype: modify
replace: nsds5task
nsds5task: COMPACT_CL5
modifying entry "cn=replica,cn=dc\3Dexample\2Cdc\3Dcom,cn=mapping tree,cn=config"
$
Now the replication changelogs are compacted:
==================================
[19/Oct/2023:11:19:23.859362246 +0200] - NOTICE - NSMMReplicationPlugin - changelog program - cl5CompactDBs - compacting replication changelogs...
[19/Oct/2023:11:19:23.867203066 +0200] - NOTICE - NSMMReplicationPlugin - changelog program - cl5CompactDBs - compacting replication changelogs finished.
==================================
Actual results:
Cannot compact replication changelogs with the dsconf tool.
Expected results:
The documented command should work as expected.
Additional info:
Audit log:
==================================
time: 20231019111704
dn: cn=compact_db_2023-10-19T11:17:00.748218,cn=compact db,cn=tasks,cn=config
result: 0
changetype: add
objectClass: top
objectClass: extensibleObject
justchangelog: yes
cn: compact_db_2023-10-19T11:17:00.748218
creatorsName: cn=directory manager
modifiersName: cn=directory manager
createTimestamp: 20231019091700Z
modifyTimestamp: 20231019091700Z
time: 20231019111816
dn: cn=compact_db_2023-10-19T11:18:12.800716,cn=compact db,cn=tasks,cn=config
result: 0
changetype: add
objectClass: top
objectClass: extensibleObject
cn: compact_db_2023-10-19T11:18:12.800716
creatorsName: cn=directory manager
modifiersName: cn=directory manager
createTimestamp: 20231019091812Z
modifyTimestamp: 20231019091812Z
time: 20231019111923
dn: cn=replica,cn=dc\3Dexample\2Cdc\3Dcom,cn=mapping tree,cn=config
result: 0
changetype: modify
replace: nsDS5Task
nsDS5Task: COMPACT_CL5
-
replace: modifiersname
modifiersname: cn=directory manager
-
replace: modifytimestamp
modifytimestamp: 20231019091923Z
-
==================================
- clones
-
DIRSRV-63 Cannot compact the replication changelog using dsconf.[dirsrv-11.9z]
- Release Pending
- external trackers
- links to
-
RHBA-2024:140425 Important: redhat-ds:11 security and bug fix update
- mentioned on