foreman_vault
foreman_vault copied to clipboard
A sealed vault causes multiple issues in Foreman/Satellite
When the vault is sealed it causes multiple issues across Foreman/Satellite and it's not exactly clear that it is vault that's causing the issue, you have to do some digging to find the root cause. I have two samples but there could be more.
When running attempting to run ansible roles, the task fails instantly with the following error before it can run any of the roles.
Error loading data from Capsule: ArgumentError - wrong number of arguments (given 1, expected 2..3)
It also happens when attempting to build a host with errors such as:
dracut-initqueue[7Z9]: Warning: Transient problem: HTTP error Will retry in 1 seconds. 3 retries
What I find a bit strange is that in both of these cases there are no macros from the vault plugin being used, yet somehow it appears to be making requests to vault. There are neither vault macros/variables the kickstart or the ansible job template/ansible roles.
Hi @gardar,
I'm able to reproduce the issue with sealed Vault, however as soon as I remove the vault_secret
macro the template is rendered correctly. Could you please inspect the snippets you use to make sure they do not use macros from the vault plugin?