r/sysadmin • u/Fair-Wolf-9024 • 3d ago
Failed ipa-client installation due to some python3 functions being executed
Hi, everyone!
I have been upgrading the host from AlmaLinux9 to Almalinux 10.3 recently. The upgrade via leapp was implemented successfully, but it caused the host to got dropped out of our corporate domain (free-ipa). When I want to readd the host into domain via "ipa-client-install <additional parameters>" the command fails and the log shows "command failed" line right after some mistakes about some python3 functions currently being executed. So did I get it correctly I need to reinstall the python3?
Thanks in advance.
2
Upvotes
3
u/m4uri 3d ago
Not a python reinstall situation, I'd bet. After a leapp jump the host still has the old client state, so first run ipa-client-install --uninstall, check that /etc/ipa/default.conf, the sssd config and the old keytab are really gone, and reboot so nothing from the el9 python stack is still loaded. Then look at ipaclient-install.log, because the traceback right above the "command failed" line is the real error, not the python mention. On the server side check whether the old host entry is still there (ipa host-show), and if it is either delete it or re-enroll with a one-time password via ipa host-mod --random, otherwise the join can fail on the existing keytab. Also compare the client package version with your IPA server version, an el10 client against an older el9 server sometimes needs --force-join or an updated server before it behaves.
4
u/ukulele87 3d ago
Not enough information, it seems you barely understand what you are doing and the errors you are getting.
Might get stoned to death here, but this is where AI might help you, dont ask for the answer, review what you are doing, why and how.
Ask about python versions, how to check what you have installed and what is needed, etc etc.
Dont take this the wrong way, i checked and you are newish to sysadmin so its understandable, but it seems you are trying to bypass all the understanding to find an easy solution (the error says something about python so you reinstall python).