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:
Upstream ticket: https://fedorahosted.org/freeipa/ticket/3574
Can you attach /var/log/ipaserver-uninstall.log?
I could not reproduce this bug - dirsrv is always correctly stopped after uninstallation.
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.
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.
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
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.
Fixed upstream. master: dfcdd9c403be81e81c88e7f6644394ee1bef14f3
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
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 ~]#
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).
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.