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 1643772 - ds-replcheck should validate suffix exists and it's replicated.
Summary: ds-replcheck should validate suffix exists and it's replicated.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: 389-ds-base
Version: 7.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 7.7
Assignee: mreynolds
QA Contact: RHDS QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-10-28 15:14 UTC by German Parente
Modified: 2023-12-15 16:12 UTC (History)
9 users (show)

Fixed In Version: 389-ds-base-1.3.9.1-6.el7
Doc Type: Bug Fix
Doc Text:
Cause: Running ds-replcheck with a invalid suffix Consequence: The tool reports a very odd confusing error message Fix: Properly check if the suffix exists Result: The tools reports a useful error message when the suffix does not exist.
Clone Of:
Environment:
Last Closed: 2019-08-06 12:58:51 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github 389ds 389-ds-base issues 3056 0 None None None 2020-09-13 22:15:42 UTC
Red Hat Product Errata RHBA-2019:2152 0 None None None 2019-08-06 12:59:06 UTC

Description German Parente 2018-10-28 15:14:13 UTC
Description of problem:

seen at customer site, as first request to ldap database is the RUV, if the suffix provided in the command line does not exist or it's not replicated, we have an error message that it's regarding the RUV:

ds-replcheck -D "cn=directory manager" -w secret12 -b "o=ipaca" -r ldap://ipamaster.germanparente.local:389 -m ldap://ipareplica.germanparente.local
Performing online report...
Connecting to servers...
Gathering Master's RUV...
Error: Failed to get Master RUV entry: {'desc': 'No such object'}


Version-Release number of selected component (if applicable): 7.5


How reproducible: always


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 5 Akshay Adhikari 2019-05-07 14:52:13 UTC
Build Tested: 389-ds-base-1.3.9.1-5.el7.x86_64

Steps:

1) Create a replication between LDAP instances.
2) Run ds-replcheck -D "cn=directory manager" -w password -m ldap://aadhikar.example.com:39001 -r ldap://aadhikar.example.com:39002 -b "dc=test,dc=com"
where the suffix provided does not exist("dc=test,dc=com").

ds-replcheck script does not have the required changes, actual fix is not back-ported. Marking it as FAILED_QA.

Comment 6 Akshay Adhikari 2019-05-15 11:54:45 UTC
Build Tested: 389-ds-base-1.3.9.1-6.el7.x86_64

Steps:

1) Create a replication between LDAP instances

2) Run ds-replcheck script with an incorrect suffix

[root@master ~]# ds-replcheck -D "cn=directory manager" -w password -m ldap://`hostname`:39001 -r ldap://`hostname`:39002 -b "dc=test,dc=com"
Performing online report...
Connecting to servers...
Validating suffix ...
Error: Failed to validate suffix in web9.testrelm.test. dc=test,dc=com does not exist.

Marking it as VERIFIED.

Comment 8 errata-xmlrpc 2019-08-06 12:58:51 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-2019:2152


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