From adff8f0a20256509e943ab60e8f2c3f02ab98c2c Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Thu, 11 Sep 2025 22:24:24 -0400 Subject: [PATCH] ovn: fix test failure due to network sandbox --- pkgs/by-name/ov/ovn/package.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/by-name/ov/ovn/package.nix b/pkgs/by-name/ov/ovn/package.nix index effc66eb89cf..8624371c1ea1 100644 --- a/pkgs/by-name/ov/ovn/package.nix +++ b/pkgs/by-name/ov/ovn/package.nix @@ -45,6 +45,16 @@ stdenv.mkDerivation rec { xdp-tools ]; + postPatch = '' + # One test assumes that the test environment has a network route to + # 192.168.0.10 and fails in sandbox. Replace it with localhost. + # + # The test case checks behavior when the configured ovn-remote is down, so + # we can pick any "free" port here. + substituteInPlace tests/ovn-controller.at \ + --replace-fail 192.168.0.10:6642 127.0.0.1:9999 + ''; + # need to build the ovs submodule first preConfigure = '' pushd ovs