Bug 1773913

Summary: It is better not use hard code "System $DEFAULT DEVICE" for OVS configuration script
Product: Container Native Virtualization (CNV) Reporter: Yan Du <yadu>
Component: NetworkingAssignee: Igor Bezukh <ibezukh>
Status: CLOSED ERRATA QA Contact: Yan Du <yadu>
Severity: high Docs Contact:
Priority: high    
Version: 2.2.0CC: alkaplan, atragler, cnv-qe-bugs, danken, ibezukh, ncredi, phoracek
Target Milestone: ---   
Target Release: 2.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: cluster-network-addons-operator:v2.2.0-6 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-01-30 16:27:30 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 Yan Du 2019-11-19 10:24:10 UTC
Description of problem:
It is better not use hard code "System $DEFAULT DEVICE" for OVS configuration script

Version-Release number of selected component (if applicable):
CNV2.2

How reproducible:
Always

Steps to Reproduce:
1. Run the ovs configuration script on the host


Actual results:
For some hosts, such as dell-r740, there is no "System em1" connection

eg:
# nmcli conn --active
NAME                  UUID                                  TYPE           DEVICE     
em1                   375cc4ca-dea3-47e5-a08b-3133a5cb7144  ethernet       em1        
em2                   b436b43e-3c71-4cd9-9677-3c2bf4f1c724  ethernet       em2       
       
# nmcli conn down "System em1"
Error: 'System em1' is not an active connection.
Error: no active connection provided.


But the current script is working for some hosts, such as: dell-r730
eg: 
# nmcli conn
NAME        UUID                                  TYPE      DEVICE 
System em1  30c54c24-c3f6-4ecd-b2c1-8a06a9846107  ethernet  em1  


Expected results:
It is better to make the script to fit different kind of hosts


Additional info:

Comment 1 Nelly Credi 2019-11-25 08:08:57 UTC
please add fixed in version

Comment 2 Yan Du 2019-12-01 13:52:46 UTC
The issue have been fixed after adding PROFILE_NAME in the script.

Comment 3 Igor Bezukh 2020-01-07 13:10:27 UTC
(In reply to Nelly Credi from comment #1)
> please add fixed in version

Added.

BR
Igor

Comment 5 errata-xmlrpc 2020-01-30 16:27:30 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/RHEA-2020:0307