DNS service lookup failed for first 5 mins in container
When a container started it failed to resolve the service name for about 3 times in first 5 minutes. It succeeded in the fourth attempt.
Version
oc v1.4.1 kubernetes v1.4.0+776c994 features: Basic-Auth GSSAPI Kerberos SPNEGO openshift v1.4.1 kubernetes v1.4.0+776c994
Steps To Reproduce
- Occurred only once. Unable to reproduce
Additional Information
zookeeper is the service name:
May 25th 2017, 11:29:14.552 maas-consumer-mssql Caused by: java.net.UnknownHostException: zookeeper: Name does not resolve May 25th 2017, 11:26:51.673 maas-consumer-mssql Caused by: java.net.UnknownHostException: zookeeper: Name does not resolve May 25th 2017, 11:25:56.361 maas-consumer-mssql Caused by: java.net.UnknownHostException: zookeeper: Name does not resolve
Fourth time it resolved and connected successfully.
/etc/resolv.conf contents: node ip only
At the same time zookeeper was running. Since its unable to resolve the hostname, Service is up or down doesnt matter.
The networking team owns the networking to get to the DNS service... but not the resolver. Passing over to the Kube team.
This issue occurs only in one Alpine based java container. Today again that issue surfaced. But after two to three restarts, Pods settled down
@derekwaynecarr @knobunc Can you provide the trouble shooting steps or pointers regarding this issue
I think that the initial request is taking that long to timeout, and then getting marked as offline by dnsmasq and then that server is no longer queried. Can we get the /etc/resolv.conf from inside the pod, and then we can go from there? A tcpdump of the dns traffic from inside the pod would give some credence to the theory too.
@jagadeeshops - is this a single node cluster? can you handle this with a liveness or readiness check as well?
Issues go stale after 90d of inactivity.
Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.
If this issue is safe to close now please do so with /close.
/lifecycle stale
Stale issues rot after 30d of inactivity.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.
If this issue is safe to close now please do so with /close.
/lifecycle rotten /remove-lifecycle stale
Rotten issues close after 30d of inactivity.
Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.
/close