-
Notifications
You must be signed in to change notification settings - Fork 640
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
AWX web/task pod not launching correctly - "Waiting for database migrations..." and cannot execute awx-manage commands "connection is bad: Name or service not known" #1636
Comments
seems you have connectivity issues to your DB. So you may need to take some debugging steps to see why the connections are failing Looks like you are setting up an internal database (running as pod inside of the same cluster as awx-task/web). is that right? if so, you shouldn't need to set the |
I experience a quite similar issue when installing AWX with the operator version 2.18.0, although my setup somewhat different. I have my Postgres in Azure behind a VNet. I mount a custom However, the AWX migration Job does not configured to use it, and its pods apparently can't resolve the address of my Postgres ( Is there a way to configure the the migration Job to use Azure's DNS resolver? |
@sasvari-attila-bosch , have you solve this issue? I'm facing the same problem |
@vpelagatti, I wasn't able to resolve it using version 2.18.0, and I haven't tried with 2.19.*. |
Having the same issue in 2.19. In the past, I used to see the postgres configuration mounted to the task and web pods. This time I do not. I see redis secrets mounted instead? |
I have same problem, you couldn't decide? |
I am encountering the same issue. |
On my side, this was due to some strange mistakes in the secret generation('*-postgres-configuration' ). The host in it was awx-postgres-13 instead of awx-postgres-15, due to this, the initContianer init-database was trowing "Name or service not known". |
Please confirm the following
Bug Summary
When installing the recent (2.7.1) version of AWX (and others) on a v1.28 EKS Cluster, AWX does not correctly initialize.
The Web pod gets stuck in a loop of trying to complete the database migration (even though the deployment is fresh). When trying to run 'awx-manage' commands from the pod there are "connection is bad: Name or service not known" errors received.
All the pods are in Running state, but the web pod target shows as Unhealthy and when trying to access the ALB endpoint, the AWX interface does not come up. This was verified by port forwarding the web pod and hitting the IP directly, confirming the ALB was routing correctly.
AWX Operator version
2.7.1
AWX version
23.3.1
Kubernetes platform
kubernetes
Kubernetes/Platform version
1.28
Modifications
no
Steps to reproduce
Installation is performed via "kustomization" and ingress YAML per outlined here.
These files are deployed with command-
$ kubectl apply -k .
Expected results
Database to initialize / web service to become ready (connect to AWX service via ALB to target pod running in EKS)
Actual results
Additional information
awx-manage migrate --noinput
yields the output..Why can't AWX correctly initizalize? Also verified the named packages above were present. What could be inhibiting the connection?
Operator Logs
No response
The text was updated successfully, but these errors were encountered: