Hi … trying to setup amazon aws machines for rancher.
Ranger api is available from aws vps. see connections from agent machines to ranger api port.
Last rancher logs are:
time=“2016-04-07T11:33:02Z” level=info msg=“Activating Machine” eventId=3159b405-c088-4782-85b2-ec06bcfd6998 resourceId=1ph103
time=“2016-04-07T11:33:03Z” level=info msg=“Pulling rancher/agent:v0.11.0 image.“
time=“2016-04-07T11:33:10Z” level=info msg=“stdout: Detecting the provisioner…” resourceId: =1ph99
time=“2016-04-07T11:33:10Z” level=info msg=“stdout: Provisioning with rancheros…” resourceId: =1ph99
time=“2016-04-07T11:33:12Z” level=info msg=“stdout: Copying certs to the local machine directory…” resourceId: =1ph99
time=“2016-04-07T11:33:13Z” level=info msg=“stdout: Copying certs to the remote machine…” resourceId: =1ph99
time=“2016-04-07T11:33:14Z” level=info msg=“stdout: Setting Docker configuration on the remote daemon…” resourceId: =1ph99
time=“2016-04-07T11:33:15Z” level=info msg=“stdout: Checking connection to Docker…” resourceId: =1ph99
time=“2016-04-07T11:33:15Z” level=info msg=“stdout: Docker is up and running!” resourceId: =1ph99
time=“2016-04-07T11:33:15Z” level=info msg=“stdout: To see how to connect your Docker Client to the Docker Engine running on this virtual machine, run: docker-machine env ec2-host-push1” resourceId: =1ph99
time=“2016-04-07T11:33:16Z” level=info msg=“Machine Created” machineExternalId=ae8a6225-ad07-40e6-91c5-5ea3883d2dd6 resourceId=1ph99
time=“2016-04-07T11:33:16Z” level=info msg=“Creating and uploading extracted machine config” resourceId=1ph99
time=“2016-04-07T11:33:16Z” level=info msg=“Machine config file created and encoded.” destFile=”/var/lib/cattle/machine/ae8a6225-ad07-40e6-91c5-5ea3883d2dd6/ec2-host-push1.tar.gz” resourceId=1ph99
time=“2016-04-07T11:33:16Z” level=info msg=“Activating Machine” eventId=16b75e04-1c87-4838-8fd4-b052449b1db0 resourceId=1ph99
time=“2016-04-07T11:33:17Z” level=info msg=“Pulling rancher/agent:v0.11.0 image.“
time=“2016-04-07T11:33:59Z” level=info msg=“Container created for machine” containerId=660e03bc3df6b5627b6e30a9e54e346403f47b9fe031da5389bef98575d10530 machineId=1ph103 resourceId=1ph103
time=“2016-04-07T11:34:04Z” level=info msg=“Rancher-agent for machine started” containerId=660e03bc3df6b5627b6e30a9e54e346403f47b9fe031da5389bef98575d10530 machineExternalId=94092934-f653-4c57-834b-5b50b8f0d09e resourceId=1ph103
time=“2016-04-07T11:34:04Z” level=info msg=“Creating and uploading extracted machine config” resourceId=1ph103
time=“2016-04-07T11:34:04Z” level=info msg=“Machine config file created and encoded.” destFile=”/var/lib/cattle/machine/94092934-f653-4c57-834b-5b50b8f0d09e/ec2-host-push2.tar.gz” resourceId=1ph103
time=“2016-04-07T11:34:10Z” level=info msg=“Container created for machine” containerId=b83a7be4fc8a5c048dd84e37020c2b6ee1b55aff39c9806d7260217d9a3ffd11 machineId=1ph99 resourceId=1ph99
time=“2016-04-07T11:34:14Z” level=info msg=“Rancher-agent for machine started” containerId=b83a7be4fc8a5c048dd84e37020c2b6ee1b55aff39c9806d7260217d9a3ffd11 machineExternalId=ae8a6225-ad07-40e6-91c5-5ea3883d2dd6 resourceId=1ph99
time=“2016-04-07T11:34:14Z” level=info msg=“Creating and uploading extracted machine config” resourceId=1ph99
time=“2016-04-07T11:34:14Z” level=info msg=“Machine config file created and encoded.” destFile="/var/lib/cattle/machine/ae8a6225-ad07-40e6-91c5-5ea3883d2dd6/ec2-host-push1.tar.gz" resourceId=1ph99
2016-04-07 11:34:42,169 ERROR [:] [] [] [] [ecutorService-9] [i.c.p.a.s.ping.impl.PingMonitorImpl ] Failed to get ping from agent [3] count [3]
2016-04-07 11:34:47,170 ERROR [:] [] [] [] [ecutorService-8] [i.c.p.a.s.ping.impl.PingMonitorImpl ] Failed to get ping from agent [3] count [4]
2016-04-07 11:34:52,171 ERROR [:] [] [] [] [cutorService-10] [i.c.p.a.s.ping.impl.PingMonitorImpl ] Failed to get ping from agent [3] count [5]
2016-04-07 11:34:52,171 ERROR [:] [] [] [] [cutorService-10] [i.c.p.a.s.ping.impl.PingMonitorImpl ] Failed to get ping from agent [7] count [3]
2016-04-07 11:34:57,173 ERROR [:] [] [] [] [ecutorService-2] [i.c.p.a.s.ping.impl.PingMonitorImpl ] Failed to get ping from agent [7] count [4]
2016-04-07 11:34:57,173 ERROR [:] [] [] [] [ecutorService-1] [i.c.p.a.s.ping.impl.PingMonitorImpl ] Failed to get ping from agent [3] count [6]
2016-04-07 11:34:57,177 ERROR [:] [] [] [] [ecutorService-1] [i.c.p.a.s.ping.impl.PingMonitorImpl ] Scheduling reconnect for [3]
2016-04-07 11:35:02,173 ERROR [:] [] [] [] [ecutorService-8] [i.c.p.a.s.ping.impl.PingMonitorImpl ] Failed to get ping from agent [7] count [5]
2016-04-07 11:35:02,173 ERROR [:] [] [] [] [ecutorService-9] [i.c.p.a.s.ping.impl.PingMonitorImpl ] Failed to get ping from agent [3] count [7]
2016-04-07 11:35:07,175 ERROR [:] [] [] [] [ecutorService-8] [i.c.p.a.s.ping.impl.PingMonitorImpl ] Failed to get ping from agent [3] count [8]
2016-04-07 11:35:07,175 ERROR [:] [] [] [] [ecutorService-9] [i.c.p.a.s.ping.impl.PingMonitorImpl ] Failed to get ping from agent [7] count [6]
2016-04-07 11:35:07,179 ERROR [:] [] [] [] [ecutorService-9] [i.c.p.a.s.ping.impl.PingMonitorImpl ] Scheduling reconnect for [7]
2016-04-07 11:35:13,176 ERROR [:] [] [] [] [ecutorService-7] [i.c.p.a.s.ping.impl.PingMonitorImpl ] Failed to get ping from agent [3] count [9]
2016-04-07 11:35:13,177 ERROR [:] [] [] [] [ecutorService-1] [i.c.p.a.s.ping.impl.PingMonitorImpl ] Failed to get ping from agent [7] count [7]
2016-04-07 11:35:18,176 ERROR [:] [] [] [] [ecutorService-5] [i.c.p.a.s.ping.impl.PingMonitorImpl ] Failed to get ping from agent [7] count [8]
2016-04-07 11:35:23,177 ERROR [:] [] [] [] [ecutorService-3] [i.c.p.a.s.ping.impl.PingMonitorImpl ] Failed to get ping from agent [7] count [9]
curl from another host in vpc to rancher show:
curl https://rancher.xx.de
{“type”:“collection”,“resourceType”:“apiVersion”,“links”:{“self”:“https://rancher.xx.de/",“latest”:“https://rancher.xx.de/v1”},“createTypes”:{},“actions”:{},“data”:[{“id”:“v1”,“type”:“apiVersion”,“links”:{“self”:“https://rancher.xx.de/v1”},“actions”:{}}],“sortLinks”:{},“pagination”:null,“sort”:null,“filters”:{},"createDefaults”:{}}[ec2-user@ip-20-0-2-10 ~]
UI shows “Almost there… Waiting for agent connection”.
Could not get machine config for fetching the ssh key, as button “download machine config” does not work…
which protocol/port is used ? any advise to find errors?