Bug #2711
closedReview provision template leads to: HTTP-error 500 - Internal Server Error
Description
VMWare Esxi 5.0.0 managed by VSphere (VMware vCenter Server 5.0.0.16964)
CentOS release 6.2 (Final)
Foreman 1.2 RC3
Clicking the Edit button for both "PXELinux Template" and "provision Template" for a created vmware host works.
url's:
https://foreman.localdomain/config_templates/1-kickstart-default-pxelinux/edit
https://foreman.localdomain/config_templates/4-kickstart-default/edit
Also clicking the "PXELinux Template" Review button for created vmware host works
url:
https://foreman.localdomain/unattended/PXELinux?spoof=192.168.88.3
I then get the contents of the template:
default linux
label linux
kernel
append initrd= ks=http://foreman.localdomain/unattended/provision ksdevice=bootif network kssendmac
But when I click the "provision Template" for the same vmware host:
url:
https://foreman.localdomain/unattended/provision?spoof=192.168.88.3
I get HTTP-error 500 - Internal Server Error
The kickstarted VM is also unable to retrieve the needed kickstart file during boot.
I attached debug log wich includes all 4 actions as (production-500-error.log)
Files
Updated by Dominic Cleal almost 12 years ago
- Category set to Templates
- Status changed from New to Feedback
I wonder if this is #2710, there was a bug in the default kickstart template that meant it would trigger a safemode failure. Perhaps try changing the line in the patch there in the template, or disable safemode via More>Settings>Provisioning>render_safemode = false and see if the 500 error goes away.
If not, are there any more details given on the spoof page when you view it?
Updated by Ronny M almost 12 years ago
Yes setting "render_safemode = false" solves the error 500 and kickstart is also working fine now.
Thanks :)
Updated by Dominic Cleal almost 12 years ago
- Status changed from Feedback to Duplicate
I think it's just that change to the template then. If you get the chance to test it with safemode enabled, that'd be great.
Thanks for the ever-excellent bug reports!
Updated by Ronny M almost 12 years ago
Added change in https://github.com/theforeman/community-templates/pull/15 to "Kickstart Default" template.
And changed render_safemode back to true.
Reviewing provision template and kickstart are both working fine now with render_safemode enabled :)