Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Apr 14, 2021 · 3 comments

Comments

@tuvshinot
Copy link

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
Copy link
Contributor

kke commented May 12, 2021

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

@oyi3s
Copy link

oyi3s commented Jul 20, 2021

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

@djembiz
Copy link

djembiz commented Sep 4, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants