[389-users] Re: Help with dblib bdb2mdb

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm not very well versed in programming languages, but I did some
investigations.

It looks like 
/usr/lib/python3.9/site-packages/lib389/backend.py
invokes self._instance.get_db_lib

get_db_lib is defined in
/usr/lib/python3.9/site-packages/lib389/__init__.py

Here, at line 873

def get_db_lib(self):
   ...
   return get_default_db_lib()


get_default_db_lib is defined in

/usr/lib/python3.9/site-packages/lib389/utils.py

and it

return os.getenv('NSSLAPD_DB_LIB', default=DEFAULT_DB_LIB)

Since NSSLAPD_DB_LIB is not defined as an environment variable,
DEFAULT_DB_LIB i returned.


DEFAULT_DB_LIB is defined in

/usr/lib/python3.9/site-packages/lib389/_constants.py

and the value is DEFAULT_DB_LIB = 'bdb'


So in my case it looks like DEFAULT_DB_LIB is always used when I use
dsctl healthcheck

If I put DEFAULT_DB_LIB = 'mdb' in _constants.py, then healthcheck
stops complaining.


Thanks,
A.

On Fri, 2024-08-30 at 17:33 +0200, Pierre Rogier wrote:
> For healthcheck, I see 2 possibilities:
>  [1] NSSLAPD_DB_LIB=bdb is set in your environment (saying lib389
> that bdb is used ...) 
>  [2] There is a bug somewhere. (which seems a bit weird since 'dsconf
> supplier1 backend config  get' is working as expected ...)
>        BTW, Which exact 389-ds-base version are you using ? and on
> which platform ?
> 

-- 
_______________________________________________
389-users mailing list -- 389-users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to 389-users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/389-users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Index of Archives]     [Fedora User Discussion]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora News]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora QA]     [Fedora Triage]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Yosemite Photos]     [Linux Apps]     [Maemo Users]     [Gnome Users]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Maemo Users]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Fedora ARM]

  Powered by Linux