Bug 470576 - Migration could do addition checks before commiting actions
https://bugzilla.redhat.com/show_bug.cgi?id=470576
The migrate-ds-admin.pl can fail for various reasons leaving the server
in an inconsistent state. Sometimes a manual cleanup is required before
the migration script can be run again. There is no easy way to revert the
changes done by this script, so the script has been modified such that it
can handle inconsistent state better.
The 25changefedorato389.pl has been modified such that it will only
delete old entries if the entries are actually renamed. If the old entry
is already using the new name it will not be deleted.
The 25changefedorato389.pl has also been modified such that it doesn't
return immediately when it doesn't find anything to change, but it will
continue executing the rest of the script, i.e. deleting bogus entries,
adding new entries, updating adm.conf and local.conf, and deleting old
entries.
The migrateAdminServer() has been modified to stop the admin server before
migrating it.
The start-ds-admin has been modified to wait until the pid file is created
before returning a success.