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

Make sure all network interfaces are routable #6053

Merged

Conversation

jandubois
Copy link
Member

@jandubois jandubois commented Nov 26, 2023

This is a workaround for #6051

It makes sure the boot-time /etc/network/interfaces file is copied to the persisted location and then restarts the networking service yet one more time.

This PR is intended for the 1.11.1 patch release, so should be as minimal as possible.

The workaround should be removed when the issue is fixed upstream (likely in the bump to Lima 0.19.0).

The functionality can be tested with the CI build with:

  • Do a factory reset
  • Start Rancher Desktop with default settings
  • Enable Admin mode, which will restart the VM
  • Run rdctl shell ip r

The output should include default routes for eth0, rd0, and rd1. With the 1.11.0 release the output only includes the default route for eth0.

As an additional test you can also run (on the host) curl http://$ITF for rd0 and rd1 and make sure you get the 404 page not found error from Traefik. With 1.11.0 the command will timeout.

@jandubois jandubois changed the base branch from main to release-1.11 November 26, 2023 07:01
This is a workaround for rancher-sandbox#6051

It makes sure the boot-time /etc/network/interfaces file is copied
to the persisted location and then restarts the networking service
yet one more time.

This workaround should be removed when the issue is fixed upstream.

Signed-off-by: Jan Dubois <[email protected]>
Copy link
Contributor

@mook-as mook-as left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see in your upstream PR you also copy /etc/resolv.conf; do we need to do that here too?

Copy link
Member

@Nino-K Nino-K left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jandubois jandubois merged commit 032f6e3 into rancher-sandbox:release-1.11 Nov 27, 2023
@jandubois jandubois deleted the network-interfaces branch November 27, 2023 19:36
@jandubois
Copy link
Member Author

I see in your upstream PR you also copy /etc/resolv.conf; do we need to do that here too?

No, we don't. rc-service networking restart will go through /etc/network/interfaces and call ifup on them. Since they are configured with dhcp this will call udhcpc which in turn will update /etc/resolv.conf.

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

Successfully merging this pull request may close these issues.

3 participants