bityoga / fabric_as_code

Easily Configurable and Customisable Hyperledger Fabric Cloud Deployment Toolkit
Apache License 2.0
5 stars 1 forks source link

'Can not join the Swarm Cluster' when the playbook tries to join a secondary master to the docker swarm cluster #38

Closed alfonso-orta-agilia closed 4 years ago

alfonso-orta-agilia commented 4 years ago

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"