Bug 1005316
Summary: | RHEL6.5 ipa-server-install --uninstall does not remove /var/lib/sss/pubconf/kdcinfo.$REALM | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Scott Poore <spoore> |
Component: | sssd | Assignee: | Jakub Hrozek <jhrozek> |
Status: | CLOSED NOTABUG | QA Contact: | Kaushik Banerjee <kbanerje> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.5 | CC: | grajaiya, jgalipea, jhrozek, lslebodn, mkosek, okos, pbrezina, rcritten, spoore |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-09-12 11:41:57 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Scott Poore
2013-09-06 16:07:55 UTC
It's interesting to note that we didn't actually make any changes in https://bugzilla.redhat.com/show_bug.cgi?id=829070 , so I'm not sure we can call this a regression. We have no cleanup code associated with that file. I'm not sure who is responsible for deleting it, though sssd owns it. I don't know if authconfig or sssd is supposed to handle it. Rob, Interesting. I should have re-read through the whole bug there. I may have been thinking of another bug where the IPA uninstall was going to be updated to handle removing something. Let me check an upgrade again. Let me re-check something and run some more tests on this one. I'm removing the regression keyword for now as well. I'll get back to you guys later today on this one. Thanks, Scott Ok, I saw this again in automated tests but, I'm not seeing it on some of my manual tests. So, seems to be inconsistent. I may need help next week tracking this down. Jakub, can you please advise? As Rob said, IPA does not really touch the kdcinfo... kdcinfo should be removed by the SSSD as soon as the provider goes offline or as soon as the SSSD is stopped. Does ipa-server-install --uninstall stop the SSSD? If so, and you still see the file around, then it's and SSSD bug. (In reply to Jakub Hrozek from comment #7) > kdcinfo should be removed by the SSSD as soon as the provider goes offline > or as soon as the SSSD is stopped. Does ipa-server-install --uninstall stop > the SSSD? Yes. > > If so, and you still see the file around, then it's and SSSD bug. Moving to SSSD for now, until Scott confirms if SSSD was properly stopped when the kdcinfo was still around. I am thinking that this may be a race condition in the test itself which does not wait until SSSD is stopped and tests it before that. So, ipa-server-install --uninstall doesn't wait for sssd to come down completely? If so, I think Martin may be right about race condition there. Looking at the test output again, sssd is not yet shut down: /var/lib/sss/pubconf/kdcinfo.TESTRELM.COM :: [ FAIL ] :: Make sure that uninstall removed /var/lib/sss/pubconf /kdcinfo.TESTRELM.COM. Bug BZ 829070 (Expected 2, got 0) root 15772 1 0 19:23 ? 00:00:01 /usr/sbin/sssd -f -D root 15773 15772 0 19:23 ? 00:00:01 /usr/libexec/sssd/sssd_be --domain testrelm.com --debug-to-files root 15774 15772 0 19:23 ? 00:00:00 /usr/libexec/sssd/sssd_nss --debug-to-files root 15775 15772 0 19:23 ? 00:00:00 /usr/libexec/sssd/sssd_pam --debug-to-files root 15776 15772 0 19:23 ? 00:00:00 /usr/libexec/sssd/sssd_ssh --debug-to-files root 15777 15772 0 19:23 ? 00:00:00 /usr/libexec/sssd/sssd_pac --debug-to-files :: [ FAIL ] :: Make sure that sssd appears to be stopped as per BZ 830598 (Expected 1, got 0) So, That test for 820598 may simply be that the ps ran before sssd could stop? Does the SSSD shuts down eventually? Like several seconds after uninstallation finishes. It would be also useful to attach ipaserver-uninstall.log to find out if the sssd was really requested to stop and what was the result. Also, if you have the SSSD logs handy, there should be be a log message telling you that the files are being removed. I believe this is right...I haven't had a chance to get logs but, I added a 60 second sleep before the check and it's not failing anymore... So, I believe it's a test problem as mentioned. I'm going to run a few more tests today and if I don't see anything else, I'll just close this one as NOTABUG. Thanks, Scott I ran a local test as well and saw the files being removed correctly. Closing on my end. Scott, kindly reopen if you still see the problem. |