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_network IPAM test / general docker test cleanup #50499
docker_network IPAM test / general docker test cleanup #50499
Conversation
(Copying from #50354, since that's closed now) CC @mattclay as he knows a lot more about the CI system. @smueller18 I think this can only happen in one of two instances:
|
Idea: modify
That should prevent errors like left-over containers or networks from before reserving resources (like IP addresses, subnets, ...) which are needed. (I think the CI system already clears up docker containers, but probably doesn't clean up docker networks or docker volumes.) |
376238f
to
f5dcf10
Compare
f5dcf10
to
5091ba4
Compare
I think this should do it (at least as a first approximation). ready_for_review |
I would wait with merging until we get more information about the underlying CI system.
If 2 is possible, than cleaning up docker networks might cause other issues. Have a look at ansible/test/integration/targets/docker_network/tasks/tests/ipam.yml Lines 63 to 114 in 5091ba4
edit: |
While I developed the tests for the IPAM options, I overtook the existing IP addresses for tests. But the chosen IPv4 addresses are not in the private network segments described in https://en.wikipedia.org/wiki/Private_network#Private_IPv4_addresses. There could be an interference. |
Here are all observed tests failures that appeared so far (that they do not get lost in the other closed issues):
|
db7011c
to
cd42537
Compare
@felixfontein You are correct. If a Shippable run is cancelled, none of our cleanup code will execute. Test nodes on Shippable are used for running only one job at a time, so there's no need to worry about parallel execution on a single host. |
Great, thanks! I think this is ready to be merged, then. @smueller18 any more objections? :) |
@felixfontein LGTM |
Thanks @felixfontein and @smueller18 for working through this one. |
Thanks @smueller18 @jborean93 @mattclay for suggestions and reviewing and merging! |
* Re-enable docker_network tests. * Basic cleanup of docker daemon. * Add docker CLI detection. * YAML notation. (cherry picked from commit b52d7d5)
I created a backport to stable-2.7 in #50696. |
* Re-enable docker_network tests. * Basic cleanup of docker daemon. * Add docker CLI detection. * YAML notation. (cherry picked from commit b52d7d5)
* Re-enable docker_network tests. * Basic cleanup of docker daemon. * Add docker CLI detection. * YAML notation.
* Re-enable docker_network tests. * Basic cleanup of docker daemon. * Add docker CLI detection. * YAML notation.
SUMMARY
The test had to be deactivated (in #50477) since it caused a lot of spurious failures; see also here.
Fixes #50527, fixes #50478.
ISSUE TYPE
COMPONENT NAME
docker_network