Bug 953432 - ipa-server-install --uninstall doesn't stop dirsrv instances
Summary: ipa-server-install --uninstall doesn't stop dirsrv instances
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: freeipa
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Rob Crittenden
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-18 08:21 UTC by Niranjan Mallapadi Raghavender
Modified: 2013-05-24 20:42 UTC (History)
6 users (show)

Fixed In Version: freeipa-3.2.0-2.fc19
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-05-24 20:42:06 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Niranjan Mallapadi Raghavender 2013-04-18 08:21:08 UTC
Description of problem:
ipa-server-install --uninstall is not removing the dirsrv instances:


Version-Release number of selected component (if applicable):

freeipa-server-3.2.0-0.2.beta1.fc19.x86_64
389-ds-base-1.3.0.5-1.fc19.x86_64

How reproducible:


Steps to Reproduce:
1.Install ipa server ipa-server-install --setup-dns
2.uninstall ipa using ipa-server-install --uninstall

  
Actual results:

[root@master1 ~]# ipa-server-install --uninstall

This is a NON REVERSIBLE operation and will delete all data and configuration!

Are you sure you want to continue with the uninstall procedure? [no]: yes
Shutting down all IPA services
Removing IPA client configuration
[root@master1 ~]# ps -ef | grep ns-slapd
dirsrv     960     1  0 18:02 ?        00:00:05 /usr/sbin/ns-slapd -D /etc/dirsrv/slapd-METIS-SITE -i /var/run/dirsrv/slapd-METIS-SITE.pid -w /var/run/dirsrv/slapd-METIS-SITE.startpid
root      1751  1091  0 19:19 pts/1    00:00:00 grep --color=auto ns-slapd
Expected results:

Dirsrv instances should be removed when ipa server is uninstalled

Additional info:

Comment 1 Martin Kosek 2013-04-18 11:02:58 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/3574

Comment 2 Rob Crittenden 2013-04-18 12:58:00 UTC
Can you attach /var/log/ipaserver-uninstall.log?

Comment 3 Ana Krivokapic 2013-04-23 10:03:39 UTC
I could not reproduce this bug - dirsrv is always correctly stopped after uninstallation.

Comment 4 Martin Kosek 2013-04-23 10:11:45 UTC
This issue may not reproduce in standard installation scenario. Try interrupting ipa-server-install in CA installation and then try to uninstall FreeIPA. This is how this issue reproduced for me.

Comment 5 Rob Crittenden 2013-04-23 14:50:07 UTC
I saw this when I was working on the missing java package in F-19. ns-slapd would still be running after the uninstall, so you could try removing the java-atk-wrapper and letting the install fail that way.

Comment 6 Ana Krivokapic 2013-04-23 15:32:24 UTC
I managed to reproduce the issue:

1. Install freeipa-server
# yum install freeipa-server

2. Remove java-atk-wrapper, since it now gets pulled in with freeipa-server
# rpm -e --nodeps java-atk-wrapper

3. Install IPA (it will fail because it is missing java-atk-wrapper)
# ipa-server-install -a blablabla -p blablabla --setup-dns --no-forwarders -r IDM.LAB.BOS.REDHAT.COM

4. Uninstall IPA
# ipa-server-install --uninstall -U

5. After uninstallation, the dirsrv instance is still running
# ps -ef | grep slapd
dirsrv    4240     1  0 11:19 ?        00:00:00 /usr/sbin/ns-slapd -D /etc/dirsrv/slapd-IDM-LAB-BOS-REDHAT-COM -i /var/run/dirsrv/slapd-IDM-LAB-BOS-REDHAT-COM.pid -w /var/run/dirsrv/slapd-IDM-LAB-BOS-REDHAT-COM.startpid

Comment 7 Ana Krivokapic 2013-04-26 12:35:01 UTC
Further investigation revealed that the problem lies in the order of actions in
`ipactl stop` command. `ipa-server-install --uninstall` calls `ipactl stop` in 
order to stop IPA related services. `ipactl stop` finds all running services 
and stops them, but in the case when there are no services other than dirsrv 
running (which is the case when the installation fails or is interrupted), 
`ipactl stop` returns immediately, without stopping dirsrv. The fix should make
sure that dirsrv is stopped, even if no other running services are found.

Comment 8 Rob Crittenden 2013-04-29 13:39:43 UTC
Fixed upstream.

master: dfcdd9c403be81e81c88e7f6644394ee1bef14f3

Comment 9 Fedora Update System 2013-05-10 17:30:29 UTC
freeipa-3.2.0-1.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/freeipa-3.2.0-1.fc19

Comment 10 Scott Poore 2013-05-11 01:22:42 UTC
looks like it's fixed:

[root@f19-1 ~]# ipa-server-install --uninstall -U
Shutting down all IPA services
Removing IPA client configuration
Unconfiguring ntpd
Unconfiguring CA
Unconfiguring named
Unconfiguring web server
Unconfiguring krb5kdc
Unconfiguring kadmin
Unconfiguring directory server
Unconfiguring ipa_memcached
[root@f19-1 ~]# ps -ef|grep -i slap
root     18680 19950  0 20:22 pts/0    00:00:00 grep --color=auto -i slap
[root@f19-1 ~]#

Comment 11 Fedora Update System 2013-05-11 02:38:31 UTC
Package freeipa-3.2.0-1.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing freeipa-3.2.0-1.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-7911/freeipa-3.2.0-1.fc19
then log in and leave karma (feedback).

Comment 12 Fedora Update System 2013-05-24 20:42:06 UTC
freeipa-3.2.0-2.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.


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