Puppet agent -t | fails after installation of freeipa server because of httpd
After installation of freeipa-server. Running puppet agent -t
fails with the below error. It mainly searches for the service named httpd and checks whether it is running or not. Even though, httpd service is running as shown in `ipactl status'; 'puppet agent -t' fails as service is defined as httpd, whereas service name was apache2.
Puppet Agent -t Log
Debug: Executing: '/bin/systemctl start -- httpd'
Debug: Running journalctl command to get logs for systemd start failure: journalctl -n 50 --since '5 minutes ago' -u httpd --no-pager
Debug: Executing: 'journalctl -n 50 --since '5 minutes ago' -u httpd --no-pager'
Error: Systemd start for httpd failed!
journalctl log for httpd:
-- Logs begin at Wed 2019-12-25 16:19:53 CST, end at Wed 2020-01-29 09:16:56 CST. --
-- No entries --
Error: /Stage[main]/Freeipa::Install::Server/Service[httpd]/ensure: change from 'stopped' to 'running' failed: Systemd start for httpd failed!
journalctl log for httpd:
-- Logs begin at Wed 2019-12-25 16:19:53 CST, end at Wed 2020-01-29 09:16:56 CST. --
-- No entries --
Debug: Executing: '/bin/systemctl is-active -- ipa'
Debug: Executing: '/bin/systemctl is-enabled -- ipa'
IPACTL Status
ipactl status
Directory Service: RUNNING
krb5kdc Service: RUNNING
kadmin Service: RUNNING
named Service: RUNNING
httpd Service: RUNNING
ipa-custodia Service: RUNNING
pki-tomcatd Service: RUNNING
ipa-otpd Service: RUNNING
ipa-dnskeysyncd Service: RUNNING
ipa: INFO: The ipactl command was successful
root@ipa:~# service apache2 status
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; disabled; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
/etc/systemd/system/apache2.service.d
└─ipa.conf
Active: active (running) since Tue 2020-01-28 12:13:02 CST; 21h ago
Main PID: 1432 (apache2)
Tasks: 99 (limit: 4681)
CGroup: /system.slice/apache2.service
├─1432 /usr/sbin/apache2 -k start
├─1433 (wsgi:kdcproxy) -k start
├─1434 (wsgi:kdcproxy) -k start
├─1435 (wsgi:ipa) -k start
├─1436 (wsgi:ipa) -k start
├─1437 /usr/sbin/apache2 -k start
└─1439 /usr/sbin/apache2 -k start
root@ipa:~# service apache2 stop
root@ipa:~# ipactl status
Directory Service: RUNNING
krb5kdc Service: RUNNING
kadmin Service: RUNNING
named Service: RUNNING
httpd Service: STOPPED
ipa-custodia Service: RUNNING
pki-tomcatd Service: RUNNING
ipa-otpd Service: RUNNING
ipa-dnskeysyncd Service: RUNNING
ipa: INFO: The ipactl command was successful
root@ipa:~#