#8407 Support changelog integrated into main database
Closed: fixed 3 years ago by abbra. Opened 3 years ago by vashirov.

389-ds will integrate changelog into main database:
https://pagure.io/389-ds-base/issue/49562
http://www.port389.org/docs/389ds/design/integrate-changelog-database-and-backend-database.html

It also changes the location of the configuration from a single entry cn=changelog5,cn=config to an entry for each backend in cn=changelog,<backend>,cn=ldbm database,cn=plugins,cn=config

With PR#51181 the entry cn=changelog5,cn=config no longer exists, its creation fails with UNWILLING_TO_PERFORM.

This breaks IPA in a few places, in particular:

  • setup_changelog()
    Here the expected failure is err=68, it would be trivial to add err=53. A better way would be to reuse lib389 for setting up changelog, not sure how much refactoring that would involve.

  • update_unhashed_password()
    Since the entry no longer exists, log message would be affected.

  • update scripts
    nsslapd-changelogmaxage now needs to be set for each backend.

There are possibly other places, but this is what came up first by searching for changelog5.


I have a potential fix for these issues, will submit a PR.

Created a new PR to handle both replication changelog locations:

https://github.com/freeipa/freeipa/pull/4969

master:

  • 44259e8 Issue 8407 - Support changelog integration into main database

ipa-4-8:

  • 0a83d82 Issue 8407 - Support changelog integration into main database

Metadata Update from @abbra:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

3 years ago

Login to comment on this ticket.

Metadata