RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1397045 - [fdProd] yum update of openvswitch 2.5 from 2.4 causes restart of openvswitch service that can disrupt network connectivity
Summary: [fdProd] yum update of openvswitch 2.5 from 2.4 causes restart of openvswitch...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: openvswitch
Version: 7.3
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: 7.3
Assignee: Flavio Leitner
QA Contact: Rick Alongi
URL:
Whiteboard:
: 1419159 (view as bug list)
Depends On: 1385096
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-21 13:21 UTC by Flavio Leitner
Modified: 2020-12-14 07:53 UTC (History)
11 users (show)

Fixed In Version: openvswitch-2.5.0-19.git20160727.el7fdp
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1385096
Environment:
Last Closed: 2017-01-05 20:48:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0027 0 normal SHIPPED_LIVE openvswitch bug fix update 2017-01-06 01:48:01 UTC

Comment 5 Rick Alongi 2016-11-30 14:37:01 UTC
Fix verified.  Please see testing notes below.

Thanks
Rick

Script used for test:

[root@netqe13 home]# cat bz1397045.sh 
#!/bin/bash

# Test for BZ1397045

# Function to gather detailed OVS version information
function get-ovs-ver
{
	local ovs_version=$(rpm -qi openvswitch | grep Version)
	local ovs_release=$(rpm -qi openvswitch | grep Release)
	if [[ $ovs_version ]] && [[ $ovs_release ]]; then
		echo "OVS" $ovs_version, $ovs_release
	else
		echo "Unable to gather complete OVS version information."
		return 1
	fi
}

# Install baseline openvswitch package (must be >= 2.5.0.19 to include fix for BZ1397045)
rpm -ivh http://download-node-02.eng.bos.redhat.com/brewroot/packages/openvswitch/2.5.0/19.git20160727.el7fdp/x86_64/openvswitch-2.5.0-19.git20160727.el7fdp.x86_64.rpm

echo "Baseline OVS version is: $(get-ovs-ver)"
systemctl enable openvswitch && systemctl start openvswitch
echo "Sleeping 4 minutes..."
sleep 4m
ovs_uptime1=$(systemctl status openvswitch | grep Active | awk '{print $9}' | tr -d [a-z])
echo "openvswitch service uptime is: $(systemctl status openvswitch | grep Active | awk '{print $9}')"

# Upgrade to target openvswitch package
rpm -Uvh http://download-node-02.eng.bos.redhat.com/brewroot/packages/openvswitch/2.5.0/22.git20160727.el7fdp/x86_64/openvswitch-2.5.0-22.git20160727.el7fdp.x86_64.rpm

echo "Upgraded OVS version is: $(get-ovs-ver)"
echo "Sleeping 2 minutes..."
sleep 2m
ovs_uptime2=$(systemctl status openvswitch | grep Active | awk '{print $9}' | tr -d [a-z])
echo "openvswitch service uptime is now: $(systemctl status openvswitch | grep Active | awk '{print $9}')"

# Confirm that openvswitch service was not restarted as part of the upgrade
if [[ $ovs_uptime2 -ge $ovs_uptime1 ]]; then
	echo "openvswitch service did not restart during upgrade.  Test PASSED"
else
	echo "openvswitch service restarted during upgrade.  Test FAILED"
fi


Problem observed pre-fix using 2.5.0.14 FDP as baseline without the fix (openvswitch service restarted during upgrade):

[root@netqe13 home]# ./bz1397045.sh 
Retrieving http://download-node-02.eng.bos.redhat.com/brewroot/packages/openvswitch/2.5.0/14.git20160727.el7fdp/x86_64/openvswitch-2.5.0-14.git20160727.el7fdp.x86_64.rpm
Preparing...                          ################################# [100%]
Updating / installing...
   1:openvswitch-2.5.0-14.git20160727.################################# [100%]
Baseline OVS version is: OVS Version : 2.5.0, Release : 14.git20160727.el7fdp
Created symlink from /etc/systemd/system/multi-user.target.wants/openvswitch.service to /usr/lib/systemd/system/openvswitch.service.
Sleeping 4 minutes...
openvswitch service uptime is: 4min
Retrieving http://download-node-02.eng.bos.redhat.com/brewroot/packages/openvswitch/2.5.0/22.git20160727.el7fdp/x86_64/openvswitch-2.5.0-22.git20160727.el7fdp.x86_64.rpm
Preparing...                          ################################# [100%]
Updating / installing...
   1:openvswitch-2.5.0-22.git20160727.################################# [ 50%]
Cleaning up / removing...
   2:openvswitch-2.5.0-14.git20160727.################################# [100%]
Upgraded OVS version is: OVS Version : 2.5.0, Release : 22.git20160727.el7fdp
Sleeping 2 minutes...
openvswitch service uptime is now: 2min
openvswitch service restarted during upgrade.  Test FAILED


Fix verified using 2.5.0.19 FDP as baseline with the fix (openvswitch service does not restart during upgrade):

[root@netqe13 home]# ./bz1397045.sh 
Retrieving http://download-node-02.eng.bos.redhat.com/brewroot/packages/openvswitch/2.5.0/19.git20160727.el7fdp/x86_64/openvswitch-2.5.0-19.git20160727.el7fdp.x86_64.rpm
Preparing...                          ################################# [100%]
Updating / installing...
   1:openvswitch-2.5.0-19.git20160727.################################# [100%]
Baseline OVS version is: OVS Version : 2.5.0, Release : 19.git20160727.el7fdp
Created symlink from /etc/systemd/system/multi-user.target.wants/openvswitch.service to /usr/lib/systemd/system/openvswitch.service.
Sleeping 4 minutes...
openvswitch service uptime is: 4min
Retrieving http://download-node-02.eng.bos.redhat.com/brewroot/packages/openvswitch/2.5.0/22.git20160727.el7fdp/x86_64/openvswitch-2.5.0-22.git20160727.el7fdp.x86_64.rpm
Preparing...                          ################################# [100%]
Updating / installing...
   1:openvswitch-2.5.0-22.git20160727.################################# [ 50%]
Cleaning up / removing...
   2:openvswitch-2.5.0-19.git20160727.################################# [100%]
Upgraded OVS version is: OVS Version : 2.5.0, Release : 22.git20160727.el7fdp
Sleeping 2 minutes...
openvswitch service uptime is now: 6min
openvswitch service did not restart during upgrade.  Test PASSED

Comment 8 errata-xmlrpc 2017-01-05 20:48:10 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://rhn.redhat.com/errata/RHBA-2017-0027.html

Comment 9 Matt Flusche 2017-02-07 21:43:30 UTC
*** Bug 1419159 has been marked as a duplicate of this bug. ***


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