Bug 2165141

Summary: NetworkManager unit tests "/l3cfg/4" is failing
Product: Red Hat Enterprise Linux 9 Reporter: Thomas Haller <thaller>
Component: NetworkManagerAssignee: NetworkManager Development Team <nm-team>
Status: CLOSED MIGRATED QA Contact: Desktop QE <desktop-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.2CC: bgalvani, lrintel, rkhan, sfaye, sukulkar, till
Target Milestone: rcKeywords: MigratedToJIRA, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-17 08:07:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Thomas Haller 2023-01-27 20:33:17 UTC
The test is here: https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/9934be52cd453202248cb5f7f7dadbe05a2412de/src/core/tests/test-l3cfg.c#L340

The test exists for a while, and it appeared to run stable. No issues in gitlab-ci, in copr builds, in beaker builds (or on my machine).


Note that this is a randomize test, that means it takes different code paths depending on NMTST_SEED_RAND environment variable. Also note that on my machine I always run unit tests with randomization enabled (by setting the seet to empty `NMTST_SEED_RAND=`). I didn't notice a failure so far.

However, in the gitlab-ci test script there is a bug, so that the test effectively run always with the same seed `NMTST_SEED_RAND=0`. This is about to be fixed, and the test start failing with certain randomizations.

This needs fixing.


Here is a run that shows the failure: https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/pipelines/794971


In the meantime, I disabled the test. To reproduce, you first need to re-enable it. If you cannot reproduce on your machine, try in gitlab-ci.

Comment 2 RHEL Program Management 2023-08-17 07:27:45 UTC
Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug.