-
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
Fix error detection case when image that is being deleted does not exist - continued. #2008
Fix error detection case when image that is being deleted does not exist - continued. #2008
Conversation
By the way, can someone explain to me how the original report #1871 was fixed? |
d57c385
to
811fbcc
Compare
ping @shubham2892 as the original fixer |
@bendavies Thanks for looking into this. As far as I remember, it's related to the cleaning that happens after the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bendavies Can you rebase the branch against dev please. Thanks.
811fbcc
to
23ab6ed
Compare
@shubham2892 done |
will this make it into V1.28.0? |
It should be in V1.29.0. |
Summary
Corrects the fix provided in #1897.
We were experiencing images not being removed and upgraded
ecs-agent
to fix the issue, after seeing the above PR.It did not fix the issue.
Investigation revealed that the above PR does not fix the issue (at least for more recent docker versions because the actual error return from docker is
Error: No such image
- capitalN
.Implementation details
Make the string contains check for
no such image
case insensitive.Testing
TestDeleteImageNotFoundError
to make the error the correct case.TestDeleteImageNotFoundOldDockerMessageError
alone, using existing lower case error message. I am not sure if that is the correct case for old docker versions, but now we have 2 tests covering both cases.New tests cover the changes: yes, corrected existing.
Description for the changelog
Bug - Fix cleaning up images when some images are not found. Continuation of #1897
Licensing
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.