I have a Katello 2.4 server that is connected to a capsule (both running
CentOS 7.5).
When I try to boot a host that is attached to the capsule, it fails at the
stage where it should be downloading its kickstart file. If I type in the
URL of the kickstart file it failed to download manually into the URL bar I
get the following error message :
Failed to retrieve provision template for {"token"=>"cdba7c7d-d392-4ae3-a8d8-e9e158ad42d0", "splat"=>[], "captures"=>["provision"], "kind"=>"provision"}: Error retrieving provision for {"token"=>"cdba7c7d-d392-4ae3-a8d8-e9e158ad42d0", :url=>"http://katello1-ops-prod-nvan.mydomain.net:8000"} from katello1-ops-int-nvan.dev-mydomain.net: Net::HTTPInternalServerError
This just started randomly happening and I was previously able to download
kickstart files.
Restarting httpd does not help. No changes have been made to the server
recently.
For anyone else experiencing that issue, the actual issue is that your
kickstart template had a rendering error. For some crazy reason this is
not logged anywhere.
The only hint I could find was looking at the
/var/log/httpd/foreman_access.log file and seeing a request ending in HTTP
500.
I typed the URL into my web browser and saw the actual error that it could
not render the kickstart.
This error was not logged in the foreman_error.log or the regular
error_log. No clue where it is being logged if anywhere because I searched
the foreman proxy log and a bunch of other stuff (/var/log/messages,
journalctl etc) and couldn't find it.
ยทยทยท
On Wednesday, January 20, 2016 at 5:19:41 PM UTC-8, Nathan Peters wrote:
>
> I have a Katello 2.4 server that is connected to a capsule (both running
> CentOS 7.5).
>
> When I try to boot a host that is attached to the capsule, it fails at the
> stage where it should be downloading its kickstart file. If I type in the
> URL of the kickstart file it failed to download manually into the URL bar I
> get the following error message :
>
> Failed to retrieve provision template for {"token"=>"cdba7c7d-d392-4ae3-a8d8-e9e158ad42d0", "splat"=>[], "captures"=>["provision"], "kind"=>"provision"}: Error retrieving provision for {"token"=>"cdba7c7d-d392-4ae3-a8d8-e9e158ad42d0", :url=>"http://katello1-ops-prod-nvan.mydomain.net:8000"} from katello1-ops-int-nvan.dev-mydomain.net: Net::HTTPInternalServerError
>
>
> This just started randomly happening and I was previously able to download
> kickstart files.
>
> Restarting httpd does not help. No changes have been made to the server
> recently.
>