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

ci: fix dns issue when pulling cilium-docker-plugin in ci-runtime #29502

Merged
merged 1 commit into from
Dec 1, 2023

Conversation

mhofstetter
Copy link
Member

@mhofstetter mhofstetter commented Nov 30, 2023

It seems that even though we're setting the nameserver at the top of /etc/resolv.conf (#29455), in some cases docker still uses 127.0.0.53 to resolve names while pulling the cilium docker plugin in the ci-runtime test (e.g. https://github.com/cilium/cilium/actions/runs/7044583579/job/19172666548).

In one specific test-run even if etc/resolv.conf only contains nameserver 1.1.1.1.

It seems as docker tries to use nameserver information from systemd-resolved.

Therefore, this commit tries to force docker to use the nameserver 1.1.1.1, by removing the resolv.conf symlink, deleting the resolv.conf from systemd-resolved and restarting the docker service after applying the changes.

Follow up of #29455

@mhofstetter mhofstetter added kind/bug/CI This is a bug in the testing code. area/CI Continuous Integration testing issue or flake release-note/ci This PR makes changes to the CI. labels Nov 30, 2023
@mhofstetter mhofstetter force-pushed the pr/mhofstetter/runtime-dns branch 2 times, most recently from c6464a9 to c02a0e3 Compare November 30, 2023 10:44
@mhofstetter mhofstetter changed the title ci: runtime: fix dns issue ci: fix dns issue when pulling cilium-docker-plugin in ci-runtime Nov 30, 2023
It seems that even though we're setting the nameserver at the top
of `/etc/resolv.conf`, in some cases docker still uses 127.0.0.53
to resolve names while pulling the cilium docker plugin in the
ci-runtime test.

It seems as docker tries to use nameserver information from
`systemd-resolved`.

Therefore, this commit tries to force docker to use the nameserver
1.1.1.1, by removing the resolv.conf symlink, deleting the resolv.conf
from systemd-resolved and restarting the docker service after applying
the changes.

Signed-off-by: Marco Hofstetter <marco.hofstetter@isovalent.com>
@mhofstetter mhofstetter marked this pull request as ready for review November 30, 2023 11:00
@mhofstetter mhofstetter requested review from a team as code owners November 30, 2023 11:00
@mhofstetter
Copy link
Member Author

/test

@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Dec 1, 2023
@aanm aanm added this pull request to the merge queue Dec 1, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Dec 1, 2023
@aanm aanm added this pull request to the merge queue Dec 1, 2023
Merged via the queue into main with commit 83425f2 Dec 1, 2023
202 of 206 checks passed
@aanm aanm deleted the pr/mhofstetter/runtime-dns branch December 1, 2023 13:46
@mhofstetter mhofstetter added the needs-backport/1.14 This PR / issue needs backporting to the v1.14 branch label Dec 13, 2023
@mhofstetter mhofstetter mentioned this pull request Dec 13, 2023
10 tasks
@giorio94 giorio94 added backport-pending/1.14 The backport for Cilium 1.14.x for this PR is in progress. and removed needs-backport/1.14 This PR / issue needs backporting to the v1.14 branch labels Dec 13, 2023
@github-actions github-actions bot added backport-done/1.14 The backport for Cilium 1.14.x for this PR is done. and removed backport-pending/1.14 The backport for Cilium 1.14.x for this PR is in progress. labels Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/CI Continuous Integration testing issue or flake backport-done/1.14 The backport for Cilium 1.14.x for this PR is done. kind/bug/CI This is a bug in the testing code. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/ci This PR makes changes to the CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants