-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[observer/ecs] Don't report EC2 tasks with unassigned container instances #23279
[observer/ecs] Don't report EC2 tasks with unassigned container instances #23279
Conversation
|
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
Signing CLA takes a bit longer than expected, but PR is not forgotten |
@shchuko, thank you. please sign the CLA |
Thanks for your review!
Hope to sign it next week, waiting for our legal department response |
Also, there are some linter issues. PTAL |
Linter reported a problem:
Fixed, force-pushed |
@dmitryax I've signed the CLA, but |
I don't have sufficient permissions to merge, seems it should be done by authorized person
|
@shchuko we had some CI issue recently that are now fixed, please update your branch with the latest from main. |
…ainer instances When ECS task of EC2 launch type is in state Provisioning/Pending, it may not have EC2 instance. Such tasks have `nil` instance arn and the attachContainerInstance call will fail. This change fixes an error: ```error [email protected]/error.go:77 attachContainerInstance failed: describe container instanced failed offset=0: ecs.DescribeContainerInstance failed: InvalidParameterException: Container instance can not be blank. {"kind": "extension", "name": "ecs_observer", "ErrScope": "Unknown"} ```
Rebased on main, typo fix is squashed with original commit |
I see new linter check problem, but can't reproduce it on my machine with |
When ECS task is in state Provisioning/Pending, it can contain container(s) which don't have EC2 instance yet. Such containers have
nil
instance arn.This change fixes service discovery error:
Testing: Related unit test is added.