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

When a service is available in multiple clusters, DNS apparently only returns one #235

Closed
skitt opened this issue Aug 4, 2020 · 7 comments
Assignees
Labels
QE Labels related to QE handling items

Comments

@skitt
Copy link
Member

skitt commented Aug 4, 2020

In a setup with two clusters, both exporting the same service, the imports are synchronised:

NAMESPACE               NAME                                              AGE
submariner-k8s-broker   nginx-default-gn2                                 4d16h
submariner-k8s-broker   submariner-test-app-quattro-submariner-test-gn2   15m
submariner-k8s-broker   submariner-test-app-quattro-submariner-test-gn3   35m
submariner-operator     nginx-default-gn2                                 4d16h
submariner-operator     submariner-test-app-quattro-submariner-test-gn2   15m
submariner-operator     submariner-test-app-quattro-submariner-test-gn3   35m

(on the broker cluster) but dig only ever returns one of the IP addresses — the first one to be exported in this case.

@sridhargaddam
Copy link
Member

@skitt @mangelajo @nyechiel This should be fixed via the following right - #114

@skitt
Copy link
Member Author

skitt commented Aug 4, 2020

@skitt @mangelajo @nyechiel This should be fixed via the following right - #114

Yes, it should!

@vthapar vthapar added the QE Labels related to QE handling items label Aug 18, 2020
@vthapar vthapar added this to the 0.6.0 milestone Aug 18, 2020
@nyechiel
Copy link
Member

nyechiel commented Sep 6, 2020

#114 is merged, ready for testing

@manosnoam manosnoam modified the milestones: 0.6.0, 0.7.0 Sep 7, 2020
@manosnoam
Copy link

@skitt Can you tell me how to reproduce ?

@tpantelis maybe we should add this test to E2E ?

@manosnoam manosnoam self-assigned this Sep 7, 2020
@skitt
Copy link
Member Author

skitt commented Sep 7, 2020

@manosnoam make a service available in two clusters, and check that looking it up in DNS returns both IP addresses.

@danibachar
Copy link
Contributor

@manosnoam Just to clarify - Each DNS query (i.e dig) should return a different IP (i.e each time a different clusterIP).
BTW - @skitt @vthapar - How is the cache working here? Does CoreDNS offer a cache for DNS queries? Is it possible that the CoreDNS will use some caching, will not pass the request to Lighthouse as it found an older response, and will return the same IP as the last request?

@manosnoam
Copy link

Opened test request:
#340

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
QE Labels related to QE handling items
Projects
None yet
Development

No branches or pull requests

6 participants