Closed justin-stephenson closed 2 years ago
It looks like IPA does not work correctly on Fedora 34.
[pbrezina ~]$ sts ssh ipa
Last login: Thu Apr 1 08:56:11 2021 from 192.168.100.1
[systemd]
Failed Units: 1
ipa.service
[vagrant@master.ipa.vm ~]$ sudo su
[systemd]
Failed Units: 1
ipa.service
[root@master.ipa.vm /home/vagrant]# systemctl status ipa.service
× ipa.service - Identity, Policy, Audit
Loaded: loaded (/usr/lib/systemd/system/ipa.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2021-04-01 08:55:45 UTC; 8min ago
Process: 567 ExecStart=/usr/sbin/ipactl start (code=exited, status=1/FAILURE)
Main PID: 567 (code=exited, status=1/FAILURE)
CPU: 563ms
Apr 01 08:55:42 master.ipa.vm systemd[1]: Starting Identity, Policy, Audit...
Apr 01 08:55:45 master.ipa.vm ipactl[567]: Unexpected error
Apr 01 08:55:45 master.ipa.vm ipactl[567]: AttributeError: 'Env' object has no attribute 'basedn'
Apr 01 08:55:45 master.ipa.vm systemd[1]: ipa.service: Main process exited, code=exited, status=1/FAILURE
Apr 01 08:55:45 master.ipa.vm systemd[1]: ipa.service: Failed with result 'exit-code'.
Apr 01 08:55:45 master.ipa.vm systemd[1]: Failed to start Identity, Policy, Audit.
FreeIPA works just fine on F34, you can see it with the recent OpenQA tests on F34: https://openqa.fedoraproject.org/tests/837588#dependencies (out of https://bodhi.fedoraproject.org/updates/FEDORA-2021-04b050e3d1).
What you show in the logs is a behavior on non-enrolled machine. Specifically, running systemctl status ipa.service
on a machine that is not an IPA server is expected to produce an error.
I re-run the scripts and double check that IPA installation succeeded. But the service does not work and running ipa-server-install against says that it is already configured.
[root@master.ipa.vm /home/vagrant]# ipa-server-install
The log file for this installation can be found in /var/log/ipaserver-install.log
IPA server is already configured on this system.
If you want to reinstall the IPA server, please uninstall it first using 'ipa-server-install --uninstall'.
The ipa-server-install command failed. See /var/log/ipaserver-install.log for more information
We use this step to install it, has something changed?
The installation was successful:
[sssd-ci] [fedora34] [ipa] TASK [ipa : Install IPA server]
[sssd-ci] [fedora34] [ipa] changed: [ipa]
But obviously something is missing from the system:
[root@master.ipa.vm /etc/ipa]# ll -R /etc/ipa
/etc/ipa:
total 20
drwx------. 2 root root 4096 Apr 1 09:52 custodia
drwxr-xr-x. 2 root root 4096 Apr 1 10:01 dnssec
drwxr-xr-x. 2 root root 4096 Apr 1 09:47 html
drwxr-xr-x. 2 root root 4096 Apr 1 10:00 kdcproxy
drwxr-xr-x. 2 root root 4096 Apr 1 10:02 nssdb
/etc/ipa/custodia:
total 8
-rw-rw----. 1 root root 625 Apr 1 09:52 custodia.conf
-rw-------. 1 root root 3325 Apr 1 09:52 server.keys
/etc/ipa/dnssec:
total 16
-r--r-----. 1 root ods 524 Apr 1 10:01 ipa-dnskeysyncd.keytab
-rw-r-----. 1 root named 423 Apr 1 10:01 openssl.cnf
-rw-r--r--. 1 root root 145 Apr 1 10:01 softhsm2.conf
-r--------. 1 root root 30 Apr 1 10:01 softhsm_pin_so
/etc/ipa/html:
total 16
-rw-r--r--. 1 root root 8198 Mar 31 06:20 ssbrowser.html
-rw-r--r--. 1 root root 2719 Mar 31 06:20 unauthorized.html
/etc/ipa/kdcproxy:
total 8
-rw-r--r--. 1 root root 1088 Apr 1 10:00 ipa-kdc-proxy.conf
-rw-r--r--. 1 root root 40 Mar 31 06:20 kdcproxy.conf
/etc/ipa/nssdb:
total 72
-rw-r--r--. 1 root root 28672 Apr 1 10:02 cert9.db
-rw-r--r--. 1 root root 36864 Apr 1 10:02 key4.db
-rw-r--r--. 1 root root 421 Apr 1 10:02 pkcs11.txt
-rw-------. 1 root root 41 Apr 1 10:02 pwdfile.txt
Can you pick up systemd journal and /var/log/ipa*.log files?
Alexander checked the system and it looks that disk content is not flushed correctly before vagrant halts the vm.
This is still an issue but it happens only in openstack automation inside nested virtualization. It is fine locally. I still don't know what to do with it.
I am trying to redeploy my test suite of an IPA server, and client but I see the following error. Any suggestions for further troubleshooting is appreciated.
If I ssh into the IPA guest I do not see any
/etc/ipa/ca.crt
file. This guest network cannot reach out to the internet also.Trying to provision the guest fails due to a network issue, it's not clear to me if this is the root of the issue, or a symptom.
The client system appears to be working fine. My config.json is as follows.