-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Task container unreachable from the web container #7404
Comments
I'm not totally sure what's up here @zigaSRC, but I'm not able to reproduce this in my vanilla 12.0.0 and 13.0.0 AWX local Docker installs. These containers definitely must be able to reach each other to broadcast stdout messages. Can you share your inventory? |
Sadly I can't share our inventories but if there's anything you would like me to check just let me know. Besides I don't think it's related to that, since it's not tied to running any playbook or inventory sync, but you probably know best. BTW I upgraded to 13.0.0 since you mentioned it, but that didn't help the issue:
Edit: We could talk on IRC to see if we can figure something out. Just let me know where I can reach you. |
Have you customized your container names or hostnames in some way? With a vanilla 13.0.0 install, I'm unable to reproduce this. Where is ~/dev/awx/installer docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
55e39345ced2 ansible/awx:13.0.0 "tini -- /usr/bin/la…" 4 minutes ago Up 4 minutes 8052/tcp awx_task
8eea8e20de10 ansible/awx:13.0.0 "tini -- /bin/sh -c …" 4 minutes ago Up 4 minutes 0.0.0.0:80->8052/tcp awx_web
3faf2fe40ff6 postgres:10 "docker-entrypoint.s…" 4 minutes ago Up 4 minutes 5432/tcp awx_postgres
429c8448aa12 redis "docker-entrypoint.s…" 4 minutes ago Up 4 minutes 6379/tcp awx_redis
~/dev/awx/installer docker exec -it 55e39345ced2 hostname
awx
~/dev/awx/installer docker exec -it 8eea8e20de10 hostname
awxweb ~/dev/awx/installer docker exec -it 55e39345ced2 bash
bash-4.4# awx-manage dbshell
now exiting InteractiveConsole...
bash-4.4# awx-manage dbshell
psql (10.6, server 10.13 (Debian 10.13-1.pgdg90+1))
Type "help" for help.
awx=# SELECT hostname FROM main_instance;
hostname
----------
awx
(1 row) |
Yes, but just through the install playbook or rather inventory. It contains the following changes to hostnames:
As such the awx_web hostname is set to ansible. The task container has it's default awx hostname. I have not changed the container names in any way and have not touched anything outside the install inventory file (except after the errors for debugging and trying to solve the connectivity problems).
I have no idea where the awxtask is comming from... |
Can you share this?
|
Sorry for the late response:
|
I'm not really sure why you've got that second instance in there called
|
Can't really do that since it would violate foreign key restraints in the database. Using For now: Thanks for the help! |
@zigaSRC yep, Let me know if you spot any other issues. |
The problems we were having are still there so that wasn't the root cause sadly. I created another issue since it apparently doesn't relate to the connectivity issue discussed here. I will just include the link here in case it has any relevance. |
Hey @zigaSRC I get those pretty regularly, too, and I'm not sure what causes them (@mabashian, @jakemcdermott or @marshmalien might know?) That said, I think they're unrelated to whatever issues you're still having. |
Hi, I have just updated our Ansible AWX instance from 9.1.1 to 13.0.0 and I am also getting the warning message that the task container cannot be reached by the web container.
I also renamed the containers according to the possibilities in the inventory of the installation tool. Contrary to the warning message, however, running the Ansible Playbooks etc. works for me. The strange thing for me is that the web container tries to contact the task container on port 443 with SSL off. Shouldn't he rather try the request on port 80? Maybe this is where the error lies. In my opinion the ticket should be opened again, because the logs are filled with this messages. |
Did you check that a container with that name exists? It's most likely just a remnant from before the update/s. Check the date when it was last modified in the DB and delete it if it's before the update (follow the steps we went through to resolve it). |
Hi @zigaSRC, thanks for your response. I never changed the names of the docker containers during the last upgrades. The name of the web container is I also checked via
When I execute the command
After I executed the command It is interesting that Ansible AWX executes the playbooks under the hostname Thank you very much. |
Now, I have also executed the command There is already a ticket #3959 #7100 for this error message and it seems that the name of the task container is hard coded in some configuration files. As it looks like it is not a good idea to rename the container names, although the installation routine allows it. How should we proceed from here? |
So, now I have renamed the Docker hostname (not the Docker service name) from the task container to For me the problem is solved, but in my opinion the configuration option should be removed in the installation routine or fixed. |
ISSUE TYPE
SUMMARY
After an upgrade from 11.2.0 to 12.0.0 the awx_web container can no longer reach the awx_task container. The consequence is that there are plenty of errors in the UI and some things just don't work.
ENVIRONMENT
STEPS TO REPRODUCE
Upgrade from 11.2.0 to 12.0.0 by running the newer install playbook with appropriate inventory.
EXPECTED RESULTS
The upgrade to be successful and that the containers are able to talk to each other.
ACTUAL RESULTS
UI not fully working with lots of GET: -1 errors.
Errors in awx_web logs:
ADDITIONAL INFORMATION
Manually adding an entry in the /etc/hosts file for the awxtask container results in the following error:
The task container is reachable via awx_task since that's the actual name of the container, but that's besides the point since renaming it to awxtask won't solve the problem as seen above.
The text was updated successfully, but these errors were encountered: