Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1926928

Summary: Invalid defaults.inf, missing key db_home_dir
Product: Red Hat Directory Server Reporter: sgouvern
Component: 389-ds-baseAssignee: LDAP Maintainers <ldap-maint>
Status: CLOSED CURRENTRELEASE QA Contact: RHDS QE <ds-qe-bugs>
Severity: unspecified Docs Contact: Marc Muehlfeld <mmuehlfe>
Priority: unspecified    
Version: 11.1CC: ldap-maint, mreynolds
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-06-25 21:28:41 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 sgouvern 2021-02-09 17:03:21 UTC
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.4.2.12-4.module+el8dsrv+9724+324d713e.x86_64

How reproducible:
always


Steps to Reproduce:
Run any test with pytest

Actual results:
# PYTHONPATH=src/lib389 py.test -v dirsrvtests/tests/suites/basic/basic_test.py::test_basic_ops
re-exec with libfaketime dependencies
========================================================================= test session starts ==========================================================================
platform linux -- Python 3.6.8, pytest-6.2.2, py-1.10.0, pluggy-0.13.1 -- /usr/bin/python3.6
cachedir: .pytest_cache
metadata: {'Python': '3.6.8', 'Platform': 'Linux-4.18.0-193.el8.x86_64-x86_64-with-redhat-8.2-Ootpa', 'Packages': {'pytest': '6.2.2', 'py': '1.10.0', 'pluggy': '0.13.1'}, 'Plugins': {'metadata': '1.11.0', 'html': '3.1.1', 'libfaketime': '0.1.2'}}
389-ds-base: 1.4.2.12-4.module+el8dsrv+9724+324d713e
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, configfile: pytest.ini
plugins: metadata-1.11.0, html-3.1.1, libfaketime-0.1.2
collected 0 items / 1 error                                                                                                                                            

================================================================================ ERRORS ================================================================================
__________________________________________________________ ERROR collecting tests/suites/basic/basic_test.py ___________________________________________________________
dirsrvtests/tests/suites/basic/basic_test.py:623: in <module>
    @pytest.mark.skipif(ds_is_older("1.4.2.0"), reason="Not implemented")
src/lib389/lib389/utils.py:1101: in ds_is_older
    return ds_is_related('older', *ver, instance=instance)
src/lib389/lib389/utils.py:1086: in ds_is_related
    ds_ver = get_ds_version()
src/lib389/lib389/utils.py:1076: 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'



Expected results:
'db_home_dir' should be present in defaults.inf

Additional info:

Comment 1 sgouvern 2021-02-09 17:06:36 UTC
This bug was already reported in https://bugzilla.redhat.com/show_bug.cgi?id=1820433

Comment 2 sgouvern 2021-02-09 17:07:57 UTC
*** Bug 1926923 has been marked as a duplicate of this bug. ***