You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return"", errors.Wrap(err, "AllocENI: unable to change the ENI's attribute")
}
log.Infof("Successfully created and attached a new ENI %s to instance", eniID)
returneniID, nil
}
If ModifyNetworkInterfaceAttribute call was unsuccessful (it was in our case - cloudtrail logs indicates that this call was rate-limited), then plugin will try to delete ENI.
ENI can't be deleted because it is attached to an instance.
62019-07-19T17:25:55Z [DEBUG] Trying to delete ENI: eni-0a0b3f58e0fe6d7d0
2019-07-19T17:29:30Z [DEBUG] Not able to delete ENI yet (attempt 1/20): InvalidParameterValue: Network interface 'eni-0a0b3f58e0fe6d7d0' is currently in use.
status code: 400, request id: 9c360487-187e-4573-a072-4a234b8d1946
This error causes another issue: we will have an ENI instance that is attached to an EC2 instance, but CNI Plugin doesn't know about it, and it will try to warm another CNI plugin and it will fail wit the error message AttachmentLimitExceeded.
The reason CNI Plugin get this error is because it was not properly deleted. As a result, internal datastore is not updated. And on the next call of ìncreasIPPool it will fail at
We found the following behavior:
Steps to reproduce
WARM_ENI_TARGET
to max available to your instance type.ipamd logs:
Upon further investigation, we found the issue in
AllocENI
function:amazon-vpc-cni-k8s/pkg/awsutils/awsutils.go
Lines 547 to 584 in 73ab7f5
ModifyNetworkInterfaceAttribute
call was unsuccessful (it was in our case - cloudtrail logs indicates that this call was rate-limited), then plugin will try to delete ENI.This error causes another issue: we will have an ENI instance that is attached to an EC2 instance, but CNI Plugin doesn't know about it, and it will try to warm another CNI plugin and it will fail wit the error message
AttachmentLimitExceeded
.The reason CNI Plugin get this error is because it was not properly deleted. As a result, internal datastore is not updated. And on the next call of
ìncreasIPPool
it will fail atamazon-vpc-cni-k8s/ipamd/ipamd.go
Lines 590 to 592 in a4b14eb
The text was updated successfully, but these errors were encountered: