Bug #2792
open
If you delete "PXE Localboot Default" cancel build fails
Added by Florian Rosenegger over 11 years ago.
Updated about 11 years ago.
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
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?
- 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?
We could, yes. I'm happy with either approach, tbh.
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.
- Description updated (diff)
- Target version deleted (
1.3.0)
- Has duplicate Bug #2215: When PXE Localboot Default is deleted, causes nil error when cancelling build added
- Related to Feature #3103: Read only provisioning/config templates for plugins added
- 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
- 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.
- Has duplicate Bug #4008: Disable 'build mode' unsuccessful added
- Related to Feature #7484: Per-subnet PXELinux global default files added
Also available in: Atom
PDF