'Can not join the Swarm Cluster' when the playbook tries to join a secondary master to the docker swarm cluster
Closed this issue · 0 comments
alfonso-orta-agilia commented
Describe the bug
The 014.spawn_swarm.yml playbook shows the error 'Can not join the Swarm Cluster' when it tries to join the secondary master to the docker swarm cluster.
To Reproduce
Steps to reproduce the behavior:
- Start from scratch
- Execute playbooks from mysome_glusterfs repository
- Execute playbooks:
3.1. 011.initialize_hosts.yml
3.2. 012.prepare_docker_images.yml
3.3. 013.mount_fs.yml
3.4. 014.spawn_swarm.yml
Expected behavior
It should spawn the docker swarm cluster
Additional context
Host configuration:
[all:children]
swarm_manager_prime
swarm_managers
swarm_workers
[swarm_manager_prime]
h1 ansible_host=xxx.xxx.xxx.1 ansible_python_interpreter="/usr/bin/python3"
[swarm_managers]
h1 ansible_host=xxx.xxx.xxx.1 ansible_python_interpreter="/usr/bin/python3"
h2 ansible_host=xxx.xxx.xxx.2 ansible_python_interpreter="/usr/bin/python3"
[swarm_workers]
h3 ansible_host=xxx.xxx.xxx.3 ansible_python_interpreter="/usr/bin/python3"
h4 ansible_host=xxx.xxx.xxx.4 ansible_python_interpreter="/usr/bin/python3"