You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If an two machines in the stack do not have port 2377 open to each other (check if this needs to be both manager and worker) then docker swarm cannot connect these two machines.
Move "Join as a worker" and "Label nodes" ansible tasks to swarm.yml
In the screenshot above, there was a task skipped because of swarm was inactive in the docker_info variable. As the variable has been evaluated quite early in the playbooks, verify that it doesn't need to be reevaluated after swarm has been setup. This might be a bug
The text was updated successfully, but these errors were encountered:
Hi @rikukissa , @Zangetsu101, I would like to discuss some facts regarding this issue, before I start work on this :
It doesn't need to have port 2377 open in both worker and manager, it should keep open only in manager node
Regarding the first task of this issue: we are initializing the swarm mode in swarm.yml , before initialize the swarm , we ensuring that the port 2377 is open(through ufw). I am not sure about what should i verify here since the workers are still not joined to the cluster. please help me about that
Regarding the second task, I can't move the join as a worker task to swarm.yaml . Because that particular task should be running from worker node. and sarm.yml is running from manager node.
@alsmk Ok, it might be that when this ticket was created, based on the screenshot, it was actually so that the Swarm mode was not initialised for whatever reason, which led to the worker not joining the swarm, that then again caused the labeling of the node to fail.
Let's make this only a cleanup task for you to move these instructions to swarm.yml. You can do this by moving the whole - hosts: ... blocks to swarm.yml. Look at backups.yml as a reference.
Thanks for investigating. I updated the description and only kept the two last items.
Describe the improvement
If an two machines in the stack do not have port
2377
open to each other (check if this needs to be both manager and worker) then docker swarm cannot connect these two machines.Tasks
swarm.yml
The text was updated successfully, but these errors were encountered: