Red Hat Bugzilla – Bug 448173
ipa-server-install --uninstall -U doesn't kill and remove slapd process
Last modified: 2015-01-04 18:32:30 EST
Steps to Reproduce:
1. install ipa-server
2. uninstall ipa-server
ldap still running:
4672 ? Sl 0:00 /usr/sbin/ns-slapd -D
possibly for the directory to be archived, but removed, along with the user process.
If I re-run ipa-server-install I get:
An existing Directory Server has been detected.
Do you wish to remove it and create a new one? [no]:
What command-line options did you use for the uninstall?
What version of ipa-server is this?
Do you have an install where this is repeatable? I can't duplicate it myself but
I have an idea where in the code it may be breaking, I just need to see it in
order to fix it.
Duplicated. It only happens with --setup-bind is selected.
The problem is that /var/lib/ipa/sysrestore/sysrestore.state only has
information on named and not on any of the other processes.
Created attachment 307009 [details]
Make check_inst() a standalone function in bindinstance.
When an install instance is created that contains a pointer to a sysrestore
point it loads in the current configuration when instantiated. If an
instance is instantiated but not used then changes may occur to the
system state that it is unaware of. So one needs to take care in the order
that things are done to avoid losing information.
When bind was setup it was overwriting all data in sysrestore.state and
leaving just a [named] section. This caused problems at uninstall.
QA Verified on June 9, 2008 (Yi)
Build used: June 9, 2008 (64bit RHEL 5.2)
server64[06/09/08 02:38]~ >service dirsrv status
dirsrv IPAQA-COM (pid 8709) is running...
server64[06/09/08 02:46]~ >ipa-finduser u102
Full Name: user 102
Home Directory: /home/u102
Login Shell: /bin/bash
then uninstall ipa-server:
server64[06/09/08 02:48]~ >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] yes
server64[06/09/08 02:49]~ >service dirsrv status
server64[06/09/08 02:50]~ >ps -elf | grep slapd
0 R root 9275 3095 0 78 0 - 15277 - 02:50 pts/0 00:00:00 grep