Custom Host on same host fail to connect

Hi

i have set up Rancher on my local machine and trying to create costom host that will run on the same machine. I have tried to follow the instructions to be able to run on the same host but it can’t connect to Rancher.

sudo iptables -L -n -t nat | grep 8080
MASQUERADE  tcp  --  172.17.0.2           172.17.0.2           tcp dpt:8080
DNAT       tcp  --  0.0.0.0/0            0.0.0.0/0            tcp dpt:8080 to:172.17.0.2:8080


sudo iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
fail2ban-ssh  tcp  --  anywhere             anywhere             multiport dports ssh
ACCEPT     udp  --  anywhere             anywhere             udp dpt:isakmp
ACCEPT     udp  --  anywhere             anywhere             udp dpt:isakmp
ACCEPT     udp  --  anywhere             anywhere             udp dpt:ipsec-nat-t

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         
DOCKER     all  --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere             ctstate RELATED,ESTABLISHED
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere            

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     udp  --  anywhere             anywhere             udp dpt:isakmp
ACCEPT     udp  --  anywhere             anywhere             udp dpt:ipsec-nat-t

Chain DOCKER (1 references)
target     prot opt source               destination         
ACCEPT     tcp  --  anywhere             172.17.0.2           tcp dpt:http-alt

Chain fail2ban-ssh (1 references)
target     prot opt source               destination         
RETURN     all  --  anywhere             anywhere 

The agent command

sudo docker run -d --privileged -e CATTLE_AGENT_IP=192.168.1,100 -v /var/run/docker.sock:/var/run/docker.sock rancher/agent:v0.8.2 http://192.168.1.100:8080/v1/scripts/......

The custom host is generateing this output:

6d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:05:40Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=18 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
2015-10-31 00:05:40,929 ERROR agent [139951540120784] [event.py:111] 6a7b8f71-8bde-4d6d-8b57-65fa34d803b9 : Unknown error 
Traceback (most recent call last):
  File "/var/lib/cattle/pyagent/cattle/agent/event.py", line 94, in _worker_main
    resp = agent.execute(req)
  File "/var/lib/cattle/pyagent/cattle/agent/__init__.py", line 15, in execute
    return self._router.route(req)
  File "/var/lib/cattle/pyagent/cattle/plugins/core/event_router.py", line 13, in route
    resp = handler.execute(req)
  File "/var/lib/cattle/pyagent/cattle/plugins/core/event_handlers.py", line 32, in execute
    type.on_ping(event, resp)
  File "/var/lib/cattle/pyagent/cattle/plugins/docker/compute.py", line 116, in on_ping
    self._add_resources(ping, pong)
  File "/var/lib/cattle/pyagent/cattle/plugins/docker/compute.py", line 249, in _add_resources
    resolved_ip = socket.gethostbyname(DockerConfig.docker_host_ip())
