-
Notifications
You must be signed in to change notification settings - Fork 618
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ECS Agent not reporting network bindings #1057
Comments
Thanks for reporting this. This was actually an issue in the ECS backend service, so it won't require agent changes. The problem has been resolved at this time, and newly launched tasks should get the proper network configuration. Please let me know if you continue to experience problems. |
@nmeyerhans I redeployed the updated AMI to our staging environment and redeployed the tasks, but the network binding still do not register with ECS. |
For anyone else finding this report in a search and also having this issue, this was the reply we got from AWS support:
|
actually I had to wait a bit for the task to get in the RUNNING state. tested on agent version:
i get the networkBindings only after the task is in RUNNING state and not while is in PENDING.
http://docs.aws.amazon.com/AmazonECS/latest/developerguide/container_agent_versions.html |
Summary
After upgrading to the latest ECS agent, our containers are no longer registered to the target group.
Description
We upgraded to the latest ECS agent version (v1.15.0) via switching to the latest Amazon Linux ECS AMI, from a previous version of the AMI. After this change, our tasks no longer get registered to the target group for the load balancer. This appears to be caused by the agent not reporting the network bindings to ECS. In the AWS ECS UI, the tasks show as "Network bindings - not configured". No relevant errors appear in the ecs-agent log.
Inspecting /var/lib/ecs/data/ecs_agent_data.json shows that ecs-agent knows about the ports:
All of our tasks use dynamic port mapping.
Expected Behavior
The network bindings properly display via describe-tasks API call as well as show up in the UI. Tasks properly register to ALB target group.
Observed Behavior
Opposite of expected behavior.
Environment Details
The text was updated successfully, but these errors were encountered: