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
docker_container: wait for removal if removal is in process #65854
docker_container: wait for removal if removal is in process #65854
Conversation
Tested and working fine for me! |
Great! In that case, it's no longer a WIP ;) ready_for_review |
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.
@felixfontein , can we reproduce the situation with CI tests?
I knew you would be asking this ;-) The problem with this is that I didn't even manage to reproduce it locally, so I have no clue on how to reproduce it in CI. Also, I'd guess that reproducing this would induce a high strain on the CI system, potentially making it quite expensive (also in money terms). So I guess it is best to make sure that this doesn't hurt existing use-cases (which CI should do), and hope that @darkdragon-001's successful tests indicate that it actually works in situations where the wait is required. |
Ok, clear, if @darkdragon-001 tested it manually that’s ok (in this case, i said feeling pain a bit:) |
It's working fine for me. If I interpret the changes correctly, it just makes sure that the container is deleted before a new one is created. If you want to reproduce this in CI, the "correct" way would be to create a dummy docker storage provider which gives gives information like deleted when set with CI. But I guess it's not worth the work... Alternatively emulate very slow storage. But again, I don't know if it's worth to regularly put that much work on the CI. So I would say that manual tests with manual code review should be fine here... |
shipit |
@darkdragon-001 thanks a lot for testing this fix! |
@felixfontein , thanks! |
…65854) * Allow to inspect containers directly. * Wait for containers to be removed before recreating them. * Also wait for containers to be removed before creating them. * Add changelog.
…6118) * docker_container: wait for removal if removal is in process (#65854) * Allow to inspect containers directly. * Wait for containers to be removed before recreating them. * Also wait for containers to be removed before creating them. * Add changelog. (cherry picked from commit 4df5bdb) * Don't wait for removal during check mode. (#66145) (cherry picked from commit 14e32c8)
…6117) * docker_container: wait for removal if removal is in process (#65854) * Allow to inspect containers directly. * Wait for containers to be removed before recreating them. * Also wait for containers to be removed before creating them. * Add changelog. (cherry picked from commit 4df5bdb) * Don't wait for removal during check mode. (#66145) (cherry picked from commit 14e32c8)
SUMMARY
Fixes #65811.
ISSUE TYPE
COMPONENT NAME
docker_container