Bug 1798947

Summary: Random failure on NM_ACTIVE_CONNECTION_STATE_REASON_DEVICE_DISCONNECTED when creating team interface
Product: Red Hat Enterprise Linux 8 Reporter: Gris Ge <fge>
Component: NetworkManagerAssignee: Beniamino Galvani <bgalvani>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: low Docs Contact:
Priority: low    
Version: 8.2CC: acardace, atragler, bgalvani, lrintel, rkhan, sukulkar, thaller, vbenes
Target Milestone: rc   
Target Release: 8.2   
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: 2020-04-28 16:54:14 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:
Bug Depends On:    
Bug Blocks: 1738136    
Attachments:
Description Flags
team0_up.yml
none
team0_absent.yml
none
System logs with NM trace enabled none

Description Gris Ge 2020-02-06 11:31:02 UTC
Description of problem:

Got failure when creating team interface via nmstatectl.

2020-02-06 17:54:00,729 root         ERROR    NM main-loop aborted: Connection activation failed on team0: reason=<enum NM_ACTIVE_CONNECTION_STATE_REASON_DEVICE_DISCONNECTED of type NM.ActiveConnectionStateReason>


Version-Release number of selected component (if applicable):
NetworkManager-team-1.22.6-1.el8.x86_64
teamd-1.29-1.el8.x86_64
libteam-1.29-1.el8.x86_64
nmstate-0.2.3-1.el8.noarch

How reproducible:
1%

Steps to Reproduce:

for x in `seq 1 100`; do
    sudo ncl set team0_up.yml && \
    sudo ncl set team0_absent.yml && \
    sleep 1 || \
    break;
    echo $x;
done;
echo $x;

Actual results:
Got failure of NM_ACTIVE_CONNECTION_STATE_REASON_DEVICE_DISCONNECTED

Expected results:
No failure

Additional info:
At the time this failure happens, I used:

nm_dev = NM.Client.get_device_by_iface(devname)
new_ac = nm_dev.get_active_connection()

The new_ac is identical to current NM.ActiveConnection.

Comment 1 Gris Ge 2020-02-06 11:31:54 UTC
Created attachment 1658144 [details]
team0_up.yml

Comment 2 Gris Ge 2020-02-06 11:32:21 UTC
Created attachment 1658155 [details]
team0_absent.yml

Comment 3 Gris Ge 2020-02-06 11:32:55 UTC
Created attachment 1658156 [details]
System logs with NM trace enabled

Comment 9 Vladimir Benes 2020-02-21 12:13:30 UTC
covered by the nmstate test executing nmstate's CI.

Comment 11 errata-xmlrpc 2020-04-28 16:54:14 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:1847