gaierror: [Errno -2] Name or service not known
time="2015-10-31T00:05:41Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=19 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:05:42Z" level="fatal" msg="Reached max retry attempts for getting token." 
time="2015-10-31T00:05:44Z" level="info" msg="Starting event router." 
time="2015-10-31T00:05:44Z" level="info" msg="Watching state directory: /var/lib/rancher/state/containers" 
time="2015-10-31T00:05:44Z" level="info" msg="Processing event: &docker.APIEvents{Status:\"start\", ID:\"aefd57194ed251618aa2995198afed8bf11daae5ee76ddb92b93f2f73c80bd47\", From:\"-simulated-\", Time:0}" 
time="2015-10-31T00:05:44Z" level="info" msg="Processing event: &docker.APIEvents{Status:\"start\", ID:\"110d4003b62d2ec8a237a296c7b362f46b10e3ffd605750f4b731bc64412dbd3\", From:\"-simulated-\", Time:0}" 
time="2015-10-31T00:05:44Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=0 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:05:45Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=1 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:05:46Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=2 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:05:47Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=3 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:05:48Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=4 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:05:49Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=5 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:05:50Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=6 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:05:51Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=7 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:05:52Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=8 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:05:53Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=9 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:05:54Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=10 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:05:55Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=11 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:05:56Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=12 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:05:57Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=13 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:05:58Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=14 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:05:59Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=15 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:00Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=16 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:01Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=17 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:02Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=18 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:03Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=19 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:04Z" level="fatal" msg="Reached max retry attempts for getting token." 
time="2015-10-31T00:06:06Z" level="info" msg="Starting event router." 
time="2015-10-31T00:06:06Z" level="info" msg="Watching state directory: /var/lib/rancher/state/containers" 
time="2015-10-31T00:06:06Z" level="info" msg="Processing event: &docker.APIEvents{Status:\"start\", ID:\"aefd57194ed251618aa2995198afed8bf11daae5ee76ddb92b93f2f73c80bd47\", From:\"-simulated-\", Time:0}" 
time="2015-10-31T00:06:06Z" level="info" msg="Processing event: &docker.APIEvents{Status:\"start\", ID:\"110d4003b62d2ec8a237a296c7b362f46b10e3ffd605750f4b731bc64412dbd3\", From:\"-simulated-\", Time:0}" 
time="2015-10-31T00:06:06Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=0 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:07Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=1 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:08Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=2 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:09Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=3 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:10Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=4 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:11Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=5 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:12Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=6 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:13Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=7 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:14Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=8 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:15Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=9 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:16Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=10 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:17Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=11 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:18Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=12 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:19Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=13 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:20Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=14 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:21Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=15 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:22Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=16 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:23Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=17 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:24Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=18 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:25Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=19 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:26Z" level="fatal" msg="Reached max retry attempts for getting token." 
time="2015-10-31T00:06:28Z" level="info" msg="Starting event router." 
time="2015-10-31T00:06:28Z" level="info" msg="Watching state directory: /var/lib/rancher/state/containers" 
time="2015-10-31T00:06:28Z" level="info" msg="Processing event: &docker.APIEvents{Status:\"start\", ID:\"aefd57194ed251618aa2995198afed8bf11daae5ee76ddb92b93f2f73c80bd47\", From:\"-simulated-\", Time:0}" 
time="2015-10-31T00:06:28Z" level="info" msg="Processing event: &docker.APIEvents{Status:\"start\", ID:\"110d4003b62d2ec8a237a296c7b362f46b10e3ffd605750f4b731bc64412dbd3\", From:\"-simulated-\", Time:0}" 
time="2015-10-31T00:06:28Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=0 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:29Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=1 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:30Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=2 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:31Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=3 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:32Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=4 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:33Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=5 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:34Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=6 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:35Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=7 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:36Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=8 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:37Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=9 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:38Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=10 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:39Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=11 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:40Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=12 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:41Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=13 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:42Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=14 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:43Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=15 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:44Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=16 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:45Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=17 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:46Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=18 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:47Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=19 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:48Z" level="fatal" msg="Reached max retry attempts for getting token." 
time="2015-10-31T00:06:50Z" level="info" msg="Starting event router." 
time="2015-10-31T00:06:50Z" level="info" msg="Watching state directory: /var/lib/rancher/state/containers" 
time="2015-10-31T00:06:50Z" level="info" msg="Processing event: &docker.APIEvents{Status:\"start\", ID:\"aefd57194ed251618aa2995198afed8bf11daae5ee76ddb92b93f2f73c80bd47\", From:\"-simulated-\", Time:0}" 
time="2015-10-31T00:06:50Z" level="info" msg="Processing event: &docker.APIEvents{Status:\"start\", ID:\"110d4003b62d2ec8a237a296c7b362f46b10e3ffd605750f4b731bc64412dbd3\", From:\"-simulated-\", Time:0}" 
time="2015-10-31T00:06:50Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=0 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:51Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=1 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:52Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=2 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:53Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=3 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:54Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=4 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:55Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=5 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:56Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=6 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:57Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=7 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:58Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=8 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:06:59Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=9 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:00Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=10 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:01Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=11 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:02Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=12 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:03Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=13 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:04Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=14 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:05Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=15 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:06Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=16 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:07Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=17 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:08Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=18 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:09Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=19 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:10Z" level="fatal" msg="Reached max retry attempts for getting token." 
time="2015-10-31T00:07:12Z" level="info" msg="Starting event router." 
time="2015-10-31T00:07:12Z" level="info" msg="Watching state directory: /var/lib/rancher/state/containers" 
time="2015-10-31T00:07:12Z" level="info" msg="Processing event: &docker.APIEvents{Status:\"start\", ID:\"aefd57194ed251618aa2995198afed8bf11daae5ee76ddb92b93f2f73c80bd47\", From:\"-simulated-\", Time:0}" 
time="2015-10-31T00:07:12Z" level="info" msg="Processing event: &docker.APIEvents{Status:\"start\", ID:\"110d4003b62d2ec8a237a296c7b362f46b10e3ffd605750f4b731bc64412dbd3\", From:\"-simulated-\", Time:0}" 
time="2015-10-31T00:07:12Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=0 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:13Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=1 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:14Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=2 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:15Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=3 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:16Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=4 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:17Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=5 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:18Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=6 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:19Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=7 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:20Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=8 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:21Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=9 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:22Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=10 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:23Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=11 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:24Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=12 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:25Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=13 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:26Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=14 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:27Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=15 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:28Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=16 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:29Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=17 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:30Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=18 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:31Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=19 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:32Z" level="fatal" msg="Reached max retry attempts for getting token." 
time="2015-10-31T00:07:34Z" level="info" msg="Starting event router." 
time="2015-10-31T00:07:34Z" level="info" msg="Watching state directory: /var/lib/rancher/state/containers" 
time="2015-10-31T00:07:34Z" level="info" msg="Processing event: &docker.APIEvents{Status:\"start\", ID:\"aefd57194ed251618aa2995198afed8bf11daae5ee76ddb92b93f2f73c80bd47\", From:\"-simulated-\", Time:0}" 
time="2015-10-31T00:07:34Z" level="info" msg="Processing event: &docker.APIEvents{Status:\"start\", ID:\"110d4003b62d2ec8a237a296c7b362f46b10e3ffd605750f4b731bc64412dbd3\", From:\"-simulated-\", Time:0}" 
time="2015-10-31T00:07:34Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=0 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:35Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=1 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:36Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=2 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:37Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=3 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:38Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=4 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:39Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=5 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:40Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=6 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
2015-10-31 00:07:41,039 ERROR agent [139951540120784] [event.py:111] e578f758-abcf-44f7-ad44-5a34941a97ef : Unknown error 
Traceback (most recent call last):
  File "/var/lib/cattle/pyagent/cattle/agent/event.py", line 94, in _worker_main
    resp = agent.execute(req)
  File "/var/lib/cattle/pyagent/cattle/agent/__init__.py", line 15, in execute
    return self._router.route(req)
  File "/var/lib/cattle/pyagent/cattle/plugins/core/event_router.py", line 13, in route
    resp = handler.execute(req)
  File "/var/lib/cattle/pyagent/cattle/plugins/core/event_handlers.py", line 32, in execute
    type.on_ping(event, resp)
  File "/var/lib/cattle/pyagent/cattle/plugins/docker/compute.py", line 116, in on_ping
    self._add_resources(ping, pong)
  File "/var/lib/cattle/pyagent/cattle/plugins/docker/compute.py", line 249, in _add_resources
    resolved_ip = socket.gethostbyname(DockerConfig.docker_host_ip())
gaierror: [Errno -2] Name or service not known
time="2015-10-31T00:07:41Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=7 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:42Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=8 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:43Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=9 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:44Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=10 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:45Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=11 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:46Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=12 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:47Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=13 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:48Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=14 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:49Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=15 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:50Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=16 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:51Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=17 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:52Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=18 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5" 
time="2015-10-31T00:07:53Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=19 reportedUuid="546d5472-3567-47b6-a901-0aea45eabfb5"

I found it. A comma had fund it’s way in to the host ip address. Sorry for the post.

CATTLE_AGENT_IP=192.168.1,100
CATTLE_AGENT_IP=192.168.1.100

No problem. Glad you figured it out.