I only have one template associated with OS I’m trying to provision: Discovery Red Hat kexec
This should be the problem, for PXE provisioning you should have at least one PXE template generating the PXE configuration and one Provisioning template like a Kickstart, Preseed, Autoyast.
Also check if you have tftp smart proxy associated with the subnet on which you are provisioning system. If its not there then associate it, if smart proxy is not having tftp feature enabled then you would need to re-run installer and enable it.
Kick start files are being generated and kexec call restarts server. When provisioned host attempts to pull TFTP files Smart Proxy responds with a 500 error.
Error can be traced to foreman production.log:
=Started GET "/unattended/provision?token=02b1304e-a2ee-404f-84d0-7b9e3c72ff85&static=yes&url=http%3A%2F%2F172.xx.x.xx%3A8000" for fe80::2a89:3b30:a2c:f06f at 2018-08-19 23:52:23 -0400
Processing by UnattendedController#host_template as TEXT
Parameters: {"token"=>"02b1304e-a2ee-404f-84d0-7b9e3c72ff85", "static"=>"yes", "url"=>"http://172.22.1.73:8000", "kind"=>"provision", "unattended"=>{}}
Current user set to foreman_api_admin (admin)
Found maca0369fc36ece.prod.dc3
Current organization set to none
Current location set to none
Current location set to none
Current organization set to none
unable to find provision template for maca0369fc36ece.prod.dc3 running Centos 7
Rendering text template
Rendered text template (0.0ms)
Completed 404 Not Found in 43ms (Views: 0.5ms | ActiveRecord: 11.0ms)
/var/log/foreman-proxy/proxy.log:
GET /unattended/provision?token=a8c8e999-5c5b-4ad1-9c07-8d9c73122467&static=yes HTTP/1.1" 500 357 0.0894
ERROR -- : Connection reset by peer (Errno::ECONNRESET)
I’m starting to think this maybe an issue with the templates I’m using for the hostgroup:
I had a day off but looks like you are doing great progress here
The 404 error on this URL means you haven’t enabled templates smart proxy plugin or it has been brought dome due to misconfiguration. Check proxy logs, refresh “features” do you still see templates one?
Another known issue, Anaconda will NOT work with any HTTPS kickstart URL unless you build it yourself and add the CA file.
Hmm connection reset means that templates plugin was not able to proxy to foreman server, is foreman_url set properly? Firewalls?