Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 7): Bug 985234
Description of problem: ipa-client-install --uninstall starts nscd service, but it was stopped before uninstall. This may cause problem if hostname is changed after uninstall, but nscd has cached some information and user doesn't know that nscd is running now. ipa-client-install is used with realmd component, we are changing the hostname in realmd tests.Here is the scenario that cause problems: change hostname realm join realm leave restore hostname Next run of this scenarion fails (realm join doesn't work) if nscd is installed, because realm leave (ipa-client-install --uninstall) starts nscd service and nobody knows that. Version-Release number of selected component (if applicable): ipa-client-3.2.1-1.el7 How reproducible: always Steps to Reproduce: 1.install nscd service 2.make sure that it is stopped 3.run ipa-client-install 4.run ipa-client-install --uninstall 5. check status of nscd service Actual results: nscd running Expected results: nscd is stopped Additional info: [test]service nscd status Redirecting to /bin/systemctl status nscd.service nscd.service - Name Service Cache Daemon Loaded: loaded (/usr/lib/systemd/system/nscd.service; disabled) Active: inactive (dead) since Wed 2013-07-17 02:34:40 EDT; 44s ago Main PID: 6450 (code=exited, status=0/SUCCESS) CGroup: name=systemd:/system/nscd.service Jul 17 02:32:00 client.ipa.baseos.qe systemd[1]: Starting Name Service Cache.... Jul 17 02:32:00 client.ipa.baseos.qe systemd[1]: Started Name Service Cache .... Jul 17 02:32:00 client.ipa.baseos.qe nscd[6450]: 6450 cannot stat() file `/e...y Jul 17 02:32:00 client.ipa.baseos.qe nscd[6450]: 6450 Access Vector Cache (A...d Jul 17 02:34:40 client.security.baseos.qe systemd[1]: Stopping Name Service C... Jul 17 02:34:40 client.security.baseos.qe systemd[1]: Stopped Name Service Ca... Jul 17 02:35:07 client.ipa.baseos.qe systemd[1]: Stopped Name Service Cache .... Jul 17 02:35:08 client.ipa.baseos.qe systemd[1]: Stopped Name Service Cache .... [test]ipa-client-install --uninstall --unattended Unenrolling client from IPA server Removing Kerberos service principals from /etc/krb5.keytab Disabling client Kerberos and LDAP configurations Restoring client configuration files nslcd daemon is not installed, skip configuration Client uninstall complete. [test]service nscd status Redirecting to /bin/systemctl status nscd.service nscd.service - Name Service Cache Daemon Loaded: loaded (/usr/lib/systemd/system/nscd.service; enabled) Active: active (running) since Wed 2013-07-17 02:35:36 EDT; 3s ago Main PID: 9362 (nscd) CGroup: name=systemd:/system/nscd.service ??9362 /usr/sbin/nscd --foreground Jul 17 02:35:36 client.ipa.baseos.qe systemd[1]: Started Name Service Cache .... Jul 17 02:35:36 client.ipa.baseos.qe nscd[9362]: 9362 cannot stat() file `/e...y Jul 17 02:35:36 client.ipa.baseos.qe nscd[9362]: 9362 Access Vector Cache (A...d
Moving unfinished November tickets to January.
master: 367c130
Metadata Update from @mkosek: - Issue assigned to akrivoka - Issue set to the milestone: FreeIPA 4.0 - 2014/01
Login to comment on this ticket.