[foreman-users] Re: [discovery auto-provision] OS parameters ignored when hostgroup parameter present

2017-11-28 Thread sshtein
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

Re: [foreman-users] Re: [discovery auto-provision] OS parameters ignored when hostgroup parameter present

2017-11-29 Thread Jacek Mierzwa
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

Re: [foreman-users] Re: [discovery auto-provision] OS parameters ignored when hostgroup parameter present

2017-11-29 Thread Lukas Zapletal
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

Re: [foreman-users] Re: [discovery auto-provision] OS parameters ignored when hostgroup parameter present

2017-11-29 Thread Garreat
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://

Re: [foreman-users] Re: [discovery auto-provision] OS parameters ignored when hostgroup parameter present

2017-11-30 Thread Lukas Zapletal
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