I think if the autoprovisioning fails, managed host should be created
instead of the discovered one.
Can you please send the result of GET /api/v2/hosts/?
Also I would like to see the result of host's ENC rendering. It should be
available through the UI:
1. Go to hosts list
2. Click on the new
Thank you for your reply.
Autoprovisioning doesn't really fail as a whole.
It fails to retrieve hostgroup's OS parameter in the assigned template. As
a result, I get empty fields instead of values in the rendered PXE
template. Happens only when at least one hostgroup parameter exists (as
explained
Does the user who initiates the auto provisioning have "view_params" permission?
If you start foreman-rake console and type:
Host.find(ID).host_param('param_name')
for the already provisioned host, do you get the expected result there?
Can you comment out line "return cached_host_params unless
Thank you for your reply.
Autoprovision is triggered by user with Administrator rights. In fact, it's
the initial admin user, 'Administrator' ticked on roles tab.
OS parameter name is *'prov_vgname'*.
Now for the foreman-rake console results:
*Host.find(263).host_params('prov_vgname'): *https://
This needs to be debugged, please create a ticket for us.
LZ
On Wed, Nov 29, 2017 at 4:03 PM, Garreat wrote:
> Thank you for your reply.
>
> Autoprovision is triggered by user with Administrator rights. In fact, it's
> the initial admin user, 'Administrator' ticked on roles tab.
>
> OS parameter