Provisioning hosts doesnt work well with host parameters

We found out, that if remove this foreman/app/models/host/managed.rb at develop · theforeman/foreman · GitHub it does work again.

There is no error in the logs - it does simply not register.

In the boostrap-23233234234 file on the host itself you see, that registration_type is empty (‘‘)

So you’re effectively reverting Fixes #38422 - Host Orchestration - Renderability checks for templates · theforeman/foreman@03224dc · GitHub.

correct

Hi,

Check my draft PR: [WIP] host_param macro & transient host parameters by stejskalleos · Pull Request #10790 · theforeman/foreman · GitHub

From the investigation in the RFC, there are three suggestions for fixes:

  1. Change logic in the Orchestration queuing.

  2. Allow rendering transient host params via :host_parameter macro.

  3. Revert the Orchestration::Templates feature.

I chose a second approach simply for the safety & lower impact, I don’t feel confident enough to alter the orchestration workflow. Plus, the second approach is more straightforward to cherry-pick, which we need.
The third option is a last resort, to be used only after we agree there is no hope.

More information & details in the Github PR.
Happy Friday!