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.

Bug 1739718

Summary: Port remaining legacy tools to new CLI
Product: Red Hat Enterprise Linux 8 Reporter: mreynolds
Component: 389-ds-baseAssignee: mreynolds
Status: CLOSED ERRATA QA Contact: RHDS QE <ds-qe-bugs>
Severity: high Docs Contact: Marc Muehlfeld <mmuehlfe>
Priority: high    
Version: 8.1CC: bsmejkal, lkrispen, nkinder, pasik, spichugi, tbordaz, vashirov
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: 8.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 389-ds-base-1.4.2.4-1.module+el8.2.0+4699+cf2da360 Doc Type: Enhancement
Doc Text:
.Certain legacy scripts have been replaced in Directory Server This enhancement provides replacements for the unsupported `dbverify`, `validate-syntax.pl`, `cl-dump.pl`, `fixup-memberuid.pl`, and `repl-monitor.pl` legacy scripts in Directory Server. These scripts have been replaced with the following commands: * `dbverify`: `dsctl _instance_name_ dbverify` * `validate-syntax.pl`: `dsconf schema validate-syntax` * `cl-dump.pl`: `dsconf replication dump-changelog` * `fixup-memberuid.pl`: `dsconf plugin posix-winsync fixup` * `repl-monitor.pl`: `dsconf replication monitor` For a list of all legacy scripts and their replacements, see link:https://access.redhat.com/documentation/en-us/red_hat_directory_server/11/html/installation_guide/command-line-utilities-replaced-in-rhds11[Command-line utilities replaced in Red Hat Directory Server 11].
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-28 16:01:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description mreynolds 2019-08-09 20:28:46 UTC
Description of problem:

We still have to port these legacy tools to the CLI:

    dbmon.sh
    dbverify
    dbgen
    rsearch(?)
    validate-syntax.pl
    fixup-memberuid.pl
    repl-monitor.pl
        We have this working on the agreement level, but not like the full report that repl-monitor.pl can do


Once this is done we can start phasing out the legacy tools package

Comment 1 mreynolds 2019-08-09 20:29:46 UTC
Upstream ticket

https://pagure.io/389-ds-base/issue/50545

Comment 7 bsmejkal 2020-02-13 09:35:03 UTC
Build tested:
389-ds-base-1.4.2.4-7.module+el8.2.0+5670+0b8b1c2e.x86_64

dbmon.sh - not ported yet - https://bugzilla.redhat.com/show_bug.cgi?id=1795943
rsearch - not ported yet - https://bugzilla.redhat.com/show_bug.cgi?id=1795939
dbgen - not ported completely - https://bugzilla.redhat.com/show_bug.cgi?id=1798394

fixup-memberuid.pl => dsconf ldap://server1.example.com:38901 -D "cn=Directory Manager" -w password plugin posix-winsync fixup dc=example,dc=com

repl-monitor.pl => dsconf ldap://server1.example.com:38901 -D "cn=Directory Manager" -w password replication monitor

db-verify => dsctl test_instance dbverify userRoot

cl-dump.pl => dsconf ldap://server1.example.com:38901 -D "cn=Directory Manager" -w password replication dump-changelog

validate-syntax.pl => dsconf ldap://server1.example.com:38901 -D "cn=Directory Manager" -w password schema validate-syntax dc=example,dc=com

Test results for validate-syntax:
=============================================================================================== test session starts ===============================================================================================
platform linux -- Python 3.6.8, pytest-5.3.5, py-1.8.1, pluggy-0.13.1 -- /usr/bin/python3.6
cachedir: .pytest_cache
metadata: {'Python': '3.6.8', 'Platform': 'Linux-4.18.0-176.el8.x86_64-x86_64-with-redhat-8.2-Ootpa', 'Packages': {'pytest': '5.3.5', 'py': '1.8.1', 'pluggy': '0.13.1'}, 'Plugins': {'metadata': '1.8.0', 'html': '2.0.1'}}
389-ds-base: 1.4.2.4-7.module+el8.2.0+5670+0b8b1c2e
nss: 3.44.0-15.el8
nspr: 4.21.0-2.el8_0
openldap: 2.4.46-11.el8
cyrus-sasl: 2.1.27-1.el8
FIPS: disabled
rootdir: /mnt/tests/rhds/tests/upstream/ds/dirsrvtests, inifile: pytest.ini
plugins: metadata-1.8.0, html-2.0.1
collected 2 items                                                                                                                                                                                                 

acceptance_test.py::test_valid PASSED                                                                                                                                                                       [ 50%]
acceptance_test.py::test_invalid_uidnumber PASSED                                                                                                                                                           [100%]

=============================================================================================== 2 passed in 21.87s ================================================================================================


Test results for cl-dump:
=============================================================================================== test session starts ===============================================================================================
platform linux -- Python 3.6.8, pytest-5.3.5, py-1.8.1, pluggy-0.13.1 -- /usr/bin/python3.6
cachedir: .pytest_cache
metadata: {'Python': '3.6.8', 'Platform': 'Linux-4.18.0-176.el8.x86_64-x86_64-with-redhat-8.2-Ootpa', 'Packages': {'pytest': '5.3.5', 'py': '1.8.1', 'pluggy': '0.13.1'}, 'Plugins': {'metadata': '1.8.0', 'html': '2.0.1'}}
389-ds-base: 1.4.2.4-7.module+el8.2.0+5670+0b8b1c2e
nss: 3.44.0-15.el8
nspr: 4.21.0-2.el8_0
openldap: 2.4.46-11.el8
cyrus-sasl: 2.1.27-1.el8
FIPS: disabled
rootdir: /mnt/tests/rhds/tests/upstream/ds/dirsrvtests, inifile: pytest.ini
plugins: metadata-1.8.0, html-2.0.1
collected 1 item                                                                                                                                                                                                  

changelog_test.py::test_dsconf_dump_changelog_files_removed PASSED                                                                                                                                          [100%]

==================================================================================== 1 passed in 156.58s (0:02:36) ================================================================================================

Comment 9 errata-xmlrpc 2020-04-28 16:01:20 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, 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:1703