<div dir="ltr">I think I have figured it out. The contents of /var/lib/sss/db are not cleared on uninstall. Stopping sssd, clearing that directory and restarting sssd solves the problem. Is there a reason why this is not cleared on uninstall? </div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 18, 2015 at 6:35 PM, Prasun Gera <span dir="ltr"><<a href="mailto:prasun.gera@gmail.com" target="_blank">prasun.gera@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">No I haven't been using docker images. I was merely suggesting it as a way of reproducing the failure consistently and passing it on. I have been running everything natively. Barring external factors such as DNS, which probably don't matter in this case, I think this should be reproducible on an up to date RHEL 7 system. From your comments, I guess the domain name is not that important; at least not on the server itself since the client on the server should have no trouble finding the server. The specific cases for which reboot works could be a red herring, and not related to the domain name at all. However, any success I've had so far has only been with reboots, the choice of domain name notwithstanding. Is there a checklist of files that need to be cleaned up after an uninstall? I can try doing a manual wipe if that helps. </div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 18, 2015 at 5:55 PM, Rob Crittenden <span dir="ltr"><<a href="mailto:rcritten@redhat.com" target="_blank">rcritten@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>Prasun Gera wrote:<br>
> How do I confirm that there are no certs left behind and that<br>
> cert-monger isn't tracking them? I'm a bit new to all the components<br>
> used by IPA. I do see that the /root/cacert.p12 file is never deleted.<br>
<br>
</span>Not clean but this shouldn't prevent re-install.<br>
<span><br>
> After an uninstall, I see this:<br>
> getcert list<br>
> Number of certificates and requests being tracked: 0.<br>
><br>
> getcert status<br>
> process 31282: arguments to dbus_message_new_method_call() were<br>
> incorrect, assertion "path != NULL" failed in file dbus-message.c line 1262.<br>
> This is normally a bug in some application using the D-Bus library.<br>
>   D-Bus not built with -rdynamic so unable to print a backtrace<br>
> Aborted (core dumped)<br>
<br>
</span>Please open a bug against certmonger.<br>
<span><br>
><br>
><br>
> I ran a few more tests, and I have had partial success with some<br>
> configurations. Here's what I found:<br>
><br>
> 1) The install-uninstall-install sequence definitely seems to be broken<br>
> (at least for my configuration), and should be reproducible fairly<br>
> easily. I would like to reproduce this consistently in a docker<br>
> image/vm, but docker is apparently not supported on satellite subscribed<br>
> RHEL systems. The only variable in the system is dns(external) and the<br>
> choice of ipa domain name. The ipa server setup was pretty stock with no<br>
> integrated dns. I don't know if some ipa domain names are preferred over<br>
> others, but I feel that it shouldn't affect the client on the server at<br>
> least.<br>
<br>
</span>I think IPA in docker is still rather experimental. Are you<br>
re-installing within a docker image?<br>
<span><br>
> 2) I had some success with reboots. i.e. After the last install,<br>
> rebooting the computer solves the problem for some cases at least. I am<br>
> not sure if it is a general solution. I think it's also related to the<br>
> choice of the domain name. The reboot trick doesn't help if the ipa<br>
> domain name is the one derived from hostname.  It did work for a random<br>
> domain name though.<br>
<br>
</span>I don't know why the domain name would make a difference one way or another.<br>
<span><br>
> 3) I need to understand how important the IPA domain name is. Should the<br>
> ipa domain name be related to the hostname of the server (as suggested<br>
> by the script)? What happens if someone else has another ipa server with<br>
> the same domain name on the network? Also, what happens if there is<br>
> another NIS server with the same domain name on the network? And lastly,<br>
> what if the ipa server is setup on an existing  NIS server or an NIS<br>
> client ? I have tried a lot of permutations, and I have a feeling that<br>
> this problem is somehow tied to the name resolution, and domain names,<br>
> with external dns servers possibly playing a part.<br>
<br>
</span>IPA just needs valid DNS names. It doesn't matter where they come from<br>
or what they are.<br>
<br>
There can be a conflict with realm names if you want to rely on DNS<br>
discovery and there are conflicts (with AD for example).<br>
<span><font color="#888888"><br>
rob<br>
</font></span><span><br>
><br>
> I'll post the logs if I can't make progress.<br>
><br>
> Regards,<br>
> Prasun<br>
><br>
> On Wed, Mar 18, 2015 at 3:12 PM, Dmitri Pal <<a href="mailto:dpal@redhat.com" target="_blank">dpal@redhat.com</a><br>
</span><div><div>> <mailto:<a href="mailto:dpal@redhat.com" target="_blank">dpal@redhat.com</a>>> wrote:<br>
><br>
>     On 03/17/2015 02:54 PM, Prasun Gera wrote:<br>
>>     Sorry, the message got sent accidentally earlier before I could<br>
>>     provide all the details.<br>
>><br>
>>     Version: 4.1.0 on RHEL 7.1 x86_64<br>
>><br>
>>     Steps:<br>
>>     1. ipa-server-install<br>
>>     2. service sshd restart<br>
>>     3. kinit admin                              <- This always works<br>
>>     4. ssh admin@localhost             <- This works for the first<br>
>>     time, fails second time onwards<br>
>>         ssh admin@host_addr from external system      <- This also<br>
>>     works the first time, fails second time onwards<br>
>><br>
>>     5. ipa-server-install --uninstall<br>
>>     6. go to 1<br>
>><br>
>>     The log messages in /var/log/messages point<br>
>>     to [sssd[krb5_child[21029]]]: Decrypt integrity check failed at<br>
>>     the point of the authentication failure<br>
>>     sssd's log's have a lot of "No matching domain found for user"<br>
>>     messages.<br>
>>     /var/log/krb5kdc.log has a lot of error decoding FAST: <unknown<br>
>>     client> for <unknown server>, Decrypt integrity check failed while<br>
>>     handling ap-request armor<br>
>><br>
>>     The only ERROR I can see in /var/log/ipaserver-uninstall.log is<br>
>>     pkidestroy  : ERROR    ....... subprocess.CalledProcessError:<br>
>>      Command '['/usr/bin/sslget', '-n', 'subsystemCert cert-pki-ca',<br>
>>     ......returned non-zero exit status 6!<br>
>><br>
>><br>
>>     It appears that the uninstall process is leaving some residual<br>
>>     configuration behind which is conflicting with the subsequent<br>
>>     installation with the same domain name<br>
><br>
><br>
>     SSSD and certificate issues with re-install would be unrelated.<br>
><br>
><br>
>     Let us start over. Remove IPA, try it several times, it helps<br>
>     sometimes as it moves forward and cleans more on each attempt. Make<br>
>     sure there are no certs left and certmonger is not tracking anything.<br>
>     If you still experience issues with SSSD, add debug_level=10 to sssd<br>
>     configuration in the domain section, restart sssd and send the<br>
>     sanitized logs for the failed attempts.<br>
><br>
><br>
>><br>
>><br>
>>     Regards,<br>
>>     Prasun<br>
>><br>
>><br>
>><br>
>><br>
>><br>
>><br>
>><br>
>>     On Tue, Mar 17, 2015 at 2:41 PM, Prasun Gera<br>
</div></div><div><div>>>     <<a href="mailto:prasun.gera@gmail.com" target="_blank">prasun.gera@gmail.com</a> <mailto:<a href="mailto:prasun.gera@gmail.com" target="_blank">prasun.gera@gmail.com</a>>> wrote:<br>
>><br>
>>         Hello,<br>
>>         I installed the ipa-server on an RHEL 7.1 system, uninstalled<br>
>>         it and reinstalled it with the same domain name as the first<br>
>>         time. This somehow creates problems with ssh authentication on<br>
>>         the server from external systems as well as from the server<br>
>>         itself.<br>
>><br>
>>         Steps:<br>
>>         1. ipa-server-install<br>
>>         2. service sshd restart<br>
>>         3. kinit admin<br>
>>         4. ssh admin@localhost<br>
>><br>
>><br>
>><br>
>><br>
><br>
><br>
>     --<br>
>     Thank you,<br>
>     Dmitri Pal<br>
><br>
>     Sr. Engineering Manager IdM portfolio<br>
>     Red Hat, Inc.<br>
><br>
><br>
>     --<br>
>     Manage your subscription for the Freeipa-users mailing list:<br>
>     <a href="https://www.redhat.com/mailman/listinfo/freeipa-users" target="_blank">https://www.redhat.com/mailman/listinfo/freeipa-users</a><br>
>     Go to <a href="http://freeipa.org" target="_blank">http://freeipa.org</a> for more info on the project<br>
><br>
><br>
><br>
><br>
<br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>