Bug 1741440

Summary: Race problem on slave been deactivated by master
Product: Red Hat Enterprise Linux 8 Reporter: Gris Ge <fge>
Component: nmstateAssignee: Gris Ge <fge>
Status: CLOSED ERRATA QA Contact: Mingyu Shi <mshi>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.1CC: jiji, jishi, network-qe, wchadwic
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: 8.1   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: nmstate-0.0.8-12.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-05 20:52:18 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
eth1_up.yml
none
br0_up.yml none

Description Gris Ge 2019-08-15 07:23:25 UTC
Description of problem:

When create a bridge or bond, might got failure like said slave
interface DEVICE_DISCONNECTED.


Version-Release number of selected component (if applicable):
nmstate-0.0.8-3.el8

How reproducible:
1 out of 1000 or worse

Steps to Reproduce:

 * Download attached yaml files and run below commands:

for x in `seq 1 1000`; do 
    sudo ncl set eth1_up.yml && \
        sudo ncl set br0_up.yml && \
        sudo nmcli c del br0 eth1 && sleep 1 || break;

    echo $x; 
done


Actual results:

Got failure said activation failed with reason DEVICE_DISCONNECTED

Expected results:

all pass

Additional info:

I hit this problem after 454 retry.

Comment 1 Gris Ge 2019-08-15 07:24:38 UTC
Created attachment 1604007 [details]
eth1_up.yml

Comment 2 Gris Ge 2019-08-15 07:25:11 UTC
Created attachment 1604008 [details]
br0_up.yml

Comment 3 Gris Ge 2019-08-19 03:31:33 UTC
This problem also exists when configuring static IPv6 address with routes.

Comment 7 Gris Ge 2019-09-02 03:19:59 UTC
(In reply to Gris Ge from comment #3)
> This problem also exists when configuring static IPv6 address with routes.

This is not caused by this bug. Please ignore.

Comment 9 Mingyu Shi 2019-09-09 05:38:57 UTC
[root@ibm-x3650m4-02 ~]0# uname -a
Linux ibm-x3650m4-02.rhts.eng.pek2.redhat.com 4.18.0-141.el8.x86_64 #1 SMP Fri Aug 30 15:27:07 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

[root@ibm-x3650m4-02 ~]0# rpm -q nmstate
nmstate-0.0.8-12.el8.noarch

[root@ibm-x3650m4-02 ~]0# cat eth1_up.yml 
---
interfaces:
  - name: eth1
    type: ethernet
    state: up
[root@ibm-x3650m4-02 ~]0# cat br0_up.yml 
---
interfaces:
  - name: eth1
    type: ethernet
    state: up
  - name: br0
    type: linux-bridge
    state: up
    bridge:
      port:
        - name: eth1

# run script below:
for x in `seq 1 1000`; do 
    nmstatectl set eth1_up.yml && \
        nmstatectl set br0_up.yml && \
        nmcli c del br0 eth1 && sleep 1 || break;

    echo $x; 
done

I've done twice, no reproduction in both new and old version. Will cover it by automation.

Comment 11 errata-xmlrpc 2019-11-05 20:52:18 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-2019:3347