Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A sealed vault causes multiple issues in Foreman/Satellite #57

Open
gardar opened this issue Sep 29, 2022 · 1 comment
Open

A sealed vault causes multiple issues in Foreman/Satellite #57

gardar opened this issue Sep 29, 2022 · 1 comment

Comments

@gardar
Copy link
Contributor

gardar commented Sep 29, 2022

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)

image

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

image
image

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.

@kamils-iRonin
Copy link
Contributor

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?

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants