Creating discovered hosts is not working

When I start a new host I get to:

That is fine. Then I click on Hosts > Discovered hosts and on the “Provision” button on the right side. After customizing the host I click “submit” and then nothing happens.

Expected outcome:
The host is created in foreman and rebooted.

Foreman and Proxy versions:

Foreman and Proxy plugin versions:
foreman-tasks 1.1.1
foreman_ansible 5.0.1
foreman_discovery 16.0.1
foreman_remote_execution 3.2.1

Distribution and version:
Debian 10.4

Other relevant data:
This might be related to one of these:

/var/log/foreman/production.log (11.4 KB)
/var/log/foreman-proxy/proxy.log (4.1 KB)

I just discovered, that I cannot create hosts manually through Hosts > Create Hosts. The symptons are the same.

Is this related to Cannot delete hosts ?

Yes, it seems it was related.
Since the update of ruby-smart-proxy-remote-execution-ssh to 0.3.0 creating hosts works again.

Remote execution is not associated with anything in discovery (yet). It had to be some misconfiguration. Foreman needs to connect to discovered hosts via HTTPS. For more info:

Also Discovery Smart Proxy must be set for Subnet if you need to proxy the requests.

1 Like