Skip to content

Fix bug where transient IMDS failure could revert secondary ip addres…#162

Merged
joeysk2012 merged 1 commit into
amazonlinux:mainfrom
joeysk2012:fix-local-ipv4
Jul 14, 2026
Merged

Fix bug where transient IMDS failure could revert secondary ip addres…#162
joeysk2012 merged 1 commit into
amazonlinux:mainfrom
joeysk2012:fix-local-ipv4

Conversation

@joeysk2012

Copy link
Copy Markdown
Contributor

Fixes a bug where if transient IMDS call fails during mid execution of refresh-policy-routes then, a the secondary ip config ec2_alias.conf will be removed. This happens because there get_imds fails and the shell $(..) will swallow the error and addresses will be returned as a empty string. This could also happen for subnets in create_if_overrides and we do a best effort to fix this as well.

Issue #, if available: #161

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

…ses.

Modify subnet calls in  create_if_overrides function and add http failure logging.
@joeysk2012

Copy link
Copy Markdown
Contributor Author

Reviewed offline, merging.

@joeysk2012 joeysk2012 merged commit 06cef47 into amazonlinux:main Jul 14, 2026
4 checks passed
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.

2 participants