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.
Description of problem:
Latest lib389 from master requires a new key 'db_home_dir' in defaults.inf that is missing in the older builds of 389-ds-base.
Version-Release number of selected component (if applicable):
389-ds-base-1.3.10.2-1.el7.x86_64
How reproducible:
always
Steps to Reproduce:
1. Run any test with pytest on RHEL7 or RHEL8
2.
3.
Actual results:
# PYTHONPATH=src/lib389 py.test -v dirsrvtests/tests/suites/basic/basic_test.py::test_basic_ops
============================================================================ test session starts ============================================================================
platform linux -- Python 3.6.8, pytest-5.4.1, py-1.8.1, pluggy-0.13.1 -- /usr/bin/python3
cachedir: .pytest_cache
389-ds-base: 1.3.10.2-1.el7
nss: 3.44.0-5.el7
nspr: 4.21.0-1.el7
openldap: 2.4.44-21.el7_6
cyrus-sasl: 2.1.26-23.el7
FIPS: disabled
rootdir: /workspace/ds/dirsrvtests, inifile: pytest.ini
collected 0 items / 1 error
================================================================================== ERRORS ===================================================================================
_____________________________________________________________ ERROR collecting tests/suites/basic/basic_test.py _____________________________________________________________
dirsrvtests/tests/suites/basic/basic_test.py:627: in <module>
@pytest.mark.skipif(ds_is_older("1.4.2.0"), reason="Not implemented")
src/lib389/lib389/utils.py:1102: in ds_is_older
return ds_is_related('older', *ver, instance=instance)
src/lib389/lib389/utils.py:1087: in ds_is_related
ds_ver = get_ds_version()
src/lib389/lib389/utils.py:1077: in get_ds_version
return paths.version
src/lib389/lib389/paths.py:157: in __getattr__
self._validate_defaults()
src/lib389/lib389/paths.py:150: in _validate_defaults
raise KeyError('Invalid defaults.inf, missing key %s' % k)
E KeyError: 'Invalid defaults.inf, missing key db_home_dir'
========================================================================== short test summary info ==========================================================================
ERROR dirsrvtests/tests/suites/basic/basic_test.py - KeyError: 'Invalid defaults.inf, missing key db_home_dir'
============================================================================= 1 error in 0.33s ==============================================================================
ERROR: not found: /workspace/ds/dirsrvtests/tests/suites/basic/basic_test.py::test_basic_ops
(no name '/workspace/ds/dirsrvtests/tests/suites/basic/basic_test.py::test_basic_ops' in any of [<Module basic_test.py>])
Expected results:
'db_home_dir' should be present in defaults.inf
Additional info:
Build tested: 389-ds-base-1.3.10.2-2.el7.x86_64
# grep db_home_dir /usr/share/dirsrv/inf/defaults.inf
db_home_dir = /var/lib/dirsrv/slapd-{instance_name}
Tests are working out of the box, marking as VERIFIED.
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-base 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-2020:3894
Description of problem: Latest lib389 from master requires a new key 'db_home_dir' in defaults.inf that is missing in the older builds of 389-ds-base. Version-Release number of selected component (if applicable): 389-ds-base-1.3.10.2-1.el7.x86_64 How reproducible: always Steps to Reproduce: 1. Run any test with pytest on RHEL7 or RHEL8 2. 3. Actual results: # PYTHONPATH=src/lib389 py.test -v dirsrvtests/tests/suites/basic/basic_test.py::test_basic_ops ============================================================================ test session starts ============================================================================ platform linux -- Python 3.6.8, pytest-5.4.1, py-1.8.1, pluggy-0.13.1 -- /usr/bin/python3 cachedir: .pytest_cache 389-ds-base: 1.3.10.2-1.el7 nss: 3.44.0-5.el7 nspr: 4.21.0-1.el7 openldap: 2.4.44-21.el7_6 cyrus-sasl: 2.1.26-23.el7 FIPS: disabled rootdir: /workspace/ds/dirsrvtests, inifile: pytest.ini collected 0 items / 1 error ================================================================================== ERRORS =================================================================================== _____________________________________________________________ ERROR collecting tests/suites/basic/basic_test.py _____________________________________________________________ dirsrvtests/tests/suites/basic/basic_test.py:627: in <module> @pytest.mark.skipif(ds_is_older("1.4.2.0"), reason="Not implemented") src/lib389/lib389/utils.py:1102: in ds_is_older return ds_is_related('older', *ver, instance=instance) src/lib389/lib389/utils.py:1087: in ds_is_related ds_ver = get_ds_version() src/lib389/lib389/utils.py:1077: in get_ds_version return paths.version src/lib389/lib389/paths.py:157: in __getattr__ self._validate_defaults() src/lib389/lib389/paths.py:150: in _validate_defaults raise KeyError('Invalid defaults.inf, missing key %s' % k) E KeyError: 'Invalid defaults.inf, missing key db_home_dir' ========================================================================== short test summary info ========================================================================== ERROR dirsrvtests/tests/suites/basic/basic_test.py - KeyError: 'Invalid defaults.inf, missing key db_home_dir' ============================================================================= 1 error in 0.33s ============================================================================== ERROR: not found: /workspace/ds/dirsrvtests/tests/suites/basic/basic_test.py::test_basic_ops (no name '/workspace/ds/dirsrvtests/tests/suites/basic/basic_test.py::test_basic_ops' in any of [<Module basic_test.py>]) Expected results: 'db_home_dir' should be present in defaults.inf Additional info: