mhausenblas / m-shop

Marathon/Docker deployment of a Web application incl. analytics using the ELK stack
https://mesosphere.com/blog/2015/06/21/web-application-analytics-using-docker-and-marathon/
Apache License 2.0
15 stars 7 forks source link

Mesos-DNS docker doesn't work with mesos 0.26.0 #5

Open afraisse opened 8 years ago

afraisse commented 8 years ago

Even with the vm IP in /etc/resolv.conf, mesos-dns fails :

vagrant@mesos:/vagrant/m-shop$ dig _webdis-site-m-shop._tcp.marathon.mesos SRV

; <<>> DiG 9.9.5-3ubuntu0.4-Ubuntu <<>> _webdis-site-m-shop._tcp.marathon.mesos SRV ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 61720 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION: ;_webdis-site-m-shop._tcp.marathon.mesos. IN SRV

;; Query time: 0 msec ;; SERVER: 10.141.141.10#53(10.141.141.10) ;; WHEN: Tue Apr 12 17:07:35 UTC 2016 ;; MSG SIZE rcvd: 57

afraisse commented 8 years ago

Note : I tried installing mesos-dns and running it as a shell command instead. This lays an other issue : mesos-dns returns 127.0.1.1 instead of the public ip address, causing the web-app not being able to reach the database.

See dig output :
;; ADDITIONAL SECTION: webdis-site-m-shop-etydz-s0.marathon.slave.mesos. 60 IN A 127.0.1.1

afraisse commented 8 years ago

Actually this doesn't work with mesos 0.24.1 either.