ContainerSolutions / minimesos

The experimentation and testing tool for Apache Mesos - NO LONGER MAINTANED!
https://www.minimesos.org
Apache License 2.0
428 stars 61 forks source link

Question regarding registrator and consul #519

Closed cotigao closed 7 years ago

cotigao commented 7 years ago

What makes the registrator skip the mesos-agent container for consul entry?

I get the following output (curl 172.17.0.7:8500/v1/catalog/services) {"consul":[],"marathon":[],"mesos-master":[], "zookeeper-2181":[],"zookeeper-2888":[],"zookeeper-3888":[]}

Also, there isn't any entry for weaveworks/scope container (mesos task) that is running? Isn't that app listening on any port?

frankscholten commented 7 years ago

Could be that it is because scope runs on the host network.

cotigao commented 7 years ago

ok. so basically the container needs to be on the same network as the registrator?

frankscholten commented 7 years ago

I had a look at this and I upgraded Consul and changed the port number to 8600. See https://github.com/ContainerSolutions/minimesos/commit/78b2b888ac5221563c552a77bf435a160850ffd1

I don't know why the agent is not registered as a service though.