-
Notifications
You must be signed in to change notification settings - Fork 911
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
azure: check for primary interface when performing DHCP #4465
Conversation
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.
LGTM
For Savable PPS we rely on a connectivity check to IMDS to determine if the NIC is primary. However, in some cases, connectivity may be delayed and we incorrectly assume the NIC is not primary. Instead of relying on connectivity, check the DHCP-provided route configuration for the presence of Wireserver and/or IMDS IPs. - Return bool from _setup_ephemeral_networking() indicating primary NIC or not. - Remove _check_if_nic_is_primary() used in Savable PPS. - Add a relevant diagnostic to assist debugging failures when a secondary NIC is chosen. - Remove some tests that are redundant. Signed-off-by: Chris Patterson <cpatterson@microsoft.com>
510a391
to
1011437
Compare
…ption 245, increase test coverage Signed-off-by: Chris Patterson <cpatterson@microsoft.com>
Hello! Thank you for this proposed change to cloud-init. This pull request is now marked as stale as it has not seen any activity in 14 days. If no activity occurs within the next 7 days, this pull request will automatically close. If you are waiting for code review and you are seeing this message, apologies! Please reply, tagging TheRealFalcon, and he will ensure that someone takes a look soon. (If the pull request is closed and you would like to continue working on it, please do tag TheRealFalcon to reopen it.) |
@holmanb can you review and merge? Thanks |
Ack, sorry for the delay on this one. EOD now, but will do this tomorrow. |
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.
I would also assume this performs a bit better too than getting metadata?
I left one question inline, but then I'll merge.
Looks good to me, thanks!
Signed-off-by: Chris Patterson <cpatterson@microsoft.com>
* azure: check for primary interface when performing DHCP For Savable PPS we rely on a connectivity check to IMDS to determine if the NIC is primary. However, in some cases, connectivity may be delayed and we incorrectly assume the NIC is not primary. Instead of relying on connectivity, check the DHCP-provided route configuration for the presence of Wireserver and/or IMDS IPs. - Return bool from _setup_ephemeral_networking() indicating primary NIC or not. - Remove _check_if_nic_is_primary() used in Savable PPS. - Add a relevant diagnostic to assist debugging failures when a secondary NIC is chosen. - Remove some tests that are redundant. Signed-off-by: Chris Patterson <cpatterson@microsoft.com>
* azure: check for primary interface when performing DHCP For Savable PPS we rely on a connectivity check to IMDS to determine if the NIC is primary. However, in some cases, connectivity may be delayed and we incorrectly assume the NIC is not primary. Instead of relying on connectivity, check the DHCP-provided route configuration for the presence of Wireserver and/or IMDS IPs. - Return bool from _setup_ephemeral_networking() indicating primary NIC or not. - Remove _check_if_nic_is_primary() used in Savable PPS. - Add a relevant diagnostic to assist debugging failures when a secondary NIC is chosen. - Remove some tests that are redundant. Signed-off-by: Chris Patterson <cpatterson@microsoft.com>
* azure: check for primary interface when performing DHCP For Savable PPS we rely on a connectivity check to IMDS to determine if the NIC is primary. However, in some cases, connectivity may be delayed and we incorrectly assume the NIC is not primary. Instead of relying on connectivity, check the DHCP-provided route configuration for the presence of Wireserver and/or IMDS IPs. - Return bool from _setup_ephemeral_networking() indicating primary NIC or not. - Remove _check_if_nic_is_primary() used in Savable PPS. - Add a relevant diagnostic to assist debugging failures when a secondary NIC is chosen. - Remove some tests that are redundant. Signed-off-by: Chris Patterson <cpatterson@microsoft.com>
* azure: check for primary interface when performing DHCP For Savable PPS we rely on a connectivity check to IMDS to determine if the NIC is primary. However, in some cases, connectivity may be delayed and we incorrectly assume the NIC is not primary. Instead of relying on connectivity, check the DHCP-provided route configuration for the presence of Wireserver and/or IMDS IPs. - Return bool from _setup_ephemeral_networking() indicating primary NIC or not. - Remove _check_if_nic_is_primary() used in Savable PPS. - Add a relevant diagnostic to assist debugging failures when a secondary NIC is chosen. - Remove some tests that are redundant. Signed-off-by: Chris Patterson <cpatterson@microsoft.com>
* azure: check for primary interface when performing DHCP For Savable PPS we rely on a connectivity check to IMDS to determine if the NIC is primary. However, in some cases, connectivity may be delayed and we incorrectly assume the NIC is not primary. Instead of relying on connectivity, check the DHCP-provided route configuration for the presence of Wireserver and/or IMDS IPs. - Return bool from _setup_ephemeral_networking() indicating primary NIC or not. - Remove _check_if_nic_is_primary() used in Savable PPS. - Add a relevant diagnostic to assist debugging failures when a secondary NIC is chosen. - Remove some tests that are redundant. Signed-off-by: Chris Patterson <cpatterson@microsoft.com>
* azure: check for primary interface when performing DHCP For Savable PPS we rely on a connectivity check to IMDS to determine if the NIC is primary. However, in some cases, connectivity may be delayed and we incorrectly assume the NIC is not primary. Instead of relying on connectivity, check the DHCP-provided route configuration for the presence of Wireserver and/or IMDS IPs. - Return bool from _setup_ephemeral_networking() indicating primary NIC or not. - Remove _check_if_nic_is_primary() used in Savable PPS. - Add a relevant diagnostic to assist debugging failures when a secondary NIC is chosen. - Remove some tests that are redundant. Signed-off-by: Chris Patterson <cpatterson@microsoft.com>
* azure: check for primary interface when performing DHCP For Savable PPS we rely on a connectivity check to IMDS to determine if the NIC is primary. However, in some cases, connectivity may be delayed and we incorrectly assume the NIC is not primary. Instead of relying on connectivity, check the DHCP-provided route configuration for the presence of Wireserver and/or IMDS IPs. - Return bool from _setup_ephemeral_networking() indicating primary NIC or not. - Remove _check_if_nic_is_primary() used in Savable PPS. - Add a relevant diagnostic to assist debugging failures when a secondary NIC is chosen. - Remove some tests that are redundant. Signed-off-by: Chris Patterson <cpatterson@microsoft.com>
For Savable PPS we rely on a connectivity check to IMDS to determine if the NIC is primary. However, in some cases, connectivity may be delayed and we incorrectly assume the NIC is not primary.
Instead of relying on connectivity, check the DHCP-provided route configuration for the presence of Wireserver and/or IMDS IPs.
Return bool from _setup_ephemeral_networking() indicating primary NIC or not.
Remove _check_if_nic_is_primary() used in Savable PPS.
Add a relevant diagnostic to assist debugging failures when a secondary NIC is chosen.
Remove some tests that are redundant.