-
Notifications
You must be signed in to change notification settings - Fork 174
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-compose integration tests not cleaning up on failures #5948
Comments
Also seen in ci build 13443. The last cmd that was executed before the failed sub-test is:
The other containerVM I was wondering why we didn't run However, even if we don't run |
I ran the following manually to create a case where we had an orphan container before
and it still worked. If an orphan container is originally created by docker-compose, it should not fail However, if it is created outside of In this failure, the network |
Seeing this on quite a few builds now. @chengwang86 @anchal-agrawal Can you guys dig into this more? We need to cut this instability out of our builds ASAP. please. |
Also seen in ci builds 13468 and 13471. |
After
However, side note: The output of |
Here is how
|
Discussed with @hmahmood about this issue. It turns out that in the sub-test of
Docker-compose sends |
From the logs of build 13471, I didn't find What we expect to see is
where |
We did receive the VM poweredoff event from vsphere. It turns out that there is a race condition here. |
Some comments from @hickeng
We will have a similar problem with a dangling endpoint if we unregister a containerVM - we won't ever get a power off or deleted event - so we should also consider validating any remaining endpoints during a delete operation` |
The workaround:
The fix will involve code changes in two places:
|
Seen in build https://ci.vcna.io/vmware/vic/12992:
The
Compose Up with link
test failed before getting to thedocker-compose down
step, thereby leaving orphan containers connected to thevic_default
network, which caused subsequentdocker-compose down
commands to fail withProposed solutions:
Test Teardown Run Keyword If Test Failed
step to clean up orphan containers if a test fails before the cleanup step (docker-compose down
).docker-compose down
.The text was updated successfully, but these errors were encountered: