Bug 527848
Summary: | make sure db upgrade to 4.7 and later works correctly | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] 389 | Reporter: | Rich Megginson <rmeggins> | ||||
Component: | Database - General | Assignee: | Noriko Hosoi <nhosoi> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Viktor Ashirov <vashirov> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 1.3.0 | CC: | amsharma, james_roman, jgalipea, Terry.Arends | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2015-12-07 17:16:52 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 495079 | ||||||
Attachments: |
|
Description
Rich Megginson
2009-10-07 22:32:12 UTC
*** Bug 528480 has been marked as a duplicate of this bug. *** Created attachment 395003 [details]
git patch file
Change Description:
1. Replication Changelog
1-1. In the clean recover mode, transaction logs should not be removed.
1-2. When nsslapd-db-circular-logging is on (by default, it's on),
call log_archive function with DB_ARCH_REMOVE, which removes
log files that are no longer needed.
1-3. Call transaction checkpoint just before shutting down the server.
1-4. "From string" in the upbrade message had a flaw.
2. Backend dblayer
2-1. In checkpoint_threadmain, call log_archive with DB_ARCH_ABS,
which returns the absolute path of the transaction log files.
It eliminates the code which generates the absolute paths.
Files:
ldap/servers/plugins/replication/cl5_api.c
ldap/servers/slapd/back-ldbm/dblayer.c
Steps to verify: 1. build {redhat,389}-ds-base with an older version of db4. (I built 389-ds-base with db4-4.3.29 on RHEL5.) 2. install it. set up replication. make some changes to create entries in the changelog. 3. build corresponding ds-base with a newer version of db4. (I built 389-ds-base with db4-4.7.25 on RHEL5.) 4. install it. restart the servers. 5. check errors log of the master(s). The following message is supposed to be logged: NSMMReplicationPlugin - changelog program - Upgrading from bdb/4.3/libreplication-plugin to bdb/4.7/libreplication-plugin is successfully done (/path/to/changelogdb) And any other db errors should not be observed. Reviewed by Rich (Thank you!!) Pushed to master: $ git merge work Updating ecf93e6..79e9309 Fast forward ldap/servers/plugins/replication/cl5_api.c | 38 +++++++----- ldap/servers/slapd/back-ldbm/dblayer.c | 91 ++++++++++++---------------- 2 files changed, 61 insertions(+), 68 deletions(-) $ git push Counting objects: 19, done. Delta compression using 4 threads. Compressing objects: 100% (10/10), done. Writing objects: 100% (10/10), 2.32 KiB, done. Total 10 (delta 8), reused 0 (delta 0) To ssh://git.fedorahosted.org/git/389/ds.git ecf93e6..79e9309 master -> master Pushed to Directory_Server_8_2_Branch: $ git cherry-pick 79e93093e031bdd5a0bc047baf767644832eb562 $ git push origin ds82-local:Directory_Server_8_2_Branch Counting objects: 19, done. Delta compression using 4 threads. Compressing objects: 100% (10/10), done. Writing objects: 100% (10/10), 46.51 KiB, done. Total 10 (delta 7), reused 1 (delta 0) To ssh://git.fedorahosted.org/git/389/ds.git 67ba596..be07459 ds82-local -> Directory_Server_8_2_Branch What about upgrade from RHEL5 to RHEL6? Can you upgrade a machine from RHEL5 to RHEL6? Even if not, the customer could just copy their files and data from the old RHEL5 machine to the new RHEL6 machine and run setup-ds-admin.pl -u. We should test this scenario. yes, I have tested setup-ds-admin.pl -u for upgrading the ds builds. |