rancher: Cannot Add new host

Everything was working until today.

Rancher versions: rancher/server: stable rancher/agent: 1.2.9

Infrastructure Stack versions: healthcheck: 0.0.3 ipsec: rancher/net:v0.13.7 network-services: rancher/network-manager:v0.7.19 scheduler:0.8.3 kubernetes (if applicable):

Docker version: (docker version,docker info preferred) Client: Version: 17.12.0-ce API version: 1.35 Go version: go1.9.2 Git commit: c97c6d6 Built: Wed Dec 27 20:10:14 2017 OS/Arch: linux/amd64

Server: Engine: Version: 17.12.0-ce API version: 1.35 (minimum version 1.12) Go version: go1.9.2 Git commit: c97c6d6 Built: Wed Dec 27 20:12:46 2017 OS/Arch: linux/amd64 Experimental: false Operating system and kernel: (cat /etc/os-release, uname -r preferred) 3.10.0-693.17.1.el7.x86_64 Type/provider of hosts: (VirtualBox/Bare-metal/AWS/GCE/DO)

Setup details: (single node rancher vs. HA rancher, internal DB vs. external DB) single node Environment Template: (Cattle/Kubernetes/Swarm/Mesos) Cattle Steps to Reproduce: docker run --rm --privileged -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/rancher:/var/lib/rancher rancher/agent:v1.2.9 http://ip:8080/v1/scripts/Results: INFO: Running Agent Registration Process, CATTLE_URL=http://ip:8080/v1 INFO: Attempting to connect to: http://ip:8080/v1 ERROR: http://ip:8080/v1 is not accessible (Failed to connect to ip port 8080: No route to host)

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 17 (6 by maintainers)

Most upvoted comments

Communication between host and container bridge network was impossible. As it worked before, the assumption is some change in iptables.

We verified it working adding a rule to allow communication from docker0:

iptables -I INPUT 4 -i docker0 -j ACCEPT

Usually it’s a local firewall blocking access, is firewalld running on the machine? systemctl status firewalld ?