Closed elmiko closed 1 month ago
This issue is currently awaiting triage.
If cloud-provider-aws contributors determine this is a relevant issue, they will accept it by applying the triage/accepted
label and provide further guidance.
The triage/accepted
label can be added by org members by writing /triage accepted
in a comment.
There's a PR pending for this: #909 👍
great to hear, thanks @cartermckinnon !
What happened:
In cases where a node has multiple network interfaces, the order in which they are listed from AWS is applied directly to the interfaces list that the CCM produces. Depending on the ordering from AWS, this may or may not be accurate for the node being deployed. Even when
DeviceIndex
is specified, it is not respected.For example, given this data from AWS:
The interface with MAC
02:5c:60:51:b1:29
should be the first interface by itsDeviceIndex
, yet it is the second interface due to the ordering from AWS.What you expected to happen:
When
DeviceIndex
is specified, I expect it to be honored when ordering the network interfaces.How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
this was solved in the in-tree cloud controller but appears to have not been ported to the out-of-tree controller, see https://github.com/kubernetes/kubernetes/pull/80747
this is the current code in the external ccm, https://github.com/openshift/cloud-provider-aws/blob/release-4.14/pkg/providers/v1/aws.go#L1515
Environment:
kubectl version
):uname -a
):/kind bug