Bug 2062666

Summary: [4.10.z backport] configure-ovs: don't restart networking if not necessary
Product: OpenShift Container Platform Reporter: OpenShift BugZilla Robot <openshift-bugzilla-robot>
Component: NetworkingAssignee: Jaime CaamaƱo Ruiz <jcaamano>
Networking sub component: ovn-kubernetes QA Contact: Ross Brattain <rbrattai>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: medium CC: rbrattai, rravaiol
Version: 4.10   
Target Milestone: ---   
Target Release: 4.10.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2070490 (view as bug list) Environment:
Last Closed: 2022-04-08 05:04:20 UTC Type: ---
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: 2062645    
Bug Blocks: 2070490    

Comment 2 Ross Brattain 2022-03-30 00:25:11 UTC
4.10.0-0.ci.test-2022-03-29-224847-ci-ln-ts6z26t-latest


rebooted node to also check `rollback_nm`


configure-ovs.sh[1550] + for file in "${files[@]}"
configure-ovs.sh[1550] ++ basename ovs-port-phys0.nmconnection
configure-ovs.sh[1550] + file=ovs-port-phys0.nmconnection
configure-ovs.sh[1550] + file_path=/etc/NetworkManager/system-connections/ovs-port-phys0.nmconnection
configure-ovs.sh[1550] + '[' -f /etc/NetworkManager/system-connections/ovs-port-phys0.nmconnection ']'
configure-ovs.sh[1550] + rm -f /etc/NetworkManager/system-connections/ovs-port-phys0.nmconnection
configure-ovs.sh[1550] + echo 'Removed nmconnection file /etc/NetworkManager/system-connections/ovs-port-phys0.nmconnection'
configure-ovs.sh[1550] Removed nmconnection file /etc/NetworkManager/system-connections/ovs-port-phys0.nmconnection
configure-ovs.sh[1550] + nm_config_changed=1
configure-ovs.sh[1550] + ovs-vsctl --timeout=30 --if-exists del-br br-ex
configure-ovs.sh[1550] + '[' -d /sys/class/net/br-ex1 ']'
configure-ovs.sh[1550] + echo 'OVS configuration successfully reverted'
configure-ovs.sh[1550] OVS configuration successfully reverted
configure-ovs.sh[1550] + reload_nm
configure-ovs.sh[1550] + '[' 1 -eq 0 ']'
configure-ovs.sh[1550] + nm_config_changed=0
configure-ovs.sh[1550] + echo 'Reloading NetworkManager after configuration changes...'
configure-ovs.sh[1550] Reloading NetworkManager after configuration changes...
configure-ovs.sh[1550] + nmcli network off
configure-ovs.sh[1550] + systemctl restart NetworkManager
configure-ovs.sh[1550] + nmcli network on
configure-ovs.sh[1550] + nm-online -s -t 60
configure-ovs.sh[1550] [234B blob data]
configure-ovs.sh[1550] + echo 'NetworkManager has activated all suitable profiles after reload'
configure-ovs.sh[1550] NetworkManager has activated all suitable profiles after reload
configure-ovs.sh[1550] + nm-online -t 0
configure-ovs.sh[1550] + echo 'NetworkManager has connectivity after reload'
configure-ovs.sh[1550] NetworkManager has connectivity after reload
configure-ovs.sh[1550] + print_state

Comment 7 errata-xmlrpc 2022-04-08 05:04:20 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 (Important: OpenShift Container Platform 4.10.8 bug fix and security update), 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/RHSA-2022:1162