-
Notifications
You must be signed in to change notification settings - Fork 651
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
[minikube] Upgrade from 19.2.0 to any newer version fails: could not translate host name "awx-postgres" to address: Name or service not known #445
Comments
I have a similar error here. I am running in AKS. A fresh install or even an upgrade will cause the same issue. |
So, I have two issues here? The static files issue and my "cannot find postgres" issue? Great.. Hope for a fast fix - the second test upgrade suceeded and static files as well as postgres was working. Next reboot: Problem occuring again. Interesting. |
Based on my logs it doesn't see postgres immediately or postgres isn't accepting connections but should be because its up and running. I wonder if they issues are related and if one step fails they both fail. |
I commented in the other issue I linked before. There is an issue connecting to postgres right away |
Sometimes it also happens during awxrestore. Didn't had a chance to check if the service really exists. Maybe just a timing issue ?
|
Yes this looks like the service does not exist or is not ready yet. I run istio and the service may not be connectable for a few seconds after the istio sidecar proxy starts. This PR may resolve your issues ansible/awx#10583. |
+1 that should be fixed by the next operator version and the awx release due ansible/awx#10583. |
Still seeing this in version 30 |
I had run into the same issue while upgrading the helm chart from 0.25.0 to 0.30.0 the service name changed from |
Strange enough I am experiencing this on Rocky 9 deployment, but not Rocky 8 with basically the same setup using only centos9 docker repo instead. Using latest operator and awx. @dark-vex Can you elaborate on the configmap you are editing? I and not using helm, but would like to try your bugfix/workaround. :) |
This issue has become stale. On upgrades involving a postgresql version bump, the postgresql service name will change, as mentioned, as will the If you have a custom postgres_configuration_secret with I am going to close this issue. Please open a new issue if you are still experience this and I will take a look. Thanks! |
Hi,
I migrated from docker to minikube and that was working great. The last few updates as well. But now any newer update ends in error and blank awx page.
Current config
minikube start command until now:
minikube start --cpus=4 --memory=8g --driver=docker --addons=ingress
which I had updated to:
minikube start --cpus=4 --memory=8g --driver=docker --addons=ingress --cni=flannel --install-addons=true --kubernetes-version=stable
I got an ingress error but fixed it via
kubectl -n kube-system edit deployment ingress-nginx-controller
and change of the image path - see kubernetes/minikube#8756 (comment)My awx yml:
Latest minikube start output:
Current pods:
Click to view
Upgrade procedure
I downloaded latest awx-operator.yml from https://raw.githubusercontent.com/ansible/awx-operator/0.12.0/deploy/awx-operator.yaml and applied it with
minikube kubectl -- apply -f awx-operator.yaml
which created new pods but they never get started.Then
get pods
shows:So far so good.
I tried the upgrade two times. The first one ran direct into the follwoing error, the second one DID SUCEEDED but after node restart ran into the same error!
My issue
So - my problem here is:
could not translate host name "awx-postgres" to address: Name or service not known
And I have absolutely no idea whats causing this.
Any ideas from your side?
The website is then blank because of 404's
Thanks in advance!
P.S.: In addition to the update, my admin password changed? Had to re-retrieve it via the secret decode command - but that worked.
describe after upgrade
The text was updated successfully, but these errors were encountered: