Bug #2792
openIf you delete "PXE Localboot Default" cancel build fails
Description
Hello,
i deleted the Provisioning template "PXE Localboot Default" and after that it was no longer possible to cancel a build for a host.
The error i got was:
Failed to save: Failed to generate PXELinux template: undefined method `template' for nil:NilClass
Via finish.sh script i also tried to call https://foreman/unattended/built but i only got a 409.
So maybe it would be good to make the Template undeleteable.
Thanks,
Florian
Updated by Greg Sutcliffe over 11 years ago
As we don't have an "undeleteable" feature for templates, I'm not sure this is a strong enough use case to implement one. It could be sensible to have some internal string which could be used if the template is not found, though. Any objections?
Updated by Lukas Zapletal over 11 years ago
- Category set to Templates
- Target version set to 1.3.0
Can't we just implement ON DELETE ERROR instead default ON DELETE NULL for this one?
Updated by Greg Sutcliffe over 11 years ago
We could, yes. I'm happy with either approach, tbh.
Updated by Florian Rosenegger over 11 years ago
Hello again,
i would also be happy if Foreman would just post a message that it is missing this special template (maybe with a hint to create one with the default name..)
My problem was that i just couldn't cancel the build but there was none whatsoever reason why (even in the log) and without Ohad and the IRC i wouldn't had a single idea what the error means.
The undeleteable feature for important templates was just one idea, but maybe/definitely not the best.
Updated by Lukas Zapletal about 11 years ago
- Description updated (diff)
- Target version deleted (
1.3.0)
Updated by Dominic Cleal about 11 years ago
- Has duplicate Bug #2215: When PXE Localboot Default is deleted, causes nil error when cancelling build added
Updated by Dominic Cleal about 11 years ago
- Related to Feature #3103: Read only provisioning/config templates for plugins added
Updated by Lukas Zapletal about 11 years ago
- Status changed from New to Ready For Testing
- Assignee set to Lukas Zapletal
- Target version set to 1.15.0
- Translation missing: en.field_release set to 1
- Difficulty set to trivial
At least, I am adding comment to the templates.
Updated by Dominic Cleal about 11 years ago
- Status changed from Ready For Testing to New
- Assignee deleted (
Lukas Zapletal) - Target version deleted (
1.15.0) - Translation missing: en.field_release deleted (
1) - Difficulty deleted (
trivial)
Sorry, I'm going to reset this as I don't think this is a final solution to the issue, helpful though it is. Thanks Lukas.
Updated by Dominic Cleal almost 11 years ago
- Has duplicate Bug #4008: Disable 'build mode' unsuccessful added
Updated by Dominic Cleal about 10 years ago
- Related to Feature #7484: Per-subnet PXELinux global default files added