#9921 ipa uninstallation is failing with message "'NoneType' object has no attribute 'lower'"
Closed: fixed by rjeffman. Opened by dhanina.

When uninstalling freeipa an error is on occasion thrown, resulting in a non-complete uninstall.

To replicate, you can setup freeipa server.
Assuming your server is up and running:

  • Setup replica
ipa-client-install
ipa-replica-install
ipa-ca-install
  • Remove some of the important lines in pki config.
vi /etc/pki/pki-tomcat/ca/CS.cfg
remove line ca.crl.MasterCRL.enableCRLCache=true
  • Run uninstall
ipa-server-install --uninstall

Whoops crash...

...
File "/usr/lib/python3.6/site-packages/ipaserver/install/cainstance.py", line 1341, in is_crlgen_enabled
enableCRLCache = cache.lower() == 'true'
...

This can be fixed by ensuring we check for None before calling .lower().

We most likely assume people will set lines to false, instead they resort to line deletion.


Metadata Update from @dhanina:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/8111

master:

  • e70907f6daf726292ff6e5c913a4e432f793fde5 Replace None with '' when uninstalling CA

Metadata Update from @frenaud:
- Custom field rhbz adjusted to https://issues.redhat.com/browse/RHEL-88855

ipa-4-13:

  • a583b0dc08536a50e10b76e27861864b61906355 Replace None with '' when uninstalling CA

Metadata Update from @rjeffman:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

Metadata Update from @frenaud:
- Custom field rhbz adjusted to https://issues.redhat.com/browse/RHEL-88855, https://issues.redhat.com/browse/RHEL-147191 (was: https://issues.redhat.com/browse/RHEL-88855)

Metadata