Bug 619595
Summary: | Upgrading sub suffix under non-normalized suffix disappears | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] 389 | Reporter: | Noriko Hosoi <nhosoi> | ||||
Component: | Migration | Assignee: | Noriko Hosoi <nhosoi> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Viktor Ashirov <vashirov> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 1.2.6 | CC: | amsharma, 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 17:02:23 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: | 543590, 639035 | ||||||
Attachments: |
|
Description
Noriko Hosoi
2010-07-29 21:16:14 UTC
Created attachment 435442 [details]
git patch file (master)
Fix Description:
The cause of this problem is the config attribute nsslapd-parent-suffix
was not defined as an attribute of DN syntax. Because of the missing
definition, the value is not the target of the DN normalization and
the match fails after upgraded. Adding the attribute to the schema
solves this problem.
Plus upgradedb does backup the DB before upgrade, and if it fails
it restores from the backed up DB. Use dblayer_restore instead
of copying DB files one by one.
Pushed to master: $ git push Counting objects: 33, done. Delta compression using up to 4 threads. Compressing objects: 100% (20/20), done. Writing objects: 100% (20/20), 4.20 KiB, done. Total 20 (delta 16), reused 0 (delta 0) To ssh://git.fedorahosted.org/git/389/ds.git 5ae0c1b..666873d master -> master Pushed to 389-ds-base-1.2.6: $ git push origin ds126-local:389-ds-base-1.2.6 Counting objects: 33, done. Delta compression using up to 4 threads. Compressing objects: 100% (20/20), done. Writing objects: 100% (20/20), 4.28 KiB, done. Total 20 (delta 16), reused 0 (delta 0) To ssh://git.fedorahosted.org/git/389/ds.git af5c96e..d67bb39 ds126-local -> 389-ds-base-1.2.6 This bug is supposed to verify in the upgrade test. On the older version, prepare a suffix which is not normalized, e.g.: dc=example, dc=com and a sub suffix under it: ou=sub,dc=example, dc=com Upgrade it to DS9.0. . Check the error log. The following error should not be observed: entryrdn-index - _entryrdn_insert_key: Suffix "dc=example,dc=com" not found: DB_NOTFOUND: No matching key/data pair found(-30988) . The sub suffix ou=sub,dc=example,dc=com should exist after the upgrade. If these 2 are satisfied, this bug is verified. followed comment#5 to test - 1. I have created the sub-suffix on source under dc=example,dc=com as ou=sub,dc=example,dc=com from the console on DS8.2(rhel5) 2. Migrated to DS9.0 on rhel6.1 Upgrade it to DS9.0. . Check the error log. The following error should not be observed: entryrdn-index - _entryrdn_insert_key: Suffix "dc=example,dc=com" not found: DB_NOTFOUND: No matching key/data pair found(-30988) . The sub suffix ou=sub,dc=example,dc=com should exist after the upgrade. Both are satisfied. Hence marking the bug as VERIFIED. |