mirror of https://github.com/containers/podman.git
fix dual stack network e2e flake
We need to use different ipv6 subnets for the tests since they can collide otherwise when the tests are run in parallel. In the future we should rethink hardcoding subnets for ipv4/ipv6. This will make it impossible to run these tests if the subnet is already used on the host. Example log: https://storage.googleapis.com/cirrus-ci-6707778565701632-fcae48/artifacts/containers/podman/5711403297275904/html/int-podman-fedora-35-root-host-netavark.log.html#t--podman-network-create-with-multiple-subnets-dual-stack-with-gateway-and-range--1 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
parent
3853ef9b59
commit
622d0068e4
|
@ -416,8 +416,8 @@ var _ = Describe("Podman network create", func() {
|
||||||
subnet1 := "10.10.3.0/24"
|
subnet1 := "10.10.3.0/24"
|
||||||
gw1 := "10.10.3.10"
|
gw1 := "10.10.3.10"
|
||||||
range1 := "10.10.3.0/26"
|
range1 := "10.10.3.0/26"
|
||||||
subnet2 := "fd52:2a5a:747e:3acd::/64"
|
subnet2 := "fd52:2a5a:747e:3ace::/64"
|
||||||
gw2 := "fd52:2a5a:747e:3acd::10"
|
gw2 := "fd52:2a5a:747e:3ace::10"
|
||||||
nc := podmanTest.Podman([]string{"network", "create", "--subnet", subnet1, "--gateway", gw1, "--ip-range", range1, "--subnet", subnet2, "--gateway", gw2, name})
|
nc := podmanTest.Podman([]string{"network", "create", "--subnet", subnet1, "--gateway", gw1, "--ip-range", range1, "--subnet", subnet2, "--gateway", gw2, name})
|
||||||
nc.WaitWithDefaultTimeout()
|
nc.WaitWithDefaultTimeout()
|
||||||
defer podmanTest.removeNetwork(name)
|
defer podmanTest.removeNetwork(name)
|
||||||
|
@ -440,7 +440,7 @@ var _ = Describe("Podman network create", func() {
|
||||||
name := "subnets-" + stringid.GenerateNonCryptoID()
|
name := "subnets-" + stringid.GenerateNonCryptoID()
|
||||||
subnet1 := "10.10.3.0/24"
|
subnet1 := "10.10.3.0/24"
|
||||||
gw1 := "10.10.3.10"
|
gw1 := "10.10.3.10"
|
||||||
gw2 := "fd52:2a5a:747e:3acd::10"
|
gw2 := "fd52:2a5a:747e:3acf::10"
|
||||||
nc := podmanTest.Podman([]string{"network", "create", "--subnet", subnet1, "--gateway", gw1, "--gateway", gw2, name})
|
nc := podmanTest.Podman([]string{"network", "create", "--subnet", subnet1, "--gateway", gw1, "--gateway", gw2, name})
|
||||||
nc.WaitWithDefaultTimeout()
|
nc.WaitWithDefaultTimeout()
|
||||||
Expect(nc).To(Exit(125))
|
Expect(nc).To(Exit(125))
|
||||||
|
|
Loading…
Reference in New Issue