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

DNS timeout when checking for push permissions #645

Closed
Dopingus opened this issue Apr 17, 2019 · 1 comment
Closed

DNS timeout when checking for push permissions #645

Dopingus opened this issue Apr 17, 2019 · 1 comment
Labels
area/errorhandling For all bugs having to do with handling problems during kaniko execution priority/p2 High impact feature/bug. Will get a lot of users happy

Comments

@Dopingus
Copy link
Contributor

Actual behavior
When using the current Kaniko image (based on golang:1.10) Kaniko throws an error during push permission check. This can happen when the DNS server sends responses which cannot be unmarshalled correctly by the Golang DNS resolver implementation (see golang/go#28419 and golang/go#21160).
The error looks like this:

error checking push permissions -- make sure you entered the correct tag name, and that you are authenticated correctly, and try again: checking push permission for "<redacted image name>": Get <redacted image repository>: dial tcp: lookup <redacted image repository hostname> on <K8s Cluster DNS IP>:53: read udp <Pod IP>:60645-> <K8s Cluster DNS IP>:53: i/o timeout

After building a Kaniko image based on golang 1.12, Kaniko was able to execute past push permission check.
-> Proposed solution: Update the golang version of Kaniko to 1.12

Expected behavior
The push permission check should work successfully if the DNS server is reachable and sending a valid response.

To Reproduce
Steps to reproduce the behavior:

  1. Use gcr.io/kaniko-project/executor(:debug) (must be golang 1.10 based)
  2. Setup a DNS server which sends slightly larger DNS responses
  3. Run any build which uses the DNS server setup in 2.

Additional Information

  • Kaniko Image (fully qualified with digest): "gcr.io/kaniko-project/executor@sha256:62bc2acb47775f717cd5e81076e46f2c552d0ae958cd6d300d42ff73892c19da"
@donmccasland donmccasland added area/errorhandling For all bugs having to do with handling problems during kaniko execution priority/p2 High impact feature/bug. Will get a lot of users happy labels Sep 20, 2019
@cvgw cvgw closed this as completed Dec 23, 2019
@cvgw
Copy link
Contributor

cvgw commented Dec 23, 2019

kaniko is now using golang 1.12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/errorhandling For all bugs having to do with handling problems during kaniko execution priority/p2 High impact feature/bug. Will get a lot of users happy
Projects
None yet
Development

No branches or pull requests

3 participants