Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add IPSources priority to Documentation #474

Closed
juwi opened this issue Sep 26, 2016 · 9 comments
Closed

Add IPSources priority to Documentation #474

juwi opened this issue Sep 26, 2016 · 9 comments

Comments

@juwi
Copy link

juwi commented Sep 26, 2016

Hi,

I just tried to resolve an issue with mesos-dns resolving the host IP instead of overlay-network IP for about two days. In the end I found the solution here: https://github.com/projectcalico/calico-containers/blob/master/docs/mesos/DCOS.md
So basically I switched the order in IPSources from ["host" "netinfo"] to ["netinfo" "host"].
Would be nice if this was documented more prominently (if it is at all in the mesos-dns doc) so others won't have as much trouble finding their problem.

Regards

@sargun
Copy link
Contributor

sargun commented Sep 26, 2016

Just curious, are you using DC/OS, or Mesos directly?

@juwi
Copy link
Author

juwi commented Sep 27, 2016

Its a DCOS cluster that was updated from1.7 to 1.8.

@sargun
Copy link
Contributor

sargun commented Sep 27, 2016

Can you use this: https://dcos.io/docs/1.8/administration/overlay-networks/

  • containerip: taskname.marathon.containerip.dcos.thisdcos.directory
  • agentip: taskname.marathon.agentip.dcos.thisdcos.directory

@juwi
Copy link
Author

juwi commented Sep 27, 2016

The way it is documented there, without .thisdcos.directory domain I never got an answer back. Using it the way you just described I at least get an authority section that looks right, however still no answer.
Assuming overlay-testcontainer is the container I want to resolve I did the following:
dig overlay-testcontainer.marathon.containerip.dcos.thisdcos.directory

; <<>> DiG 9.9.4-RedHat-9.9.4-29.el7_2.3 <<>> overlay-testcontainer.marathon.containerip.dcos.thisdcos.directory
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 65147
;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
;; WARNING: recursion requested but not available

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;overlay-testcontainer.marathon.containerip.dcos.thisdcos.directory. IN A

;; AUTHORITY SECTION:
dcos.thisdcos.directory. 1 IN SOA ns.spartan. support.mesosphere.com. 1 60 180 86400 1

;; Query time: 11 msec
;; SERVER: 198.51.100.1#53(198.51.100.1)
;; WHEN: Tue Sep 27 08:16:36 CEST 2016
;; MSG SIZE rcvd: 170

Resolving the same container on mesos-dns using .marathon.mesos domain now works like a charm, though.

@sargun
Copy link
Contributor

sargun commented Sep 27, 2016

I've created a ticket to fix the doc.

Does overlay-testcontainer.marathon.agentip.dcos.thisdcos.directory come back?

@juwi
Copy link
Author

juwi commented Sep 27, 2016

No, neither of the two do.
When I look through the journals I see lots of errors in the minuteman log though:
Sep 27 10:20:51 purplesubmarine2.local minuteman-env[12436]: 10:20:51.025 [error] Failed to parse task: {function_clause,[{mesos_state_client,protocol,[<<"client">>],[{file,"/pkg/src/minuteman/_build/default/lib/mesos_state/src/mesos_state_client.erl"},{line,439}]},{mesos_state_client,discovery_ports,2,[{file,"/pkg/src/minuteman/_build/default/lib/mesos_state/src/mesos_state_client.erl"},{line,423}]},{mesos_state_client,discovery,1,[{file,"/pkg/src/minuteman/_build/default/lib/mesos_state/src/mesos_state_client.erl"},{line,411}]},{mesos_state_client,task,3,[{file,"/pkg/src/minuteman/_build/default/lib/mesos_state/src/mesos_state_client.erl"},{line,233}]},{mesos_state_client,tasks,5,[{file,"/pkg/src/minuteman/_build/default/lib/mesos_state/src/mesos_state_client.erl"},{line,211}]},{mesos_state_client,executors,5,[{file,"/pkg/src/minuteman/_build/default/lib/mesos_state/src/mesos_state_client.erl"},{line,191}]},{mesos_state_client,frameworks,4,[{file,"/pkg/src/minuteman/_build/default/lib/mesos_state/src/mesos_state_client.erl"},{line,181}]},{mesos_state_client,tasks,1,[{file,"/pkg/src/minuteman/_build/default/lib/mesos_state/src/mesos_state_client.erl"},{line,169}]}]}
So maybe those are related. Doesn't seem to be a mesos-dns issue anymore at this point, though.

@sargun
Copy link
Contributor

sargun commented Sep 27, 2016

@juwi Are you running 1.8.4?

@juwi
Copy link
Author

juwi commented Sep 27, 2016

@sargun : Indeed, I am

@jdef
Copy link
Contributor

jdef commented Jul 12, 2017

#477

@jdef jdef closed this as completed Jul 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants