Open Seb0042 opened 3 years ago
@Seb0042 could you please provide the output for the command below:
kubectl get secret awx-postgresql-configuration -o jsonpath="{.data.host}" | base64 --decode
Hi,
Data is anonymized here but it is the same form (respect of the - and . in the name): mydbservice.db-namespace.svc.my-cluster
If I put the ip address of the service it works, but still fails with the name.
I event tried by creating the base64 data with an "echo -n xxx | base64 -w 0".
ISSUE TYPE
SUMMARY
AWX containers can't connect to the database because the name of the database server has an additional carriage return.
ENVIRONMENT
AWX version: 1.17.1, migrating to 1.19.1
Operator version: 0.9.0
Kubernetes version: 1.20.6
AWX install method: operator
STEPS TO REPRODUCE
Filing an awx-postgresql-configuration as asked, like this:
Of course all the fields are b64 encoded.
EXPECTED RESULTS
I expect that the secret awx-app-credentials contains value for the credentials.py that will be configured as entered in the postgresql secret.
ACTUAL RESULTS
The line for the HOST is not well formated, I have an unexpected carriage return at the end of the HOST line. I have this result :