-
Notifications
You must be signed in to change notification settings - Fork 83
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
Update NIC management strategy #402
Conversation
Passes CIT network test:
|
Routing is functional but not correct, there are martian packets coming from the MDS in kernel logs with this build. |
I'll re-request review when I'm ready, want to make some more changes. |
Updated rollback strategy, NetworkManager and Netplan were not applying changes on rollback. Added unit test for FallbacktoDefault. |
f1c2aee
to
e8c4b80
Compare
Reworked, see commit message. MDS reachability is WAI (only on primary NIC).
|
/unhold |
678686a
to
e538357
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that it doesn't seem we're using osConfigRule
, we can probably remove it, along with the no-op test for TestFindOSRule
in manager_test.go
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, forgot to remove osConfigRule
. I think the test is already gone though. PTAL.
Don't delete default netplan config on Debian 12. Write netplan configs to /run/netplan. Don't manage primary NIC unless the user has configured the new manage_primary_nic toggle. Disable use-domains on secondary NICs with netplan. This avoids making the MDS reachable over secondary NICs instead of primary NICs when managing the primary interface. If the MDS is inaccessible during startup, rollback all agent configuration on all interfaces and try again. Apply changes during netplan and network manager rollbacks.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: a-crate, ChaitanyaKulkarni28, drewhli The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
3aa08e9
into
GoogleCloudPlatform:main
See commit messages for details. Short version: bring back OS rules with a configuration option to ignore them.
Stop removing the default configuration on Debian 12, write a config with a higher priority.
Add a network recovery strategy, executed when then MDS is inaccessible on startup. Remove all guest agent configuration and go back to the OS default, exit with a failure if the MDS is still inaccessible with the default configuration.
/hold
/cc @ChaitanyaKulkarni28 @drewhli