Problem:
Ran into a weird issue today. I ran the installer before running a Katello update (4.21.1) after snapshotting and the installer failed with the following in proxy.log:
Disabling all modules in the group ['dhcp_remote_isc', 'dhcp'] due to a failure in one of them: File at '/mnt/nfs/etc/dhcp/dhcpd.conf' defined in 'config' parameter doesn't exist or is unreadable
Referring to the documentation at Integrating provisioning infrastructure services , I noticed the “new” command to verify foreman-proxy can read the remote dhcpd.conf is su - foreman-proxy -c 'head -5 /mnt/nfs/etc/dhcp/dhcpd.conf', so I ran it and it failed because foreman-proxy does not have a shell (it was set to /bin/false on my system). The command should really have -s /bin/bash in there argument in there. Regardless, I then set foreman-proxy to use /bin/bash as its shell with usermod -s /bin/bash foreman-proxy command and then re-ran the installer which completed successfully. This reverted the shell change, so foreman-proxy was back to using /bin/false as its shell, so I re-ran the installer again in this state and the installer succeeded again ???
Anyway, I’m just calling this out in-case others run into something similar as a workaround/fix for this odd behavior. Remote dhcp has been the flakiest part of my experience with Foreman/Katello in terms of it suddenly not working and having to go through the install instructions multiple times to fix permissions that have changed, sticky bits that were set, etc.
Foreman and Proxy versions:
rubygem-foreman_xen-1.0.2-2.el9.noarch
rubygem-foreman_xen-doc-1.0.2-2.el9.noarch
rubygem-hammer_cli_foreman_tasks-0.0.24-1.fm3_17.el9.noarch
rubygem-hammer_cli_foreman_ansible-0.8.2-1.fm3_18.el9.noarch
rubygem-foreman_maintain-1.15.0-1.el9.noarch
rubygem-hammer_cli_foreman-3.19.0-1.el9.noarch
rubygem-foreman-tasks-12.1.1-1.fm3_19.el9.noarch
rubygem-foreman_ansible-17.0.5-1.fm3_19.el9.noarch
rubygem-foreman_webhooks-5.0.3-1.fm3_19.el9.noarch
rubygem-hammer_cli_foreman_remote_execution-0.4.2-1.fm3_19.el9.noarch
rubygem-hammer_cli_foreman_webhooks-0.2.2-1.fm3_19.el9.noarch
ansible-collection-theforeman-foreman-5.11.0-1.el9.noarch
rubygem-foreman_remote_execution-16.6.4-1.fm3_19.el9.noarch
foreman-selinux-3.19.1-1.el9.noarch
foreman-3.19.1-1.el9.noarch
foreman-installer-3.19.1-1.el9.noarch
foreman-installer-katello-3.19.1-1.el9.noarch
foreman-dynflow-sidekiq-3.19.1-1.el9.noarch
foreman-postgresql-3.19.1-1.el9.noarch
foreman-redis-3.19.1-1.el9.noarch
foreman-service-3.19.1-1.el9.noarch
foreman-release-3.19.1-1.el9.noarch
foreman-proxy-3.19.1-1.el9.noarch
foreman-obsolete-packages-1.11-2.el9.noarch
foreman-cli-3.19.1-1.el9.noarch
Distribution and version:
Rocky Linux 9 5.14.0-687.36.1.el9_8.x86_64