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 1916292 - Indexing a single backend actually processes all configured backends.
Summary: Indexing a single backend actually processes all configured backends.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: 389-ds-base
Version: 8.3
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: 8.6
Assignee: Jamie Chapman
QA Contact: RHDS QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-01-14 13:45 UTC by Têko Mihinto
Modified: 2022-05-10 14:11 UTC (History)
6 users (show)

Fixed In Version: 389-ds-1.4-8060020211021200750.ce3e8c9c
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-10 13:43:00 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github 389ds 389-ds-base issues 4603 0 None open Indexing a single backend actually processes all configured backends 2021-02-18 08:41:25 UTC
Red Hat Knowledge Base (Solution) 5790481 0 None None None 2021-02-10 00:40:54 UTC
Red Hat Product Errata RHBA-2022:1815 0 None None None 2022-05-10 13:43:29 UTC

Description Têko Mihinto 2021-01-14 13:45:27 UTC
Description of problem:
While trying to index a given backend, the command output shows that all configured backends are being processed.
This can be problematic if one wants to reindex a small database and the command takes time because it runs also on existing larger backends.

Version-Release number of selected component (if applicable):
# cat /etc/redhat-release 
Red Hat Enterprise Linux release 8.3 (Ootpa)
#
# rpm -qa | grep 389-ds-base
389-ds-base-1.4.3.13-1.module+el8dsrv+8334+69a46a2e.x86_64
389-ds-base-libs-1.4.3.13-1.module+el8dsrv+8334+69a46a2e.x86_64
#


How reproducible:
Always.

Steps to Reproduce:
1. Check the existing suffixes
#  dsconf -D "cn=Directory Manager" ldap://localhost:1389 backend suffix list 
Enter password for cn=Directory Manager on ldap://localhost:1389: 
dc=example,dc=com (userroot)
dc=navigation,dc=com (navigation)
o=test_numsubordinates (test)
#

2. Stop the server
# dsctl <INSTANCE> stop

3. Index a single backend:
# dsctl <INSTANCE> db2index userRoot
...
[14/Jan/2021:14:24:50.296524393 +0100] - INFO - bdb_pre_close - All database threads now stopped
db2index successful
#

4. Check the output of the command or the errors log.
One can see all backends being processed:
# grep "Reindexing complete" /var/log/dirsrv/slapd-<INSTANCE>/errors
[14/Jan/2021:14:24:46.741008633 +0100] - INFO - bdb_import_main - reindex userRoot: Reindexing complete.  Processed 160 entries in 1 seconds. (160.00 entries/sec)
[14/Jan/2021:14:24:47.939195147 +0100] - INFO - bdb_import_main - reindex Test: Reindexing complete.  Processed 14 entries in 0 seconds. (0.00 entries/sec)
[14/Jan/2021:14:24:50.269778456 +0100] - INFO - bdb_import_main - reindex navigation: Reindexing complete.  Processed 13 entries in 1 seconds. (13.00 entries/sec)
#

Actual results:
All backends are processed.

Expected results:
Only the specified backend should be processed.

Additional info:

Comment 9 bsmejkal 2021-11-04 10:08:23 UTC
============================================================================================================ test session starts =============================================================================================================
platform linux -- Python 3.6.8, pytest-6.2.5, py-1.10.0, pluggy-1.0.0 -- /usr/bin/python3.6
cachedir: .pytest_cache
metadata: {'Python': '3.6.8', 'Platform': 'Linux-4.18.0-348.4.el8.x86_64-x86_64-with-redhat-8.6-Ootpa', 'Packages': {'pytest': '6.2.5', 'py': '1.10.0', 'pluggy': '1.0.0'}, 'Plugins': {'metadata': '1.11.0', 'html': '3.1.1', 'libfaketime': '0.1.2', 'flaky': '3.7.0'}}
389-ds-base: 1.4.3.28-1.module+el8.6.0+13040+7da9aab8
nss: 3.67.0-6.el8_4
nspr: 4.32.0-1.el8_4
openldap: 2.4.46-18.el8
cyrus-sasl: 2.1.27-5.el8
FIPS: disabled
rootdir: /mnt/tests/rhds/tests/upstream/ds/dirsrvtests, configfile: pytest.ini
plugins: metadata-1.11.0, html-3.1.1, libfaketime-0.1.2, flaky-3.7.0
collected 1 item                                                                                                                                                                                                                             

dirsrvtests/tests/suites/basic/basic_test.py::test_basic_db2index PASSED                                                                                                                                                               [100%]

====================================================================================================== 1 passed, 14 warnings in 54.39s =======================================================================================================

Marking as VERIFIED.

Comment 11 errata-xmlrpc 2022-05-10 13:43:00 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 (389-ds:1.4 bug fix and enhancement update), 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-2022:1815


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