#6012 Multiple issues while uninstalling ipa-server
Closed: Fixed None Opened 7 years ago by pvoborni.

Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 7): Bug 1351119

Description of problem:
Seen following three issues while uninstalling ipa-server

1. Uninstallation complains about missing 'ipa.conf'
2. Uninstallation complains about ipa-client-automount --uninstall as command
unable to get Kerberos Credentials
3. Uninstallation complains while removing '/etc/krb5.keytab' file

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. ipa-server-install --uninstall -U

Actual results:
Uninstallation complains about above mentioned errors

Expected results:
Uninstallation should be successful.

Some parts may be already fixed.

the keytab part is handled in #5978

Not able to reproduce this issue with master 95191e1, probably fixed between the tag alpha_1-4-4-0 for 4.4.1 alpha and latest commits.


2016-06-29T09:57:22Z ERROR Error removing /etc/systemd/system/httpd.d/ipa.conf: [Errno 2] No such file or directory: '/etc/systemd/system/httpd.d/ipa.conf'

We should not print error when this file does not exists, this is happening during uninstall when server has not been properly installed IMO. so we should catch the right errno and don't print error when file does not exist

    except OSError as e:
        if e.errno != 2:


  • d9ae9ee Do not log error when removing a non-existing file

The issue 3) is still present. When ipa-server-install --uninstall is executed, it restores the files first (including /etc/krb5.keytab), then as latest steps calls ipa-client-install --uninstall.
ipa-client uninstallation calls ipa-rmkeytab in order to remove all the principals associated to the domain from /etc/krb5.keytab. But the keytab does not contain any more the principals and returns exit code 5, which could be ignored.


  • a0d9026 server uninstall fails to remove krb principals

Metadata Update from @pvoborni:
- Issue assigned to frenaud
- Issue set to the milestone: FreeIPA 4.4.1

7 years ago

Login to comment on this ticket.