Bug 591336

Summary: Implementing upgrade DN format tool
Product: [Retired] 389 Reporter: Noriko Hosoi <nhosoi>
Component: Database - Import/ExportAssignee: Noriko Hosoi <nhosoi>
Status: CLOSED CURRENTRELEASE QA Contact: Viktor Ashirov <vashirov>
Severity: medium Docs Contact:
Priority: high    
Version: 1.2.6CC: jgalipea, rmeggins
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 16:44:46 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: 434914, 543590    
Attachments:
Description Flags
git patch file (8.2)
nhosoi: review?, rmeggins: review+
git patch file (9.0)
nhosoi: review?, rmeggins: review+
git diff (ldbm_entryrdn.c)
nhosoi: review?, rmeggins: review+
git commit message none

Description Noriko Hosoi 2010-05-11 22:35:59 UTC
Description of problem:
http://directory.fedoraproject.org/wiki/Upgrade_to_New_DN_Format#Migration.2FUpgrade

Comment 1 Noriko Hosoi 2010-05-11 23:02:34 UTC
Created attachment 413284 [details]
git patch file (8.2)

Comment 2 Noriko Hosoi 2010-05-12 18:17:55 UTC
Reviewed by Rich and Nathan (Thank you!!!)

Pushed to Directory_Server_8_2_Branch
Counting objects: 78, done.
Compressing objects: 100% (40/40), done.
Writing objects: 100% (41/41), 24.85 KiB, done.
Total 41 (delta 35), reused 0 (delta 0)
To ssh://git.fedorahosted.org/git/389/ds.git
   e7a81dd..142d7ad  ds82-local -> Directory_Server_8_2_Branch

Comment 3 Noriko Hosoi 2010-05-17 19:02:11 UTC
Created attachment 414639 [details]
git patch file (9.0)

Change description:
    . adding upgradednformat utility to each server instance.
    . adding 91upgradednformat.pl for in-place-upgrade.
    . implementing ldbm_back_upgradednformat sharing the import/
      reincexing codes.
    . adding a new DBVERSION ID "dn-4514" for the upgraded db.
    . fixing access logs (delete.c and modify.c)
    . fixing compiler warnings.
    . fixing memory leaks.
    . fixing a bug in syntax plugin to free strings.
    . adding templates for plugin id, version, vendor, and description,
      which are needed for the online upgrade.
    . dbversion_write takes an additional bit flags, which indicates
      which extra DBVERSION strings are written to the DBVERSION file.
      It was introduced for the upgrade tools not to intervene each
      other's tasks (e.g., dn2rdn for converting entrydn to entryrdn
      and upgradednformat for upgrading the DN format).
    
See also:
    http://directory.fedoraproject.org/wiki/Upgrade_to_New_DN_Format#Migration.2

Comment 4 Noriko Hosoi 2010-05-18 00:06:17 UTC
Created attachment 414698 [details]
git diff (ldbm_entryrdn.c)

In addition to 414639: git patch file (9.0), this patch is needed to handle entries which RDN(s) consist of multiple attribute type/value pairs separated with '+'.

Comment 5 Noriko Hosoi 2010-05-18 05:51:59 UTC
Created attachment 414738 [details]
git commit message

Reviewed by Rich (Thank you!!)

Pushed to master.

commit c12c48f47a0cdd7282950fa25e5e7548dd1c5ab0
Author: Noriko Hosoi <nhosoi>
Date:   Mon May 17 16:47:55 2010 -0700

    591336 - Implementing upgrade DN format tool
    
    Change description:
    . adding upgradednformat utility to each server instance.
    . adding 91upgradednformat.pl for in-place-upgrade.
    . implementing ldbm_back_upgradednformat sharing the import/
      reincexing codes.
    . adding a new DBVERSION ID "dn-4514" for the upgraded db.
    . fixing access logs (delete.c and modify.c)
    . fixing compiler warnings.
    . fixing memory leaks.
    . fixing a bug in syntax plugin to free strings.
    . adding templates for plugin id, version, vendor, and description,
      which are needed for the online upgrade.
    . dbversion_write takes an additional bit flags, which indicates
      which extra DBVERSION strings are written to the DBVERSION file.
      It was introduced for the upgrade tools not to intervene each
      other's tasks (e.g., dn2rdn for converting entrydn to entryrdn
      and upgradednformat for upgrading the DN format).
    . fixing a bug in entryrdn index code which was missing to normalize
      RDN.
    
    See also:
    https://bugzilla.redhat.com/show_bug.cgi?id=591336
    http://directory.fedoraproject.org/wiki/Upgrade_to_New_DN_Format#Migration.2FUpgrade

Comment 6 Jenny Severance 2010-05-27 17:57:44 UTC
closing verified - this Development task has been completed and any issues with upgrading to the new DN format will be addressed in specific bugs.