I am setting up a Mesos/Marathon cluster on EC2 amazon with one master node and two agents. The installation is successful and when looking at :mesos-port the agents are listed correctly.
The Host is registered by the private DNS (ip-17*---.ec2.internal).
When I try to launch a docker image (tutum/hello-world) through the Marathon webui the deployment fails.
In the Mesos UI the completed tasks list will show the failed deployments attempts. Under the Sandbox link it states:
Failed to connect to agent '12136c28-93e7-4642-a5b6-c5e9a55eedd1-S0' on 'ip-17*-**-*-***.ec2.internal:5051'.
Potential reasons:
The agent's hostname, 'ip-17*-**-*-***.ec2.internal', is not accessible from your network
The agent's port, '5051', is not accessible from your network The agent timed out or went offline
I opened the port range completely in the safetygroup and I can ping from the master to the agents.
I added the private ip into the /etc/hosts file to be safe but that also does nothing.
Any ideas?