Bug 1773913 - It is better not use hard code "System $DEFAULT DEVICE" for OVS configuration script
Summary: It is better not use hard code "System $DEFAULT DEVICE" for OVS configuration...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Networking
Version: 2.2.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 2.2.0
Assignee: Igor Bezukh
QA Contact: Yan Du
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-11-19 10:24 UTC by Yan Du
Modified: 2020-01-30 16:27 UTC (History)
7 users (show)

Fixed In Version: cluster-network-addons-operator:v2.2.0-6
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-01-30 16:27:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2020:0307 0 None None None 2020-01-30 16:27:42 UTC

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


Note You need to log in before you can comment on or make changes to this bug.