Describe the bug
If using Vault Agent to render multiple templates, if one fails then all of the other ones are aborted. Then, even the successfully rendered templates are also rescheduled to run again. This is problematic when combined with exec {} blocks within the template as those are also re-executed on all rescheduled templates which on our case causes the nomad agents to constantly restart.
To Reproduce
Steps to reproduce the behavior:
- Write two
template {} blocks for Vault Agent
- Make one of them contain an
exec {} template that always fails
- See that both templates keep re-rendering despite only one failing, alternatively that the functioning one never renders at all.
Expected behavior
Only the failing template should fail and be rescheduled, not all templates.
Environment:
- Vault Server Version (retrieve with
vault status): v2.0.1
- Vault CLI Version (retrieve with
vault version): v2.0.3
- Server Operating System/Architecture: Ubuntu 24.04
Additional context
N/A
Describe the bug
If using Vault Agent to render multiple templates, if one fails then all of the other ones are aborted. Then, even the successfully rendered templates are also rescheduled to run again. This is problematic when combined with
exec {}blocks within the template as those are also re-executed on all rescheduled templates which on our case causes the nomad agents to constantly restart.To Reproduce
Steps to reproduce the behavior:
template {}blocks for Vault Agentexec {}template that always failsExpected behavior
Only the failing template should fail and be rescheduled, not all templates.
Environment:
vault status): v2.0.1vault version): v2.0.3Additional context
N/A