Bug 485694
Summary: | Cross Platform Migration Fails with: Unable to access nsslapd-rundir: Bad address | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Directory Server | Reporter: | Jenny Severance <jgalipea> | ||||||
Component: | Migration | Assignee: | Rich Megginson <rmeggins> | ||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Chandrasekar Kannan <ckannan> | ||||||
Severity: | high | Docs Contact: | |||||||
Priority: | high | ||||||||
Version: | 8.1 | CC: | benl, ckannan, mike, nkinder | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | 8.1 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2009-04-29 23:10:32 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: | 249650, 493682 | ||||||||
Attachments: |
|
Description
Jenny Severance
2009-02-16 12:19:52 UTC
attaching debug output - this attempt was made on Solaris 9 64bit - same machine migration from 7.1 to 8.1. Created attachment 332213 [details]
debug output
Thanks. This confirms my suspicions - patch on the way. *** DSMigration.pm.in.~1.25.~ 2007-12-13 15:01:46.000000000 -0700 --- DSMigration.pm.in 2009-02-17 08:24:02.000000000 -0700 *************** *** 79,84 **** --- 79,94 ---- # these are the attributes for which we will always use # the new value, or which do not apply anymore + # for the next major release e.g. when we support migration from the + # current release 1.1.x to 1.2 or 2.0, the old version number will + # become quite important for migration - for example, when migrating + # from older than 1.1 to 1.1.x, we need to add the attributes in the + # table below to the new entry because the attribute didn't exist + # at all in the old server version - however, when migrating from + # e.g. 1.1.x to 2.0, we must preserve the old value - this means + # if the user has deleted the attribute from the entry, we must + # "migrate" that deletion by removing the attribute from the new + # entry my %ignoreOld = ( 'nsslapd-errorlog' => 'nsslapd-errorlog', *************** *** 91,96 **** --- 101,109 ---- 'nsslapd-pluginversion' => 'nsslapd-pluginVersion', 'nsslapd-plugin-depends-on-named' => 'nsslapd-plugin-depends-on-named', # these are new attrs that we should just pass through + 'nsslapd-allow-unauthenticated-binds' => 'nsslapd-allow-unauthenticated-binds', + 'nsslapd-saslpath' => 'nsslapd-saslpath', + 'nsslapd-rundir' => 'nsslapd-rundir', 'nsslapd-schemadir' => 'nsslapd-schemadir', 'nsslapd-lockdir' => 'nsslapd-lockdir', 'nsslapd-tmpdir' => 'nsslapd-tmpdir', Created attachment 332233 [details]
cvs commit log
Reviewed by: nkinder (Thanks!)
Fix Description: Need to add any new attributes added in 8.0 and 8.1 to
the ignoreOld hash table in the migration script. The way migration
works, it assumes an attribute is supported in both the old version and
the new version. So if the attribute is absent in the old entry and
present in the new entry, it assumes the user removed the attribute in
the old entry, so removes it in the new entry. The ignoreOld hash table
holds the list of attributes that we should ignore for the purposes of
attribute comparison. These are the attributes we just want to pass
through.
Platforms tested: RHEL5
Flag Day: no
Doc impact: no
*** Bug 427321 has been marked as a duplicate of this bug. *** fix verified This affected me on Fedora 9 going from 1.1.2 to 1.1.3. I had to manually add 'nsslapd-rundir' to my /etc/dirsrv/slapd-name/dse.ldif file before the dirsrv service would start. Should I open a new bug? I'm not sure what's happening. This is what I did: installed fedora ds 1.1.2 components (ds base 1.1.3, ds admin 1.1.6, etc.) on Fedora 10. Ran setup-ds-admin.pl. Confirmed that all services were started correctly. then did a yum upgrade - which installed the fedora ds 1.1.3 components such as fedora-ds-base 1.2.0 fedora-ds-admin-1.1.7, etc. ran setup-ds-admin.pl -u Everything worked fine - I did not see any rundir problems. What version of fedora-ds-base did you start with? Any idea? Before update: fedora-ds-base-1.1.3-2.fc9.i386 fedora-ds-admin-1.1.6-1.fc9.i386 fedora-ds-dsgw-1.1.1-1.fc9.i386 fedora-ds-console-1.1.2-2.fc9.noarch fedora-ds-admin-console-1.1.2-1.fc9.noarch fedora-ds-1.1.2-1.fc9.i386 After update: fedora-ds-base-1.2.0-2.fc9.i386 fedora-ds-admin-1.1.7-3.fc9.i386 fedora-ds-dsgw-1.1.2-1.fc9.i386 fedora-ds-console-1.2.0-1.fc9.noarch fedora-ds-admin-console-1.1.3-1.fc9.noarch fedora-ds-1.1.3-1.fc9.noarch I had to add "nsslapd-rundir: /var/lib/dirsrv" under cn: config before the "dirsrv" service would start. I was getting the same error "Unable to access nsslapd-rundir: Bad address" until I added that line. Had you upgrade from an even earlier version before? nsslapd-rundir was added in Fedora DS 1.1.0 Yes, my DS is fairly old but I do not remember the first version I used. It may have been prior to 1.1.0. I know it was prior to Fedora 9, was around 2007, and was prior to when the packages were in Fedora. Ok. Just want to make sure this is not a recent problem. But it is a problem nonetheless. An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHEA-2009-0455.html |