Mirantis / launchpad

Other
27 stars 45 forks source link

FATA failed to initialize swarm: Error response from daemon: advertise address must be a non-zero IP address or network interface (with optional port number) #74

Open tuvshinot opened 3 years ago

tuvshinot commented 3 years ago
apiVersion: launchpad.mirantis.com/mke/v1.3
kind: mke
metadata:
  name: my-mke
spec:
  mke:
    adminUsername: admin
    adminPassword: passw0rd!
    installFlags:
      - --default-node-orchestrator=kubernetes
      - --pod-cidr 10.0.0.0/16
  hosts:
  - role: manager
    ssh:
      address: 192.168.110.100
      keyPath: ~/.ssh/id_rsa
      user: theuser
    privateInterface: enp0s3
  - role: worker
    ssh:
      address: 192.168.110.101
      keyPath: ~/.ssh/id_rsa
      user: theuser
    privateInterface: enp0s3

Failing to initialize swarm. no way to set advertise address when initializing swarm. NOTE : above spec from mirantis doc and changed values for my nodes.

kke commented 3 years ago

There's spec.mke.swarmInstallFlags and swarmUpdateCommands, maybe they can be used for this?

oyi3s commented 3 years ago

@tuvshinot , I am facing the same error. Were you able to resolve it?

djembiz commented 10 months ago

Checking the logs, i was able to identify the following: executing docker swarm init --advertise-addr=2600:6c58:6400:347f:a00:27ff:fe34:a3d4:2377" Solution: Disable IPv6 sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1 sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1

Resolved the issue