mNo edit summary |
(FIxed formatting) |
||
Line 52: | Line 52: | ||
== Detailed Description == | == Detailed Description == | ||
<!-- Expand on the summary, if appropriate. A couple sentences suffices to explain the goal, but the more details you can provide the better. --> | <!-- Expand on the summary, if appropriate. A couple sentences suffices to explain the goal, but the more details you can provide the better. --> | ||
Since Fedora 36 (389-ds-base 2.1.0) | Since Fedora 36 (389-ds-base 2.1.0), the 389 Directory Server supports two kinds of underlying database: | ||
* Berkeley Database (BDB) | |||
* Lightning Memory-Mapped Database Manager (LMDB) | |||
Newly created instances are still created with BDB by default while libdb is flagged as [[Changes/Libdb deprecated - Fedora Project Wiki|deprecated since Fedora 33]], this change is about to create instances with LMDB by default. | |||
== Feedback == | == Feedback == | ||
Line 64: | Line 66: | ||
== Benefit to Fedora == | == Benefit to Fedora == | ||
A step on | A step on the way to remove a deprecated piece of software no longer supported by the upstream community. | ||
(See https://fedoraproject.org/wiki/Changes/Libdb_deprecated) | (See https://fedoraproject.org/wiki/Changes/Libdb_deprecated) | ||
== Scope == | == Scope == | ||
The change is quite limited in | The change is quite limited in terms of development and interface impact, but it impacts a critical component: FreeIPA. | ||
but it impacts a critical component: | |||
[1] Impact on software that uses generic LDAP interface without any specific | [1] Impact on software that uses generic LDAP interface without any specific 389DS features (like configuration tools and monitoring entries): | ||
No interface impact, but there may be some impact in terms of dynamic (i.e: response time, maximum throughput). Especially if browsing (i.e VLV) indexes are used on big lists. | |||
[2] Impact on software that explicitly creates | [2] Impact on software that explicitly creates 389DS instances (like FreeIPA) may also have to change the way the database is tuned. (Especially the database maximum size: `nsslapd-mdb-max-size`) | ||
[3] Impact | [3] Impact on software that explicitly uses backend monitoring LDAP entries: new attributes about LMDB specific data are present. | ||
There are no packages in [3] case and | There are no packages in [3] case and FreeIPA is the only one in [2] case but there is likely an unknown number of software in [1] case that use the LDAP interface without needing a specific LDAP server. | ||
So in summary the main risk is to see some regression in tests. | So, in summary, the main risk is to see some regression in tests. | ||
* Proposal owners: | * Proposal owners: | ||
Line 86: | Line 88: | ||
Development impact: | Development impact: | ||
- Change of a default value of one parameter of the instance creation utility (`dscreate`) | |||
so the | - Provide a better visibility of that parameter in configuration tools (`dscreate` and `dsconf`) | ||
The larger impact is to determine | |||
(with the help the | The above changes have already been done to be able to build the test packages, so the remaining work is to merge the commit in the upstream branch and rebase it to rawhide. | ||
The larger impact is to determine if there are any regressions while running 389DS and FreeIPA tests and fix them (with the help of the FreeIPA team). | |||
* Other developers: <!-- REQUIRED FOR SYSTEM WIDE CHANGES --> | * Other developers: <!-- REQUIRED FOR SYSTEM WIDE CHANGES --> | ||
Other | The FreeIPA team is involved to help us diagnose any potential FreeIPA test regressions. | ||
Other QA teams may also be involved to test that there are no regressions. | |||
* Release engineering: [https://pagure.io/releng/issues #Releng issue number] <!-- REQUIRED FOR SYSTEM WIDE CHANGES --> | * Release engineering: [https://pagure.io/releng/issues #Releng issue number] <!-- REQUIRED FOR SYSTEM WIDE CHANGES --> | ||
Line 120: | Line 119: | ||
<!-- What happens to systems that have had a previous versions of Fedora installed and are updated to the version containing this change? Will anything require manual configuration or data migration? Will any existing functionality be no longer supported? --> | <!-- What happens to systems that have had a previous versions of Fedora installed and are updated to the version containing this change? Will anything require manual configuration or data migration? Will any existing functionality be no longer supported? --> | ||
No impact on upgrade because existing instances still use the previously installed | No impact on upgrade because existing instances still use the previously installed backend interface. | ||
There should not be any compatibility issues (bugs excepted) with the LDAP requests, but performance may be impacted. | |||
There | There may be issues with applications that explicitly: | ||
* Configure 389 Directory Server instances (like FreeIPA) because the set of configuration attributes for the backend depends on the underlying database implementation. | |||
The unused parameters are ignored, so it should not impact the compatibility. | |||
But there is a risk with the new parameters: the "20 GB" default value for the LMDB database maximum size may not be large enough for the application's needs. | |||
* Monitor 389 Directory Server backends because the set of attributes in the monitoring entries also depends on the underlying database implementation. | |||
More details about these points are described in [ | |||
More details about these points are described in [https://www.port389.org/docs/389ds/FAQ/Berkeley-DB-deprecation.html 389 Directory Server FAQ - BerkeleyDB backend deprecation] | |||
== How To Test == | == How To Test == | ||
Line 146: | Line 148: | ||
--> | --> | ||
[https://copr.fedorainfracloud.org/coprs/g/389ds/389-ds-base-freeipa-tests/ COPR project] contains builds that can be tested (F37, F38, F39, rawhide on x86_64 and s390x). | |||
https://copr.fedorainfracloud.org/coprs/g/389ds/389-ds-base-freeipa-tests/ | |||
So you can install them by using: | So you can install them by using: | ||
< | <pre> | ||
sudo dnf copr enable -y @389ds/389-ds-base-freeipa-tests | sudo dnf copr enable -y @389ds/389-ds-base-freeipa-tests | ||
sudo dnf install 389-ds-base-3.0.0 | sudo dnf install 389-ds-base-3.0.0 | ||
</ | </pre> | ||
Then you can create new directory server instances and use them. | Then you can create new directory server instances and use them. | ||
Line 170: | Line 170: | ||
- Green has been scientifically proven to be the most relaxing color. The move to a default background color of green with green text will result in Fedora users being the most relaxed users of any operating system. | - Green has been scientifically proven to be the most relaxing color. The move to a default background color of green with green text will result in Fedora users being the most relaxed users of any operating system. | ||
--> | --> | ||
Prepare the removal of an obsolete piece of software | Prepare for the removal of an obsolete piece of software that is no longer supported by the upstream community. This process aims to provide more visibility to its replacement. | ||
== Dependencies == | == Dependencies == | ||
Line 176: | Line 176: | ||
<!-- REQUIRED FOR SYSTEM WIDE CHANGES --> | <!-- REQUIRED FOR SYSTEM WIDE CHANGES --> | ||
All the dependent packages are owned by | All the dependent packages are owned by 389DS and FreeIPA teams: | ||
`dnf repoquery --whatrequires 389-ds-base | `dnf repoquery --whatrequires 389-ds-base --recursive` | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 185: | Line 185: | ||
! Package !! Owner !! Tests | ! Package !! Owner !! Tests | ||
|- | |- | ||
| 389-ds-base-snmp || | | 389-ds-base-snmp || 389DS || Tested by 389DS CI test | ||
|- | |- | ||
| | | cockpit-389-ds || 389DS || Tested by 389DS CI test | ||
|- | |- | ||
| freeipa- | | freeipa-fas || FreeIPA || Tested by FreeIPA CI test | ||
|- | |- | ||
| freeipa- | | freeipa-healthcheck || FreeIPA || Tested by FreeIPA CI test | ||
|- | |- | ||
| freeipa-server | | freeipa-server || FreeIPA || Tested by FreeIPA CI test | ||
|- | |- | ||
| freeipa-server- | | freeipa-server-dns || FreeIPA || Tested by FreeIPA CI test | ||
|- | |- | ||
| | | freeipa-server-trust-ad || FreeIPA || Tested by FreeIPA CI test | ||
|- | |- | ||
| slapi-nis || | | migrationtools || 389DS || Not impacted by the change | ||
|- | |||
| slapi-nis || FreeIPA || Tested by FreeIPA CI test | |||
|} | |} | ||
Line 208: | Line 209: | ||
* Contingency mechanism: (What to do? Who will do it?) N/A (not a System Wide Change) <!-- REQUIRED FOR SYSTEM WIDE CHANGES --> | * Contingency mechanism: (What to do? Who will do it?) N/A (not a System Wide Change) <!-- REQUIRED FOR SYSTEM WIDE CHANGES --> | ||
Contingency mechanism: | Contingency mechanism: | ||
* Revert the default backend implementation to Berkeley Database | |||
* If libdb-5.3/libdb-devel are no longer shipped in Fedora: build it locally and link it as static libraries. (It will probably be done anyway to handle the db migration) | |||
Contingency deadline: Fedora 40 branching from Rawhide | Contingency deadline: Fedora 40 branching from Rawhide | ||
Line 224: | Line 226: | ||
<!-- REQUIRED FOR SYSTEM WIDE CHANGES --> | <!-- REQUIRED FOR SYSTEM WIDE CHANGES --> | ||
[[https://www.port389.org/docs/389ds/FAQ/Berkeley-DB-deprecation.html|389 Directory Server FAQ - BerkeleyDB backend deprecation]] | |||
== Release Notes == | == Release Notes == | ||
Line 232: | Line 234: | ||
Release Notes are not required for initial draft of the Change Proposal but has to be completed by the Change Freeze. | Release Notes are not required for initial draft of the Change Proposal but has to be completed by the Change Freeze. | ||
--> | --> | ||
Need to | Need to write release notes for 3.0.0 in https://www.port389.org/docs/389ds/releases/release-notes.html as usual for 389DS. | ||
in https://www.port389.org/docs/389ds/releases/release-notes.html as usual for |
Revision as of 12:45, 14 November 2023
389_Directory_Server_30
Summary
389-ds-base upgrade from version 2.4.4 to the latest upstream version 3.0.0 in Fedora. Newly created instances now are using LDMB database by default instead of BerkeleyDB.
Owner
- Name: 389ds Group
- Email: 389-devel (at) lists (dot) fedoraproject (dot) org
Primary contact:
- Name: Pierre Rogier
- Email: progier (at) redhat (dot) com
Current status
- Targeted release: Fedora Linux 40
- Last updated: 2023-11-14
- [<will be assigned by the Wrangler> devel thread]
- FESCo issue: <will be assigned by the Wrangler>
- Tracker bug: <will be assigned by the Wrangler>
- Release notes tracker: <will be assigned by the Wrangler>
Detailed Description
Since Fedora 36 (389-ds-base 2.1.0), the 389 Directory Server supports two kinds of underlying database:
- Berkeley Database (BDB)
- Lightning Memory-Mapped Database Manager (LMDB)
Newly created instances are still created with BDB by default while libdb is flagged as deprecated since Fedora 33, this change is about to create instances with LMDB by default.
Feedback
No feedback yet.
Benefit to Fedora
A step on the way to remove a deprecated piece of software no longer supported by the upstream community. (See https://fedoraproject.org/wiki/Changes/Libdb_deprecated)
Scope
The change is quite limited in terms of development and interface impact, but it impacts a critical component: FreeIPA.
[1] Impact on software that uses generic LDAP interface without any specific 389DS features (like configuration tools and monitoring entries): No interface impact, but there may be some impact in terms of dynamic (i.e: response time, maximum throughput). Especially if browsing (i.e VLV) indexes are used on big lists.
[2] Impact on software that explicitly creates 389DS instances (like FreeIPA) may also have to change the way the database is tuned. (Especially the database maximum size: nsslapd-mdb-max-size
)
[3] Impact on software that explicitly uses backend monitoring LDAP entries: new attributes about LMDB specific data are present.
There are no packages in [3] case and FreeIPA is the only one in [2] case but there is likely an unknown number of software in [1] case that use the LDAP interface without needing a specific LDAP server.
So, in summary, the main risk is to see some regression in tests.
- Proposal owners:
Development impact:
- Change of a default value of one parameter of the instance creation utility (dscreate
)
- Provide a better visibility of that parameter in configuration tools (dscreate
and dsconf
)
The above changes have already been done to be able to build the test packages, so the remaining work is to merge the commit in the upstream branch and rebase it to rawhide.
The larger impact is to determine if there are any regressions while running 389DS and FreeIPA tests and fix them (with the help of the FreeIPA team).
- Other developers:
The FreeIPA team is involved to help us diagnose any potential FreeIPA test regressions.
Other QA teams may also be involved to test that there are no regressions.
- Release engineering: #Releng issue number
N/A (not needed for this Change): No strong coordination is needed as only a single group of package is directly impacted.
- Policies and guidelines: N/A (not needed for this Change)
- Trademark approval: N/A (not needed for this Change)
- Alignment with Community Initiatives:
Upgrade/compatibility impact
No impact on upgrade because existing instances still use the previously installed backend interface.
There should not be any compatibility issues (bugs excepted) with the LDAP requests, but performance may be impacted.
There may be issues with applications that explicitly:
- Configure 389 Directory Server instances (like FreeIPA) because the set of configuration attributes for the backend depends on the underlying database implementation.
The unused parameters are ignored, so it should not impact the compatibility. But there is a risk with the new parameters: the "20 GB" default value for the LMDB database maximum size may not be large enough for the application's needs.
- Monitor 389 Directory Server backends because the set of attributes in the monitoring entries also depends on the underlying database implementation.
More details about these points are described in 389 Directory Server FAQ - BerkeleyDB backend deprecation
How To Test
COPR project contains builds that can be tested (F37, F38, F39, rawhide on x86_64 and s390x).
So you can install them by using:
sudo dnf copr enable -y @389ds/389-ds-base-freeipa-tests sudo dnf install 389-ds-base-3.0.0
Then you can create new directory server instances and use them.
User Experience
Prepare for the removal of an obsolete piece of software that is no longer supported by the upstream community. This process aims to provide more visibility to its replacement.
Dependencies
All the dependent packages are owned by 389DS and FreeIPA teams:
dnf repoquery --whatrequires 389-ds-base --recursive
Package | Owner | Tests |
---|---|---|
389-ds-base-snmp | 389DS | Tested by 389DS CI test |
cockpit-389-ds | 389DS | Tested by 389DS CI test |
freeipa-fas | FreeIPA | Tested by FreeIPA CI test |
freeipa-healthcheck | FreeIPA | Tested by FreeIPA CI test |
freeipa-server | FreeIPA | Tested by FreeIPA CI test |
freeipa-server-dns | FreeIPA | Tested by FreeIPA CI test |
freeipa-server-trust-ad | FreeIPA | Tested by FreeIPA CI test |
migrationtools | 389DS | Not impacted by the change |
slapi-nis | FreeIPA | Tested by FreeIPA CI test |
Contingency Plan
- Contingency mechanism: (What to do? Who will do it?) N/A (not a System Wide Change)
Contingency mechanism:
- Revert the default backend implementation to Berkeley Database
- If libdb-5.3/libdb-devel are no longer shipped in Fedora: build it locally and link it as static libraries. (It will probably be done anyway to handle the db migration)
Contingency deadline: Fedora 40 branching from Rawhide Blocks release? No
- Contingency deadline: The beta freeze (2024-02-20)
- Blocks release? No
Documentation
[Directory Server FAQ - BerkeleyDB backend deprecation]
Release Notes
Need to write release notes for 3.0.0 in https://www.port389.org/docs/389ds/releases/release-notes.html as usual for 389DS.