Comments (2)
Confirmed, thanks for reporting this.
from amazon-ec2-net-utils.
I'm not sure if the sort is being used for other purposes, though it may suffer from some other logic failures since it is a plain sort not accounting for address notation. I believe local-ipv4s will always return primary first and then secondaries in order of assignment on the ENI, so the alias logic just needs to receive the list unsorted.
The sort is there to ensure consistent comparison, so it doesn't need to be any specific sort. We use sort because the IMDS does not guarantee that the results are returned in consistent order. The solution to this issue will be move the sort
invocation to after the tail -n +2
invocation to ensure that we're only looking at secondary IPv4 addresses. Though technically that's still imperfect, as IMDS also doesn't (publicly, anyway) guarantee that the primary address will always be the first one returned at the local-ipv4s
key.
from amazon-ec2-net-utils.
Related Issues (20)
- amazon-ec2-net-utils incompatible with amazon-vpc-cni-k8s HOT 3
- Incorporate ENA Express recommended settings HOT 1
- Package should use systemd presets instead of enabling/disabling services
- Support for Rhel9/ Predicatable interfaces HOT 1
- add support for multiple NetworkCardIndex values
- 1.x: Add optional provisioning of ipv4 delegated prefix IPs HOT 1
- [Feature Request] - refresh-policy-routes systemd timer emits lots of noisy journald log entries HOT 3
- udev rules configuration incorrectly handles virtual interfaces HOT 1
- 1.x: repeatedly deletes and creates rules for delegated IPv6 prefixes HOT 1
- Going from v1.7.0 to v1.7.1 caused instance to be unreachable HOT 11
- ec2-net-utils v2.3.0 - Issues with hotplug HOT 1
- get_meta retry loop attempt not incrementing correctly HOT 1
- 1.x: regression in the handling of `/etc/sysconfig/network-scripts/route-*` files
- The amazon-ec2-net-utils RPM package does not own the /usr/share/amazon-ec2-net-utils directory HOT 3
- 1.x: Race condition at boot can cause instance to miss ENI attachments
- Shellcheck error on Debian 12/bookworm (testing as of today) HOT 2
- Using device number from IMDS before propagation HOT 6
- ec2-net-utils deleting custom ip rules upon state change HOT 1
- 2.4.0-1.amzn2023.0.1 breaks docker connectivity inside host HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amazon-ec2-net-utils.