AWX 19.0.0: password authentication failed for user "awx"

1,399 views
Skip to first unread message

BMC

unread,
Apr 14, 2021, 5:17:31 AM4/14/21
to AWX Project
Setup
CentOS 7, 3.10.0-1160.21.1.el7.x86_64
minikube version: v1.19.0
AWX 19.0.0

Steps to reproduce
$ minikube start --addons=ingress --driver=none
$ kubectl apply -f https://raw.githubusercontent.com/ansible/awx-operator/devel/deploy/awx-operator.yaml
$ kubectl apply -f awx19.yaml
$ cat awx19.yml
---
apiVersion: awx.ansible.com/v1beta1
kind: AWX
metadata:
  name: awx
spec:
  tower_ingress_type: Ingress

Issue
I'm trying to use the AWX 19 minimum working example with the managed Postgres DB. Minikube is installed on a VM (mind the none driver). The operator and the pods get deployed successfully. When accessing the service URL, I'm getting 500 Internal Server Error. In the logs I can see many failed auth attempts to the database.

AWX-Task container logs:
psycopg2.OperationalError: FATAL:  password authentication failed for user "awx"
django.db.utils.OperationalError: FATAL:  password authentication failed for user "awx"

Postgres container logs:
PostgreSQL Database directory appears to contain a database; Skipping initialization

2021-04-13 08:14:16.165 UTC [1] LOG:  starting PostgreSQL 12.6 (Debian 12.6-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
2021-04-13 08:14:16.166 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2021-04-13 08:14:16.166 UTC [1] LOG:  listening on IPv6 address "::", port 5432
2021-04-13 08:14:16.168 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2021-04-13 08:14:16.200 UTC [26] LOG:  database system was shut down at 2021-04-13 07:54:15 UTC
2021-04-13 08:14:16.207 UTC [1] LOG:  database system is ready to accept connections
2021-04-13 08:14:31.686 UTC [33] FATAL:  password authentication failed for user "awx"
2021-04-13 08:14:31.686 UTC [33] DETAIL:  Connection matched pg_hba.conf line 99: "host all all all scram-sha-256"
2021-04-13 08:14:31.952 UTC [35] FATAL:  password authentication failed for user "awx"

BMC

unread,
May 11, 2021, 8:19:49 AM5/11/21
to AWX Project
The problem doesn't occur anymore with minikube v1.20.0, awx-operator 0.9.0.
Reply all
Reply to author
Forward
0 new messages