Skip to content

lib389 get_db_lib function may returns the wrong db type #6321

Closed
@progier389

Description

@progier389

Issue Description
lib389 get_db_lib function may returns the default database type instead of the configured one.

Package Version and Platform:

  • Platform: CentOS 9
  • Package and version: 389-ds-base-2.5.2-1.el9
  • Browser: N/A

Steps to Reproduce
Steps to reproduce the behavior:

  1. Setup an lmdb instance
  2. Run dsctl instance healthcheck
  3. See DSBLE0006 and DSBLE0005 errors

Expected results
Healthcheck should not display any errors.

Additional context
Problem is that from backend import DatabaseConfig generate an ImportError so the call to DatabaseConfig(self).get_db_lib() is bypassed.
It should rather be:from lib389.backend import DatabaseConfig

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions