Closed wimax-grapl closed 2 years ago
(you'll note that the alloc_id is different, I accidentally captured a retry, but the same shows up for 8ee3098b.)
I would also appreciate this. I'm doing some custom changes to the task driver and even just letting the errors propagate as they are was really helpful.
Do you think just propagating the error here: https://github.com/cneira/firecracker-task-driver/blob/master/driver/driver.go#L297 https://github.com/cneira/firecracker-task-driver/blob/master/driver/driver.go#L258 would be alright?
I'm not the author of this plugin, but I think based on how other official supported Nomad drivers work, it'd be totally reasonable.
The vast majority of the StartTask return statements include the err
in, say, the Docker driver:
https://github.com/hashicorp/nomad/blob/52faa167dd0e18685440de5b6613f397b5fa0aa8/drivers/docker/driver.go#L300
I made these changed in https://github.com/cneira/firecracker-task-driver/pull/21
@cneira I think we can close this issue.
So I have a task start failing with the following, not-very-useful info:
However, going to the Nomad Agent logs I get the following, much more intelligible errors: failure when invoking CNI: failed to load CNI configuration from dir \"/etc/cni/conf.d\" for network \"default\": no net configurations found in /etc/cni/conf.d"
I was wondering if it'd be possible to propagate that error up to the UI? Thanks!