[Fedora-directory-commits] adminserver/admserv/newinst/src migrate-ds-admin.pl.in, 1.7, 1.8

Richard Allen Megginson (rmeggins) fedora-directory-commits at redhat.com
Fri Sep 14 02:42:07 UTC 2007


Author: rmeggins

Update of /cvs/dirsec/adminserver/admserv/newinst/src
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv14651/adminserver/admserv/newinst/src

Modified Files:
	migrate-ds-admin.pl.in 
Log Message:
Resolves: bug 288451
Bug Description: Show-Stopper - Migration from HP-PARISC DS 6.21 to DS80 on HP-Itaninum
Reviewed by: nhosoi (Thanks!)
Fix Description: 1) The temp file created to fix nsroot was not owned by the server user, and ldif2db could not open it.
2) The perldap LDIF parser/writer did not correctly handle the version: 1 line in the LDIF file.  It outputs dn\nversion: 1 which causes ldif2db to crash.
3) The migrate script could not start the server because it wasn't looking in the fhs-opt location.  The real solution is to just have migration start the servers after it migrates them.  This assumes the old servers are all shutdown first, which they must be, in order to have a consistent database for migration.
These last two were found and fixed by nhosoi
4) If we transform an attribute to an empty value, this means we want to remove it from the migrated entry.  We use the remove method to remove the attribute.
5) The remove method in FileConn was not working.  We have to make a clone of the entry that we have removed the attribute from.  The process of iterating over the attributes skips deleted ones because of the way the Tie::Hash functions in the Entry class work.
Platforms tested: HP-UX 11.23 IPF64
Flag Day: no
Doc impact: no
QA impact: should be covered by regular nightly and manual testing
New Tests integrated into TET: none



Index: migrate-ds-admin.pl.in
===================================================================
RCS file: /cvs/dirsec/adminserver/admserv/newinst/src/migrate-ds-admin.pl.in,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- migrate-ds-admin.pl.in	2 Aug 2007 14:44:10 -0000	1.7
+++ migrate-ds-admin.pl.in	14 Sep 2007 02:42:05 -0000	1.8
@@ -51,15 +51,6 @@
     $mig->doExit(1);
 }
 
-# if the config ds is on the local machine, shut down the old one
-# and bring up the new one - the rest of migration needs to update it
-
-my $configdsinst = getLocalConfigDS("$mig->{oldsroot}/admin-serv/config");
-if ($configdsinst) {
-    system("$mig->{oldsroot}/slapd-$configdsinst/stop-slapd");
-    system("@dslibdir@/slapd-$configdsinst/start-slapd");
-}
-
 # next, migrate the admin server - this also registers the directory servers
 $mig->msg('begin_as_migration', $mig->{oldsroot});
 if (!migrateAdminServer($mig)) {




More information about the Fedora-directory-commits mailing list