Hi all, I created a new awx server using
apiVersion: awx.ansible.com/v1beta1
kind: AWX
metadata:
name: ansible-awx
namespace: awx
spec:
service_type: nodeport
postgres_storage_class: gp2
postgres_configuration_secret: ansible-awx-postgres-configurations
secret_key_secret: awx-secret-key #old server secret key
After creating the new server. I migrated the old database to the new one using the following commands
kubectl exec -it ansible-awx-postgres-13-0 -- psql -U awx
\c postgres
DROP DATABASE awx;
CREATE DATABASE awx;
exit
kubectl exec -it ansible-awx-postgres-13-0 -- psql -U awx < awx.sql
After the migration, i am able to access all the data from the old server in the new server. However, when i launch a template on the new server, i get this error below and i have tried various approach to resolve it, but no luck. I would appreciate if anyone could help.
Traceback (most recent call last):
File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/cryptography/fernet.py”, line 134, in _verify_signature
h.verify(data[-32:])
cryptography.exceptions.InvalidSignature: Signature did not match digest.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/main/tasks/jobs.py”, line 512, in run
env = self.build_env(self.instance, private_data_dir, private_data_files=private_data_files)
File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/main/tasks/jobs.py”, line 1486, in build_env
env = injector.build_env(inventory_update, env, private_data_dir, private_data_files)
File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/main/models/inventory.py”, line 1462, in build_env
injector_env = self.get_plugin_env(inventory_update, private_data_dir, private_data_files)
File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/main/models/inventory.py”, line 1523, in get_plugin_env
ret = super(ec2, self).get_plugin_env(*args, **kwargs)
File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/main/models/inventory.py”, line 1493, in get_plugin_env
env = self._get_shared_env(inventory_update, private_data_dir, private_data_files)
File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/main/models/inventory.py”, line 1482, in _get_shared_env
getattr(builtin_injectors, cred_kind)(credential, injected_env, private_data_dir)
File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/main/models/credential/injectors.py”, line 14, in aws
env[‘AWS_SECRET_ACCESS_KEY’] = cred.get_input(‘password’, default=‘’)
File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/main/models/credential/init.py”, line 282, in get_input
return decrypt_field(self, field_name)
File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/main/utils/encryption.py”, line 159, in decrypt_field
return smart_str(decrypt_value(key, value))
File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/main/utils/encryption.py”, line 136, in decrypt_value
value = f.decrypt(encrypted)
File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/cryptography/fernet.py”, line 91, in decrypt
return self._decrypt_data(data, timestamp, time_info)
File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/cryptography/fernet.py”, line 152, in _decrypt_data
self._verify_signature(data)
File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/cryptography/fernet.py”, line 136, in _verify_signature
raise InvalidToken
cryptography.fernet.InvalidToken