Problem:
The above error shows when deleting the host. This is b/c of the following error:
2022-08-26T16:35:38 [I|app|140e6c8f] Deactivating node in PuppetDB: ------001
2022-08-26T16:35:38 [W|app|140e6c8f] Failed to deactivate node ------001 in PuppetDB: Failed to open TCP connection to localhost:8081 (Permission denied - connect(2) for “localhost” port 8081)
140e6c8f |
2022-08-26T16:35:38 [I|app|140e6c8f] Backtrace for 'Failed to deactivate node ------001 in PuppetDB: Failed to open TCP connection to localhost:8081 (Permission denied - connect(2) for “localhost” port 8081)
140e6c8f | ’ error (Errno::EACCES): Failed to open TCP connection to localhost:8081 (Permission denied - connect(2) for “localhost” port 8081)
I just installed foreman using:
foreman-installer \
--scenario katello \
--enable-certs \
--enable-foreman \
--enable-foreman-cli \
--enable-foreman-cli-ansible \
--enable-foreman-cli-azure \
--enable-foreman-cli-katello \
--enable-foreman-cli-puppet \
--enable-foreman-cli-remote-execution \
--enable-foreman-cli-virt-who-configure \
--enable-foreman-plugin-ansible \
--enable-foreman-plugin-azure \
--enable-foreman-plugin-discovery \
--enable-foreman-plugin-hooks \
--enable-foreman-plugin-openscap \
--enable-foreman-plugin-puppet \
--enable-foreman-plugin-puppetdb \
--enable-foreman-plugin-remote-execution \
--enable-foreman-plugin-rh-cloud --scenario katello \
--enable-foreman-proxy-plugin-ansible \
--enable-foreman-plugin-setup \
--enable-foreman-puppet
I’ve removed everything from the installer that contains puppet +
foreman-installer --puppet-server false --foreman-proxy-puppet false --puppet-server-ca false --foreman-proxy-puppetca false
I sadly still get the error and i’m not sure how to resolve this problem. I’ve found here that puppet isn’t really needed anymore: Foreman-installer --scenario katello does not install puppet-server
But it does seem to cause some issues when deleting a host.
Expected outcome:
Host should be deleted.
Foreman and Proxy versions:
(latest)
Foreman and Proxy plugin versions:
(latest)
Distribution and version:
rhel 8.6
Other relevant data: