Ticket was cloned from Red Hat Bugzilla (product Fedora): Bug 953432
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:
Related tickets to be also investigated:
Clone todo because we do not know what component is at fault.
clone TODO because we don't know which component to clone.
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.
ipactl stop
ipa-server-install --uninstall
master: dfcdd9c
Ticket has been cloned to Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=957768
This is duplicate of ticket:1059 and ticket:1431.
Metadata Update from @mkosek: - Issue assigned to akrivoka - Issue set to the milestone: FreeIPA 3.2 - 2013/04-05 (GA)
Login to comment on this ticket.