Bug 713000 - Migration stops if old admin server cannot be stopped
Summary: Migration stops if old admin server cannot be stopped
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: 389
Classification: Retired
Component: Migration
Version: 1.2.8
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Rich Megginson
QA Contact: Viktor Ashirov
URL:
Whiteboard:
Depends On:
Blocks: 434915
TreeView+ depends on / blocked
 
Reported: 2011-06-13 20:53 UTC by Rich Megginson
Modified: 2015-12-07 16:53 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-12-07 16:53:16 UTC
Embargoed:


Attachments (Terms of Use)
0001-Bug-713000-Migration-stops-if-old-admin-server-canno.patch (1.25 KB, patch)
2011-07-01 15:22 UTC, Rich Megginson
nkinder: review+
Details | Diff

Description Rich Megginson 2011-06-13 20:53:52 UTC
>> /usr/sbin/migrate-ds-admin.pl -ddd --crossplatform --oldsroot=/mnt/old-fds/opt/fedora-ds --actualsroot=/opt/fedora-ds General.ConfigDirectoryAdminPwd=FDS_password
>>
>> Beginning migration of Administration server from /mnt/old-fds/opt/fedora-ds . . .
>> +++stopping admin server returns status 256: output server not running
>>
>> +Warning: Could not stop admin server: status 256: output server not running
>>
>> Exiting . . .
>> Log file is '/tmp/migrate3A8KRY.log'

Migration should continue if you attempt to stop admin server and it is not running.

Comment 3 Rich Megginson 2011-07-01 15:22:21 UTC
Created attachment 510879 [details]
0001-Bug-713000-Migration-stops-if-old-admin-server-canno.patch

Comment 4 Rich Megginson 2011-07-01 16:10:40 UTC
To ssh://git.fedorahosted.org/git/389/admin.git
   7edcc2b..81f194a  master -> master
commit 81f194a1f6ae1e3f658832081844b2908b2dd0ee
Author: Rich Megginson <rmeggins>
Date:   Fri Jul 1 07:34:52 2011 -0600
    Reviewed by: nkinder (Thanks!)
    Branch: master
    Fix Description: If the admin server could not be stopped, just assume
    it is not running and return a success code.
    Platforms tested: Fedora 15 x86_64
    Flag Day: no
    Doc impact: no

Comment 5 Noriko Hosoi 2011-07-26 20:45:23 UTC
Steps to verify:
1. Stops the admin server.
2. Start migration.
Note: Migration should continue if you attempt to stop admin server and it is not
running.

Comment 6 Amita Sharma 2011-08-16 08:31:57 UTC
This is what we follow :

<richm> ami: on the source, stop the servers before creating the tarball
<ami> richm, : yeah
<richm> on the destination, follow these steps:
<richm> untar the tarball
<richm> setup-ds.pl -u
<richm> service dirsrv start
<richm> setup-ds-admin.pl -u -ddd -l /tmp/setup2.log ...other parameters for config ds upgrade as documented...
<richm> service dirsrv-admin start



So here we are doing the migration when the server is in stopped state And it works fine. Hence marking VERIFIED.


Note You need to log in before you can comment on or make changes to this bug.