AWX DB password issue in Kubernetes install

Hi,

I have installed AWX(built and pushed to a private repo) and PostgreSQL containers(installed DB containers from docker.io). Installation was successful after some effort and I see following 3 pods in running state.

NAME READY STATUS RESTARTS AGE
pod/ansible-tower-management 1/1 Running 0 76m
pod/awx-56dff655f5-c5rrr 3/3 Running 0 76m
pod/awx-postgresql-postgresql-0 1/1 Running 0 75m

I am unable to access AWX web console and see below errors when I checked awx-web container log.

kubectl logs -n awx pod/awx-56dff655f5-c5rrr -c awx-web -n awx --tail 200

File “/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/db/backends/base/base.py”, line 217, in ensure_connection
self.connect()
File “/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/db/utils.py”, line 89, in exit
raise dj_exc_value.with_traceback(traceback) from exc_value
File “/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/db/backends/base/base.py”, line 217, in ensure_connection
self.connect()
File “/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/db/backends/base/base.py”, line 195, in connect
self.connection = self.get_new_connection(conn_params)
File “/var/lib/awx/venv/awx/lib/python3.6/site-packages/django/db/backends/postgresql/base.py”, line 178, in get_new_connection
connection = Database.connect(**conn_params)
File “/var/lib/awx/venv/awx/lib/python3.6/site-packages/psycopg2/init.py”, line 126, in connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
django.db.utils.OperationalError: FATAL: password authentication failed for user “awx”

kubectl logs -n awx pod/awx-postgresql-postgresql-0 -n awx --tail 200

Connection matched pg_hba.conf line 95: “host all all all md5”
2020-12-14 03:35:43.908 UTC [2572] FATAL: password authentication failed for user “awx”

Changes made to file:

Kubernetes Install

kubernetes_context=docker-desktop
kubernetes_namespace=awx
kubernetes_web_svc_type=NodePort

Optional Kubernetes Variables

pg_image_registry=docker.io
pg_serviceaccount=awx
pg_volume_capacity=5
pg_persistence_storageClass=pgs

Created PV and PVC for this

pg_persistence_existingclaim=awx-pvc

Common Docker parameters

awx_task_hostname=MyPC
awx_web_hostname= MyPC

Used this path as ‘hostPath’ path in PV YAML as well

postgres_data_dir=“/home/users/awx-db-data”

docker_registry=docker.io
docker_registry_repository=myrepo
docker_registry_username=myuser

pg_password=awxtest422
pg_database=awx
pg_port=5432

use_container_for_build=true

admin_user=awx
admin_password=awx@dminTest

secret_key=awxsecretTst

I do see above mentioned password as environment variable when I exec into PostgreSQL pod, so not sure what’s missing here. I have deleted and re-build AWX images couple of times so far, and consistently getting the same error.
I tried changing admin_user value from ‘admin’ to ‘awx’ since that was mentioned as an issue in older versions but no luck yet.
Looks like I am missing something here, but unable to identify that.

Thanks

Not sure what the issue was, running same install again after Windows restart fixed the problem. Maybe it’s Windows issue since I am testing in WSL Ubuntu and Docker Desktop single node Kubernetes cluster.