When installing/uninstalling with realmd, uninstalling crashes with ScriptError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
freeipa (Debian) |
New
|
Unknown
|
|||
freeipa (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
Bionic |
Won't Fix
|
Undecided
|
Unassigned | ||
Hirsute |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
ProblemType: Crash
DistroRelease: Ubuntu 21.04
PackageVersion: python3-ipaclient 4.8.6-1ubuntu5
SourcePackage: freeipa
Architecture: amd64
Joining a FreeIPA domain with plain ipa-client-install works well:
# ipa-client-install -p admin --password=SECRET --no-ntp
[...]
The ipa-client-install command was successful
And leaving it again with "ipa-client-install --uninstall" also works.
However, when doing this through realmd (which configures some additional useful stuff), it causes a crash:
# realm join
Password for admin:
This works fine:
# realm list
cockpit.lan
type: kerberos
realm-name: COCKPIT.LAN
domain-name: cockpit.lan
configured: kerberos-member
server-software: ipa
client-software: sssd
required-package: freeipa-client
required-package: sssd-tools
required-package: sssd
required-package: libnss-sss
required-package: libpam-sss
login-formats: %<email address hidden>
login-policy: allow-realm-logins
But leaving fails:
# realm leave
See: journalctl REALMD_
realm: Couldn't leave realm: Running ipa-client-install failed
root@x0:~# echo $?
1
The crash from /var/log/
2021-10-
2021-10-
return_value = self.run()
File "/usr/lib/
return cfgr.run()
File "/usr/lib/
return self.execute()
File "/usr/lib/
for rval in self._executor():
File "/usr/lib/
exc_
File "/usr/lib/
self.
File "/usr/lib/
six.
File "/usr/lib/
raise value
File "/usr/lib/
step()
File "/usr/lib/
step = lambda: next(self.__gen)
File "/usr/lib/
six.
File "/usr/lib/
raise value
File "/usr/lib/
value = gen.send(
File "/usr/lib/
next(executor)
File "/usr/lib/
exc_
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
six.
File "/usr/lib/
raise value
File "/usr/lib/
super(
File "/usr/lib/
six.
File "/usr/lib/
raise value
File "/usr/lib/
step()
File "/usr/lib/
step = lambda: next(self.__gen)
File "/usr/lib/
six.
File "/usr/lib/
raise value
File "/usr/lib/
value = gen.send(
File "/usr/lib/
for unused in self._uninstall
File "/usr/lib/
uninstall(self)
File "/usr/lib/
raise ScriptError(
2021-10-
Ubuntu 20.04 LTS is affected the same way. Note that this crash does *not* happen on Debian 10 or testing (nor in Fedora, RHEL, or CentOS). We found this through Cockpit's tests, and it only happens on Ubuntu.
Changed in freeipa (Debian): | |
status: | Unknown → New |
Changed in freeipa (Ubuntu Bionic): | |
status: | New → Won't Fix |
For completeness, this is /var/log/ ipaclient- install from the successful "realm join".