upgrade of openvswitch packages resets alternative binaries to auto

Bug #1836713 reported by James Page on 2019-07-16
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openvswitch (Ubuntu)
Status tracked in Eoan
Bionic
High
Unassigned
Disco
High
Unassigned
Eoan
High
James Page

Bug Description

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.

James Page (james-page) wrote :

This is a somewhat tricky issue as the alternative removal is done in the prerm script of the currently installed package version; so we can fix it for future updates, but the act of fixing it will cause any -dpdk based installations to revert back to the non-dpdk version of the binary.

Changed in openvswitch (Ubuntu):
status: New → Triaged
importance: Undecided → High
Changed in openvswitch (Ubuntu Eoan):
assignee: nobody → James Page (james-page)
Changed in openvswitch (Ubuntu Disco):
importance: Undecided → High
Changed in openvswitch (Ubuntu Bionic):
importance: Undecided → High
Changed in openvswitch (Ubuntu Disco):
status: New → Triaged
Changed in openvswitch (Ubuntu Bionic):
status: New → Triaged
Changed in openvswitch (Ubuntu Eoan):
status: Triaged → In Progress
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openvswitch - 2.12.0~git20190903.1cdf291dc-0ubuntu1

---------------
openvswitch (2.12.0~git20190903.1cdf291dc-0ubuntu1) eoan; urgency=medium

  * New upstream snapshot from 2.12 branch.
  * d/p/0001-acinclude-Also-use-LIBS-from-dpkg-pkg-config.patch: Drop,
    included upstream.
  * d/control: Bumped Standards-Version to 4.4.0.
  * d/control,rules: Drop Python 2 support.
  * d/rules: Disable testing of DPDK build on arm64 as builders don't
    have the required crc32 CPU feature.
  * d/control: Version BD for libdpdk-dev to ensure buid without overlinking.

 -- James Page <email address hidden> Fri, 06 Sep 2019 09:46:28 +0100

Changed in openvswitch (Ubuntu Eoan):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers