openvswitch-switch package upgrades restart daemons multiple times
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openvswitch (Ubuntu) |
Fix Released
|
High
|
James Page | ||
Bionic |
Fix Released
|
High
|
James Page | ||
Cosmic |
Won't Fix
|
High
|
Unassigned | ||
Disco |
Fix Released
|
High
|
James Page |
Bug Description
[Impact]
OVS daemons are restarted multiple times on package upgrade resulting in a protracted period of network pause for OVS management network objects due to multiple restarts.
[Test Case]
Upgrade openvswitch-switch package/
Examine systemd journal - ovsdb-server and ovs-vswitchd get restarted multiple times in quick session
[Regression Potential]
Low - Ubuntu has had this fix in packaging since Disco with no reported adverse effects.
[Original Bug Report]
When the openvswitch-switch package is upgraded, the various daemons get restarted multiple times (see maintainer script below):
# Automatically added by dh_systemd_
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
if [ -d /run/systemd/system ]; then
systemctl --system daemon-reload >/dev/null || true
if [ -n "$2" ]; then
else
fi
fi
fi
# End automatically added section
# Automatically added by dh_systemd_
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
if [ -d /run/systemd/system ]; then
systemctl --system daemon-reload >/dev/null || true
if [ -n "$2" ]; then
fi
fi
fi
# End automatically added section
# Automatically added by dh_systemd_
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
if [ -d /run/systemd/system ]; then
systemctl --system daemon-reload >/dev/null || true
if [ -n "$2" ]; then
fi
fi
fi
# End automatically added section
# Automatically added by dh_installinit/
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
if [ -x "/etc/init.
update-rc.d openvswitch-switch defaults >/dev/null
if [ -n "$2" ]; then
else
fi
invoke-rc.d openvswitch-switch $_dh_action || exit 1
fi
fi
# End automatically added section
This results in a extended period of network loss for OVS ports - really the only one that is required is the restart of openvswitch-switch (which covers the other two as depends anyway).
ProblemType: Bug
DistroRelease: Ubuntu 19.04
Package: openvswitch-switch 2.11.0-0ubuntu1
ProcVersionSign
Uname: Linux 5.0.0-8-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.10-0ubuntu25
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Fri Apr 5 08:24:32 2019
InstallationDate: Installed on 2018-10-18 (168 days ago)
InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64 (20181017.3)
SourcePackage: openvswitch
UpgradeStatus: Upgraded to disco on 2019-03-17 (18 days ago)
CVE References
Changed in openvswitch (Ubuntu Bionic): | |
status: | New → Confirmed |
Changed in openvswitch (Ubuntu Cosmic): | |
status: | New → Confirmed |
Changed in openvswitch (Ubuntu Bionic): | |
importance: | Undecided → High |
Changed in openvswitch (Ubuntu Cosmic): | |
importance: | Undecided → High |
Changed in openvswitch (Ubuntu Disco): | |
status: | Triaged → In Progress |
Changed in openvswitch (Ubuntu Bionic): | |
status: | Confirmed → Triaged |
Changed in openvswitch (Ubuntu Cosmic): | |
status: | Confirmed → Triaged |
Changed in openvswitch (Ubuntu Cosmic): | |
status: | Triaged → Won't Fix |
This bug was fixed in the package openvswitch - 2.11.0-0ubuntu2
---------------
openvswitch (2.11.0-0ubuntu2) disco; urgency=medium
* d/rules: Skip execution of dh_systemd_start for openvswitch-switch
subunits avoiding multiple restarts during package configuration
(LP: #1823295).
-- James Page <email address hidden> Fri, 05 Apr 2019 17:07:11 +0100