Bug 289150 - sys/net/if_ovpn/if_ovpn tests failing in CI
Summary: sys/net/if_ovpn/if_ovpn tests failing in CI
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: tests (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: Kristof Provost
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2025-08-28 17:11 UTC by Siva Mahadevan
Modified: 2025-10-12 03:11 UTC (History)
4 users (show)

See Also:


Attachments
ovpn test report (31.09 KB, text/plain)
2025-08-28 17:21 UTC, Siva Mahadevan
no flags Details
[PATCH] tests: if_ovpn: xfail float and linklocal tests until openvpn 2.7 (1.12 KB, patch)
2025-08-28 19:17 UTC, Siva Mahadevan
no flags Details | Diff
[PATCH v2] tests: if_ovpn: xfail float and linklocal tests until openvpn 2.7 (786 bytes, patch)
2025-08-28 19:19 UTC, Siva Mahadevan
siva: maintainer-approval? (kp)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Siva Mahadevan freebsd_committer freebsd_triage 2025-08-28 17:11:16 UTC
The following testcases in the 'sys/net/if_ovpn/if_ovpn' testsuite are failing in CI:

sys/net/if_ovpn/if_ovpn:4in6  ->  failed: atf-check failed; see the output of the test for details  [24.039s]
sys/net/if_ovpn/if_ovpn:float  ->  failed: Client not found in status list!  [17.156s]
sys/net/if_ovpn/if_ovpn:linklocal  ->  failed: atf-check failed; see the output of the test for details  [10.125s]

Currently, pkg.freebsd.org does not contain binary packages for 'security/openvpn' (as reported for FreeBSD:15:latest on both amd64 and aarch64 here: https://www.freshports.org/security/openvpn) due to previous package build failures. However, these test failures are reproducible consistently using a package repository built locally with poudriere on current freebsd-ports HEAD.

I've attached the full Kyua test report from my test run in this bug, which contains the stderr from these failing cases.

I have reproduced this error with two methods:

1. using src in-tree local CI (after overriding the ci.conf with a local pkg repo):

# make -C tests/ci CITYPE=full PARALLEL_JOBS=2 VM_MEM_SIZE=4g KYUA_TEST_FILTERS='sys/net/if_ovpn/if_ovpn'

2. using bricoler[0] with a local pkg repo:

$ bricoler run freebsd-src-regression-suite --param freebsd-src:url=/usr/src --param freebsd-src:branch= --param freebsd-src-regression-suite:hypervisor=bhyve --param freebsd-src-regression-suite:memory=4096 --param freebsd-src-regression-suite:ncpus=2 --param freebsd-src-regression-suite:parallelism=1 --param freebsd-src-regression-suite-vm-image:package_repo_file="/path/to/local.pkg.conf" --param freebsd-src-regression-suite:tests='sys/net/if_ovpn/if_ovpn'

@kp I see that you wrote these test cases. Please triage as necessary.

[0] https://github.com/markjdb/bricoler
Comment 1 Kristof Provost freebsd_committer freebsd_triage 2025-08-28 17:11:57 UTC
That's expected until the openvpn gets updated.
Comment 2 Kristof Provost freebsd_committer freebsd_triage 2025-08-28 17:12:43 UTC
(In reply to Kristof Provost from comment #1)
*openvpn package
Comment 3 Siva Mahadevan freebsd_committer freebsd_triage 2025-08-28 17:21:45 UTC
Created attachment 263294 [details]
ovpn test report

Forgot to attach test report in submission.

> That's expected until the openvpn [package] gets updated.

Is the expection that there is a new upstream version of openvpn that would fix these issues? Or that the issue would be fixed once pkg.freebsd.org contains a working openvpn pkg?

To be clear, I am building a local pkg repository that contains the latest Ports version of openvpn, and the tests are failing with runtime errors, not with errors looking for openvpn in the path.
Comment 4 Kristof Provost freebsd_committer freebsd_triage 2025-08-28 17:48:01 UTC
(In reply to Siva Mahadevan from comment #3)
It needs an openvpn release that contains the link-local and float support. 
I don’t know offhand what version that will be in and if that’s pending with the openvpn project or the port at this point. 

If you build openvpn out of their git tree these tests will pass.
Comment 5 Ed Maste freebsd_committer freebsd_triage 2025-08-28 18:37:06 UTC
Should we skip or xfail these tests until the new openvpn release is in ports?
Comment 6 Siva Mahadevan freebsd_committer freebsd_triage 2025-08-28 19:17:10 UTC
Created attachment 263295 [details]
[PATCH] tests: if_ovpn: xfail float and linklocal tests until openvpn 2.7

> Should we skip or xfail these tests until the new openvpn release is in ports?

I think an xfail with this PR number is appropriate. Attaching a patch for this now.

I can confirm that using security/openvpn-devel (tracking git 2025-08-01) causes the float and linklocal tests to pass, so it's only a matter of waiting till the openvpn 2.7.x update. I'll mark this bug as 'in progress' to keep the CI failures tracked until the security/openvpn stable port is updated to 2.7.

As for the 4in6 test, it seems to be a flaky test that intermittently fails. Are you able to reproduce this? I can reproduce it consistently with 50 back-to-back runs.
Comment 7 Siva Mahadevan freebsd_committer freebsd_triage 2025-08-28 19:19:04 UTC
Created attachment 263296 [details]
[PATCH v2] tests: if_ovpn: xfail float and linklocal tests until openvpn 2.7

Fixed accidental inclusion of ci.conf changes in v2.
Comment 8 Kristof Provost freebsd_committer freebsd_triage 2025-08-29 08:34:12 UTC
(In reply to Ed Maste from comment #5)
> Should we skip or xfail these tests until the new openvpn release is in ports?

Let's not skip them, because skips tend to stick around forever.
Comment 9 commit-hook freebsd_committer freebsd_triage 2025-09-03 10:10:57 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=512d3c3a2c6391cee61ff41e3fe6304973346857

commit 512d3c3a2c6391cee61ff41e3fe6304973346857
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2025-08-29 09:19:26 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2025-09-03 10:10:21 +0000

    if_ovpn tests: skip float and linklocal test on < 2.7

    Earlier versions (than 2.7.0) do not support float notifications or link-local
    addresses. Skip the relevant tests there.

    PR:             289150
    MFC after:      1 week
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
    Differential Revision:  https://reviews.freebsd.org/D52234

 tests/sys/net/if_ovpn/if_ovpn.sh |  2 ++
 tests/sys/net/if_ovpn/utils.subr | 19 +++++++++++++++++++
 2 files changed, 21 insertions(+)
Comment 10 commit-hook freebsd_committer freebsd_triage 2025-09-12 06:58:13 UTC
A commit in branch stable/14 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=995d95c309fccd312f6e1c27ad4a93544b95780a

commit 995d95c309fccd312f6e1c27ad4a93544b95780a
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2025-08-29 09:19:26 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2025-09-12 06:32:16 +0000

    if_ovpn tests: skip float and linklocal test on < 2.7

    Earlier versions (than 2.7.0) do not support float notifications or link-local
    addresses. Skip the relevant tests there.

    PR:             289150
    MFC after:      1 week
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
    Differential Revision:  https://reviews.freebsd.org/D52234

    (cherry picked from commit 512d3c3a2c6391cee61ff41e3fe6304973346857)

 tests/sys/net/if_ovpn/if_ovpn.sh |  2 ++
 tests/sys/net/if_ovpn/utils.subr | 19 +++++++++++++++++++
 2 files changed, 21 insertions(+)