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

Fatal: [local]: FAILED! => {"msg": "input apps definitions should be 'dict' types"} #720

Open
moticanvm opened this issue Jan 17, 2022 · 3 comments

Comments

@moticanvm
Copy link

Actual Behavior

When I run for instance bin/arnold -c eugene -e development -a edxapp bootstrap

I get this message:

TASK [Add meta-data to available applications]
fatal: [local]: FAILED! => {"msg": "input apps definitions should be 'dict' types"}

It happened because it's returning AnsibleUndefined for the applications ralph and grafana

I tried solve this issue by remove ralph and grafana from group_vars/customer/eugene/development/main.yml and run the same code again but I got the following error message:

TASK [Import registries variable]
fatal: [local]: FAILED! => {"ansible_facts": {}, "ansible_included_var_files": [], "changed": false, "message": "Decryption failed (no vault secrets were found that could decrypt) on /app/group_vars/customer/eugene/development/secrets/edxapp.vault.yml"}

Then I tried to recreate all the vault keys removing them and running the following:

bin/arnold -c eugene -e development -a edxapp create_db_vault
bin/arnold -c eugene -e development -a edxapp create_app_vaults

After I ran the bootstrap command again I didn't get any failure but I got this error message:

TASK [End play debug error message] **************************************************************************
ok: [local] => {
"msg": "No registries vault is associated with the namespace"
}

And as a result nothing was deployed on kubernetes

$ kubectl get pods
No resources found.

Any ideas? Much appreciated.

@jmaupetit
Copy link
Contributor

Have you tried the following?

# Build development images
$ make build-dev

# Activate local image
$ source bin/activate

# Install trays (distributed apps)
$ bin/arnold -c eugene -e development install_trays

@moticanvm
Copy link
Author

Hi Julien,

Thank you so much for taking your time and trying to help out.

I tried all above steps. When I then run the bootstrap command, the second error comes up
bin/arnold -c eugene -e development -a edxapp bootstrap

Response:

TASK [Decrypt vaulted credentials for the given customer and environment] ******
fatal: [local]: FAILED! => {"ansible_facts": {"EDXAPP_VAULT": {}}, "ansible_included_var_files": [], "changed": false, "message": "Decryption failed (no vault secrets were found that could decrypt) on /app/group_vars/customer/eugene/development/secrets/edxapp.vault.yml"}

Any ideas?

Thanks in advance!

@jo316it
Copy link

jo316it commented Sep 27, 2023

Hi,
I followed the same steps described above and also encountered this error.

TASK [Import databases variable] ************************************************************************************************************************************************************************************************************* fatal: [local]: FAILED! => {"ansible_facts": {}, "ansible_included_var_files": [], "changed": false, "message": "Decryption failed (no vault secrets were found that could decrypt) on /app/group_vars/customer/eugene/development/secrets/databases.vault.yml"}

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

No branches or pull requests

3 participants