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
Since v1.69.0 of the ECS agent the plugin crashes, with the latest version, 1.77.0, the service can start a task, but it cannot connect to the network. As per AWS recommendations we're using awsvpc mode and blocking the IMDS endpoint, which appears to be the cause of the issue.
Description
We see an error in the logs, see below, when the plugin attempts to add the blackhole route for the IPv6 address of the IMDS, this line in the code appears to be what's failing.
The AMI that we use for the EC2 instance does not have IPv6 enabled for security reasons.
Expected Behavior
The plugin handles the resulting error gracefully, or provides some means of disabling the IPv6 support to avoid the error.
Observed Behavior
The plugin crashes and fails to finish configuring the network routes for the task, e.g. the default route is missing from the task route table, etc.
Route table with latest agent and ECS_AWSVPC_BLOCK_IMDS=true:
FYI - We're using CIS recommended way of setting things up when hardening the base AMI and therefore disable IPv6 by adding ipv6.disable=1 to kernel options in /etc/default/grub, if that helps with debugging and/or fixing the issue?
Summary
Since v1.69.0 of the ECS agent the plugin crashes, with the latest version, 1.77.0, the service can start a task, but it cannot connect to the network. As per AWS recommendations we're using awsvpc mode and blocking the IMDS endpoint, which appears to be the cause of the issue.
Description
We see an error in the logs, see below, when the plugin attempts to add the blackhole route for the IPv6 address of the IMDS, this line in the code appears to be what's failing.
The AMI that we use for the EC2 instance does not have IPv6 enabled for security reasons.
Expected Behavior
The plugin handles the resulting error gracefully, or provides some means of disabling the IPv6 support to avoid the error.
Observed Behavior
The plugin crashes and fails to finish configuring the network routes for the task, e.g. the default route is missing from the task route table, etc.
Route table with latest agent and
ECS_AWSVPC_BLOCK_IMDS=true
:Route table with latest agent and
ECS_AWSVPC_BLOCK_IMDS=false
:Route table with v1.68.2 of the agent and
ECS_AWSVPC_BLOCK_IMDS=true
:Environment Details
docker info:
The text was updated successfully, but these errors were encountered: