-
-
Notifications
You must be signed in to change notification settings - Fork 34
Update to AWX 11.2.0, Tower 3.7 #42
Comments
Strangely, it seems the AWX/Tower installer is using a shared volume for Redis instead of communicating via a service/port on TCP...? |
Ah, maybe it gets configured via the |
It seems like for the tower image, it used to be in Quay (quay.io/ansible-tower/ansible-tower), but the official Tower OpenShift installer now lists it at the Red Hat Registry (registry.redhat.io/ansible-tower-37/ansible-tower-rhel7)... which requires a valid Red Hat subscription and your cluster to be tied in/authenticated to be able to pull the images. It's a bit annoying, but I guess the intention may be to not run Tower on non-OpenShift Kubernetes clusters? Or maybe someone just forgot to run the job to push the tower images out to Quay.io. |
For now I'll push up my working branch (with the redis changes) since it could help with getting at least the latest AWX versions supported. |
Hmm... getting:
|
I tried connecting with a debug container:
So then I checked the redis container logs:
So it looks like it's only listening on the socket, and not on TCP... |
Got that fixed by switching redis to run on TCP port only, but now I'm getting the following when I try to launch a job from a template:
|
Error in task container:
|
It looks like my CHANNEL_LAYERS / BROKER_URL needed some updating: https://github.com/ansible/awx/blob/devel/awx/settings/defaults.py#L932-L941 It looks like AWX's default install uses:
Which is a little wild, as that assumes Redis is running on the same host and has the unix socket available... that's not a very sustainable solution if you want to run Redis with HA or in a separate scalable instance. |
I was asking about the choice of socket instead of TCP by default, and two main reasons were given:
I concede that these reasons are okay for single-server deployments but it gets a bit murky when talking about deploying in K8s/OCP, or even Docker (though the Docker setup is probably on the same machine 99% of the time). |
Latest commit works fine in CI, as I reduced the memory commitments (I think with the task/web using 1Gi each, we're bumping into CI instance RAM limits!). I haven't fully tested Tower 3.7.0 yet, but may try again tonight when I get a little more time to set up the pull secret for the Red Hat Registry. However, this image is ready to go, and for those who are using it for AWX, they'll be happy to be able to install the latest version again, using Redis for the queue. |
See Tower Release Notes: https://docs.ansible.com/ansible-tower/3.7.0/html/release-notes/#
One of the major changes:
So we'll need to update the operator to use Redis instead of Rabbit.
From #39:
The latest versions (3.7.0 / 10(?).0.0) will soon be using Redis instead of RabbitMQ; more info here: ansible/awx#5443
Docker Compose changes: https://github.com/ansible/awx/pull/6034/files#diff-ee215160a0808b30b25efa63ca9ac0f9
Kubernetes role changes:
Though some have run into issues (see ansible/awx#6365) — so for this operator it may be prudent to wait a little.
The text was updated successfully, but these errors were encountered: