bityoga/fabric_as_code

'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

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:

  1. Start from scratch
  2. Execute playbooks from mysome_glusterfs repository
  3. 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

Screenshots
Error:
image_2020_10_01T09_48_35_524Z

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"