Integration: cleanup custom "docker0" bridge after tests#39571
Integration: cleanup custom "docker0" bridge after tests#39571thaJeztah wants to merge 4 commits intomoby:masterfrom
Conversation
|
@arkodg @andrewhsu PTAL |
d0a2f66 to
a904b4f
Compare
3479244 to
1de0c5f
Compare
|
Interesting failure on WindowsRS5: https://jenkins.dockerproject.org/job/Docker-PRs-WoW-RS5-Process/3063/console That test was added recently in #39454, but rewritten in a commit in the same PR: f8aef6a In that rewrite, there were some changes:
|
|
This failure looks genuine; need to look into that https://jenkins.dockerproject.org/job/Docker-PRs-experimental/46047/console |
|
Fixed We'll also have to discuss if these tests should actually remove |
|
OK, good news: that's the only failing test; I'll push the fix for that test, and start working on using random interface-names (I'll make that a follow-up PR) |
1de0c5f to
577bd6b
Compare
|
looking at this, should we also consider deleting and recreating |
|
Alas; it did not yet solve the problem with |
Perhaps; I'm not sure if there's side effects in doing so? |
There was a problem hiding this comment.
argh. I need to figure out how to prevent my IDE from adding these unneeded aliases 😂
577bd6b to
568a53d
Compare
|
Dropped the revert commit of moving docker-py back to the end |
03af909 to
b2a77ac
Compare
b2a77ac to
e557e73
Compare
|
e557e73 to
7623b74
Compare
|
rebased |
|
doh! declared in a I wonder why the RS5 CI doesn't show the actual error here |
7623b74 to
c0b1756
Compare
|
New Jenkins is failing on; https://ci.docker.com/public/blue/organizations/jenkins/moby/detail/PR-39571/2/pipeline |
|
Two failures on experimental; looks like flaky, but will run again https://jenkins.dockerproject.org/job/Docker-PRs-experimental/46172/console |
|
With #39579 this will not be necessary. |
c0b1756 to
99453d7
Compare
99453d7 to
8faa0ee
Compare
8faa0ee to
bf30b26
Compare
| assert.Equal(t, out.IPAM.Config[0].Subnet, "172.60.0.0/16") | ||
| delInterface(t, defaultNetworkBridge) | ||
| assert.Equal(t, out.IPAM.Config[0].Subnet, "172.60.0.1/16") |
There was a problem hiding this comment.
Note to self (I'm rebasing this one); check why I changed this from "172.60.0.0/16" to "172.60.0.1/16"
bf30b26 to
b6ca64b
Compare
It's doing the same as DeleteInterface in the same package Signed-off-by: Sebastiaan van Stijn <[email protected]>
Signed-off-by: Sebastiaan van Stijn <[email protected]>
Some tests in the `DockerDaemonSuite` make modifications to the "docker0" bridge, which affects
tests running after them if they do not delete and re-create the interface.
This may also explain the `test_init_swarm_data_path_addr ` in `docker-py` failing:
```
E docker.errors.APIError: 400 Client Error: Bad Request ("interface eth0 has more than one IPv6 address (2001:db8:1::242:ac11:2 and fe80::42:acff:fe11:2)")
```
Which may be caused by `TestDaemonIPv6FixedCIDRAndMac `:
```
s.d.StartWithBusybox(c, "--ipv6", "--fixed-cidr-v6=2001:db8:1::/64")
```
The following tests remove the `docker0` interface:
- `DockerDaemonSuite.TestDaemonIPv6FixedCIDR`
- `DockerDaemonSuite.TestDaemonIPv6FixedCIDRAndMac`
- `DockerDaemonSuite.TestDaemonIPv6HostMode`
- `DockerDaemonSuite.TestDaemonBridgeIP`
- `DockerDaemonSuite.TestDaemonDefaultGatewayIPv4Implicit`
- `DockerDaemonSuite.TestDaemonDefaultGatewayIPv4Explicit`
- `DockerDaemonSuite.TestDaemonDefaultGatewayIPv4ExplicitOutsideContainerSubnet`
- `DockerDaemonSuite.TestDaemonDefaultNetworkInvalidClusterConfig`
- `DockerDaemonSuite.TestBridgeIPIsExcludedFromAllocatorPool`
This patch removes `docker0` after each test in the `DockerDaemonSuite`, to force
the next test to re-create it with the default configuration.
Signed-off-by: Sebastiaan van Stijn <[email protected]>
These tests modify the "docker0" bridge. Use a consistent approach to make sure the modified bridge is cleaned up afterwards. Signed-off-by: Sebastiaan van Stijn <[email protected]>
b6ca64b to
61db84a
Compare
hopefully addresses #39570
this also reverts 6aafe0f (added in #39068)DockerDaemonSuite: cleanup "docker0" in TearDownTest
Some tests in the
DockerDaemonSuitemake modifications to the "docker0" bridge, which affectstests running after them if they do not delete and re-create the interface.
This may also explain the
test_init_swarm_data_path_addrindocker-pyfailing:Which may be caused by
TestDaemonIPv6FixedCIDRAndMac:The following tests remove the
docker0interface:DockerDaemonSuite.TestDaemonIPv6FixedCIDRDockerDaemonSuite.TestDaemonIPv6FixedCIDRAndMacDockerDaemonSuite.TestDaemonIPv6HostModeDockerDaemonSuite.TestDaemonBridgeIPDockerDaemonSuite.TestDaemonDefaultGatewayIPv4ImplicitDockerDaemonSuite.TestDaemonDefaultGatewayIPv4ExplicitDockerDaemonSuite.TestDaemonDefaultGatewayIPv4ExplicitOutsideContainerSubnetDockerDaemonSuite.TestDaemonDefaultNetworkInvalidClusterConfigDockerDaemonSuite.TestBridgeIPIsExcludedFromAllocatorPoolThis patch removes
docker0after each test in theDockerDaemonSuite, to forcethe next test to re-create it with the default configuration.
integration/network: cleanup custom "docker0" bridge
These tests modify the "docker0" bridge. Use a consistent approach to make sure the modified bridge is cleaned up afterwards.