-
Notifications
You must be signed in to change notification settings - Fork 856
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gce: improve ephemeral fallback NIC selection (CPC-2578) (#4163)
While setting up the ephemeral network config for fetching the IMD at init-local timeframe on multi-NIC instances, fulfilling: - All NICs without carrier flag or more than one NIC with carrier flag - systemd's predictable interface names is enabled net.find_fallback_nic could select a NIC that is not the primary NIC, leaving the instance without access to the network, as on GCE, only the primary NIC can talk to the IMDS. At this point in time, there is yet not access to {instance,vendor,user}-data. Thus, it is tricky to dynamically inject a breadcrum pointing to the primary NIC. Two actions have been taken to fix this situation on the DataSourceGCE: 1. Substitute eth0 with ens4 as the default primary NIC candidate. 2. Try through the list of candidate NICs and use the first that can reach the IMDS.
- Loading branch information
Showing
2 changed files
with
115 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters