[Bug 1836713] Re: upgrade of openvswitch packages resets alternative binaries to auto
Brian Murray
1836713 at bugs.launchpad.net
Tue Jan 19 21:03:21 UTC 2021
Hello James, or anyone else affected,
Accepted openvswitch into bionic-proposed. The package will build now
and be available at
https://launchpad.net/ubuntu/+source/openvswitch/2.9.8-0ubuntu0.18.04.1
in a few hours, and then in the -proposed repository.
Please help us by testing this new package. See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed. Your feedback will aid us getting this
update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
bionic to verification-done-bionic. If it does not fix the bug for you,
please add a comment stating that, and change the tag to verification-
failed-bionic. In either case, without details of your testing we will
not be able to proceed.
Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in
advance for helping!
N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.
** Changed in: openvswitch (Ubuntu Bionic)
Status: In Progress => Fix Committed
** Tags added: verification-needed verification-needed-bionic
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to openvswitch in Ubuntu.
https://bugs.launchpad.net/bugs/1836713
Title:
upgrade of openvswitch packages resets alternative binaries to auto
Status in Ubuntu Cloud Archive:
Fix Released
Status in Ubuntu Cloud Archive queens series:
In Progress
Status in Ubuntu Cloud Archive stein series:
In Progress
Status in Ubuntu Cloud Archive train series:
Fix Released
Status in openvswitch package in Ubuntu:
Fix Released
Status in openvswitch source package in Bionic:
Fix Committed
Status in openvswitch source package in Disco:
Won't Fix
Status in openvswitch source package in Eoan:
Fix Released
Bug description:
[Impact]
Package upgrades on installations using the dpdk binary will be automatically switched back to the non-dpdk binary on upgrade.
This will break all configured networking within openvswitch.
[Test Case]
sudo apt install openvswitch-switch-dpdk
sudo update-alternatives --set ovs-vswitchd /usr/lib/openvswitch-switch-dpdk/ovs-vswitchd-dpdk
sudo update-alternatives --query ovs-vswitchd
Name: ovs-vswitchd
Link: /usr/sbin/ovs-vswitchd
Status: manual
Best: /usr/lib/openvswitch-switch/ovs-vswitchd
Value: /usr/lib/openvswitch-switch-dpdk/ovs-vswitchd-dpdk
Alternative: /usr/lib/openvswitch-switch-dpdk/ovs-vswitchd-dpdk
Priority: 50
Alternative: /usr/lib/openvswitch-switch/ovs-vswitchd
Priority: 100
sudo apt install --reinstall openvswitch-switch-dpdk
sudo update-alternatives --query ovs-vswitchd
Name: ovs-vswitchd
Link: /usr/sbin/ovs-vswitchd
Status: auto
Best: /usr/lib/openvswitch-switch/ovs-vswitchd
Value: /usr/lib/openvswitch-switch/ovs-vswitchd
Alternative: /usr/lib/openvswitch-switch-dpdk/ovs-vswitchd-dpdk
Priority: 50
Alternative: /usr/lib/openvswitch-switch/ovs-vswitchd
Priority: 100
[Regression Potential]
Low - the fix was been in Ubuntu since Eoan and the maintainer script usage of update-alternatives was broken since the -dpdk binary was introducted.
The main challenge is actually upgrading a -dpdk installation without
disabling the -dpdk binary with the existing prerm script.
To avoid this:
sudo sed -i "/update-alternatives/d" /var/lib/dpkg/info/openvswitch-
switch-dpdk.prerm
before completing the package upgrade thus ensuring the -dpdk version
of the binary never gets removed.
[Original Bug Report]
Upgrading and existing openvswitch installation which has been manually configured to use the DPDK alternative binary using:
sudo update-alternatives --set ovs-vswitchd /usr/lib/openvswitch-
switch-dpdk/ovs-vswitchd-dpdk
results in the ovs-vswitchd being reset back to 'auto':
Setting up openvswitch-switch (2.11.0-0ubuntu2~cloud0) ...
update-alternatives: using /usr/lib/openvswitch-switch/ovs-vswitchd to provide /usr/sbin/ovs-vswitchd (ovs-vswitchd) in auto mode
The prerm maintainer scripts always remove the alternatives, which
purges any manual setting done of the binaries.
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1836713/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list