#7657 Leaving IPA domain fails: Failed to remove krb5/LDAP configuration: expected str, bytes or os.PathLike object, not NoneType
Closed: fixed Opened by rcritten.

Ticket was cloned from Red Hat Bugzilla (product Fedora): Bug 1588386

Description of problem: When leaving a FreeIPA domain, this error happens:
Jun 07 04:02:20 x0.cockpit.lan realmd[1857]: Disabling client Kerberos and LDAP
configurations
Jun 07 04:02:20 x0.cockpit.lan realmd[1857]: Failed to remove krb5/LDAP
configuration: expected str, bytes or os.PathLike object, not NoneType
Jun 07 04:02:20 x0.cockpit.lan realmd[1857]: The ipa-client-install command
failed. See /var/log/ipaclient-uninstall.log for more information
Jun 07 04:02:20 x0.cockpit.lan realmd[1857]: process exited: 2753
Jun 07 04:02:20 x0.cockpit.lan realmd[1857]:  ! Running ipa-client-install
failed
Version-Release number of selected component (if applicable):
freeipa-client-4.6.90.pre2-3.fc28.x86_64
realmd-0.16.3-12.fc28.x86_64
How reproducible: Always
I attach the uninstall log.

Metadata Update from @rcritten:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1588386

Metadata Update from @frenaud:
- Issue assigned to frenaud

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

master:

  • d0173c9548857f855d95ba4bb5b068841f356049 authselect: harden uninstallation of ipa client
  • 1a7e4b0ec1a7fcd7242b4ae76582a272c4f63657 tests: add test for uninstall with incomplete sysrestore.state

ipa-4-7:

  • 7ce495048d2de59042e1b61b8a56ca04f6b2dca9 authselect: harden uninstallation of ipa client
  • 4f323bc20f5e5df828dc6e8efb670248df57d9b8 tests: add test for uninstall with incomplete sysrestore.state

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

Metadata