Bug 2182330

Summary: Reapply on external managed interface got ignored
Product: Red Hat Enterprise Linux 8 Reporter: Gris Ge <fge>
Component: NetworkManagerAssignee: NetworkManager Development Team <nm-team>
Status: CLOSED MIGRATED QA Contact: Desktop QE <desktop-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.8CC: bgalvani, lrintel, rkhan, sfaye, sukulkar, till
Target Milestone: rcKeywords: MigratedToJIRA, Regression, Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-17 09:54:22 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:
Attachments:
Description Flags
NetworkManager trace log none

Description Gris Ge 2023-03-28 09:09:15 UTC
Description of problem:

Give a dummy interface created by ip command with two ip addresses
When user modified the in-memory dummy connection of NetworkManager and run reapply
Then user are expecting IP address of dummy interface been preserved in NetworkManager as persistent configuration.

In nmstate state CI we noticed the IP address might(10% chance) got purged after the reapply action.

Version-Release number of selected component (if applicable):
NetworkManager-1.43.4-32057.copr.0a02995175.el8.x86_64

How reproducible:
10%

Steps to Reproduce:
1. git clone https://github.com/nmstate/nmstate.git
2. sudo dnf install python3-pytest nmstate -y
3. git checkout nmstate-1.4
4. sudo dnf install `./packaging/make_rpm.sh` -y
5. cd nmstate/tests/integration; 
6. sudo pytest-3 -vvv -k test_perserve_ip_order_of_external_managed_nic
7. Retry above command till it fail manually or using a `for` look.

Actual results:

Test case fail complaining about index error

Expected results:

No failure

Additional info:

I tried 100 times on NetworkManager-1.40.16-1.el8.x86_64 , no failure.

I tried 100 times the same version on RHEL 9.2, no failure(but nmstate is different there).

Comment 1 Gris Ge 2023-03-28 09:35:20 UTC
Created attachment 1954120 [details]
NetworkManager trace log

Comment 2 Gris Ge 2023-03-28 09:36:49 UTC
Tried to convert above nmstate CI test case into script using nmcli. Not reproduce-able