Skip to content

Commit

Permalink
Fix network retry check for (rootless) podman
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjm authored and medyagh committed Jun 17, 2024
1 parent c8c54fb commit f1adfd6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/drivers/kic/oci/network_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ func tryCreateDockerNetwork(ociBin string, subnet *network.Parameters, mtu int,
if strings.Contains(rr.Output(), "is being used by a network interface") {
return nil, ErrNetworkGatewayTaken
}
if strings.Contains(rr.Output(), "is already used on the host or by another config") {
return nil, ErrNetworkGatewayTaken
}
return nil, fmt.Errorf("create %s network %s %s with gateway %s and MTU of %d: %w", ociBin, name, subnet.CIDR, subnet.Gateway, mtu, err)
}
return gateway, nil
Expand Down

0 comments on commit f1adfd6

Please sign in to comment.