ContainerSolutions / minimesos

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

Add --no-hostname_lookup property to Master image #467

Closed frankscholten closed 8 years ago

frankscholten commented 8 years ago

By default Mesos resolved hostnames but in minimesos this results in container IDs being used as hostnames. To disable this let's make --no-hostname_lookup configurable.

frankscholten commented 8 years ago

Adding --no-hostname_lookup on the Master container does not fix the problem. The framework tab keeps displaying the container ID instead of the IP address.

Asked a question on the DC/OS Slack in #general

frankscholten commented 8 years ago

It does work! For some reason this change did not get propagated when I tested it yesterday.

See fix in https://github.com/ContainerSolutions/minimesos-docker/commit/b063151737161131e42ac00a3be3d78b1a4d2419

frank@franktop:~$ curl -v http://172.17.0.4:5050/redirect
*   Trying 172.17.0.4...
* Connected to 172.17.0.4 (172.17.0.4) port 5050 (#0)
> GET /redirect HTTP/1.1
> Host: 172.17.0.4:5050
> User-Agent: curl/7.46.0
> Accept: */*
>
< HTTP/1.1 307 Temporary Redirect
< Date: Wed, 06 Jul 2016 12:07:20 GMT
< Location: //172.17.0.4:5050
< Content-Length: 0
<
* Connection #0 to host 172.17.0.4 left intact
frank@franktop:~$ cd src/minimesos-docker