Hide Forgot
Description of problem: cl-dump utility generates *.ldif files in the changelog directory. At the end, they are renamed to *ldif.done but they are never deleted. And in some cases, these files can be very large which is provoking an issue at a customer. Version-Release number of selected component (if applicable): How reproducible: very simple by running cl-dump.pl
Not sure I fully understand what the problem is. Does the customer want the script to remove existing changelog LDIF files after creating a new one? So this is a RFE not a bug, correct?
Upstream issue: https://pagure.io/389-ds-base/issue/50572
So by default now, we remove ldif.done files after running cl-dump. And if we specify an option '-l', it will allow us to preserve the files. Man pages were updated too.
Verified with 389-ds-base-1.3.10.1-4.el7.x86_64 - automated test ds/dirsrvtests/tests/suites/replication/changelog_test.py::test_cldump_files_removed [root@cypher upstream]# py.test -v ds/dirsrvtests/tests/suites/replication/changelog_test.py ======================================================= test session starts ======================================================= platform linux -- Python 3.6.3, pytest-5.2.2, py-1.8.0, pluggy-0.13.0 -- /opt/rh/rh-python36/root/usr/bin/python3 cachedir: .pytest_cache metadata: {'Python': '3.6.3', 'Platform': 'Linux-3.10.0-1108.el7.x86_64-x86_64-with-redhat-7.8-Maipo', 'Packages': {'pytest': '5.2.2', 'py': '1.8.0', 'pluggy': '0.13.0'}, 'Plugins': {'metadata': '1.8.0', 'html': '2.0.0'}} 389-ds-base: 1.3.10.1-4.el7 nss: 3.44.0-4.el7 nspr: 4.21.0-1.el7 openldap: 2.4.44-21.el7_6 cyrus-sasl: 2.1.26-23.el7 FIPS: disabled rootdir: /mnt/tests/rhds/tests/upstream/ds/dirsrvtests, inifile: pytest.ini plugins: metadata-1.8.0, html-2.0.0 collected 9 items ds/dirsrvtests/tests/suites/replication/changelog_test.py::test_cldump_files_removed PASSED [ 11%] ds/dirsrvtests/tests/suites/replication/changelog_test.py::test_dsconf_dump_changelog_files_removed PASSED [ 22%] Man pages verified sanity only with 389-ds-base-1.3.10.1 checkout : /home/fedora/clone/389-ds-base/389-ds-base-1.3.10.1/man/man1/cl-dump.1 20 .SH SYNOPSIS 21 .B cl\-dump 22 [\fI\-h host\fR] [\fI\-p port\fR] [\fI\-D bind\(hydn\fR] \-w bind\(hypassword | \-P bind\(hycert 23 [\fI\-r replica\(hyroots\fR] [\fI\-o output\(hyfile\fR] [\fI\-c\fR] [\fI\-l\fR] [\fI\-v\fR] 24 25 .PP 50 .B \-l 51 Preserve generated ldif.done files from changelogdir 52 .TP 72 .B \-v 73 Print the version of this script.
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-2020:1064