Bug #5708
closediPXE template fails with undefined method 'nil?' for Safemode::Jail (Token)"
Description
Error code 1d0c61: http://ipxe.org/err/1d0c61
Affects Foreman 1.5.0, always reproducable on my end.
Files
Updated by Dominic Cleal over 10 years ago
- Status changed from New to Need more information
Can you check /var/log/foreman/production.log when you provision? I'm interested to see if any requests reach Foreman, and if they complete successfully.
Updated by Dane Butler over 10 years ago
It does hit but doesn't explain much:
Started GET "/unattended/iPXE?token=4890cccd-e5c9-4900-b0fb-dbdc4831ea13&mac=00%3A50%3A56%3Ab9%3A71%3Aae" for 10.145.192.101 at 2014-05-14 22:32:11 +0000
Processing by UnattendedController#iPXE as HTML
Parameters: {"token"=>"4890cccd-e5c9-4900-b0fb-dbdc4831ea13", "mac"=>"00:50:56:b9:71:ae"}
Found ipa-evl-01.airservices.gov.au
Rendered inline template (15.0ms)
Rendered text template (0.0ms)
Completed 500 Internal Server Error in 34ms (Views: 0.5ms | ActiveRecord: 0.5ms)
Updated by Dominic Cleal over 10 years ago
The 500 error is a good indication. Try viewing the host page, then under the Templates tab preview the iPXE template and see what error is reported.
Updated by Dane Butler over 10 years ago
See it:
"There was an error rendering the Kickstart default iPXE template: undefined method 'nil?' for Safemode::Jail (Token)"
Changing "safemode_render" has resolved this issue. I remember 1.4.x actually prevented you from downloading the iso until this change was made. Suggest bringing this failsafe back.
Updated by Dominic Cleal over 10 years ago
- Project changed from Boot disk to Foreman
- Subject changed from VM won't provision with ipxe: Error 1d0c61 to iPXE template fails with undefined method 'nil?' for Safemode::Jail (Token)"
- Status changed from Need more information to New
- Assignee deleted (
Dominic Cleal) - Translation missing: en.field_release set to 16
The hope was that all of the safemode issues had been resolved, sorry!
I think we can either add .nil? to the permitted methods on Token, or update the template to always assume there's a token.
Updated by Anonymous over 10 years ago
- Status changed from New to Assigned
- Assignee set to Anonymous
Updated by Anonymous over 10 years ago
- Status changed from Assigned to Ready For Testing
Updated by Bryan Kearney over 10 years ago
- Bugzilla link set to https://bugzilla.redhat.com/show_bug.cgi?id=1107694
Updated by Anonymous over 10 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 3ff2bba4ef3987b131b49912fdd92bbf67f9c1ba.