Problem: Foreman is trying to connect to the wrong network interface on a host (not the Primary interface)
Expected outcome: Foreman uses the Primary interface IP address when trying to connect to a Host.
Foreman and Proxy versions: 3.211.2
Foreman and Proxy plugin versions:
- foreman-tasks: 9.1.1
- foreman_ansible: 14.0.0
- foreman_bootdisk: 21.2.3
- foreman_remote_execution: 13.1.0
- katello: 4.13.1
Distribution and version: AlmaLinux 9.4
Other relevant data:
I am having this problem with two Hosts. They each have two network interfaces. When I attempt to run Ansible Roles on these Hosts, it fails with the error “UNREACHABLE!” and “Connection timed out.”
From the shell on the Foreman server, I can successfully initiate ssh connections to the two Hosts, when using the IPs that are marked as the Primary interfaces in the Host config. I’m 99% sure Foreman is using the non-Primary interface for these hosts to try to connect, and ssh won’t work on their non-Primary interfaces.