How reproducible: always Steps to Reproduce: 1. install ipa-server 2. uninstall ipa-server 3. Actual results: ldap still running: 4672 ? Sl 0:00 /usr/sbin/ns-slapd -D /etc/dirsrv/slapd-SJCTEST-REDHAT-COM -i Expected results: possibly for the directory to be archived, but removed, along with the user process. Additional info: 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] Fix uninstall 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.
ipa-1-0: ee2b83210bc4446b0f5846fa0fb95822f5a3ece6 master: 165d26ce2b5d6fefe26679822cc274843de889dd
QA Verified on June 9, 2008 (Yi) Build used: June 9, 2008 (64bit RHEL 5.2) before uninstall: 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 Login: u102 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 slapd