[Bug 1836713] Re: upgrade of openvswitch packages resets alternative binaries to auto
This bug was fixed in the package openvswitch - 2.9.8-0ubuntu0.18.04.1~cloud0 --- openvswitch (2.9.8-0ubuntu0.18.04.1~cloud0) xenial-queens; urgency=medium . * New upstream release for the Ubuntu Cloud Archive. . openvswitch (2.9.8-0ubuntu0.18.04.1) bionic; urgency=medium . * d/openvswitch-switch{-dpdk}.prerm,postinst: Tidy case statements, only remove alternatives when package is being removed (LP: #1836713). * New upstream stable release (LP: #1912201): - debian/patches/CVE-2015-8011.patch,CVE-2020-27827.patch: Dropped, included in release. ** Changed in: cloud-archive/queens Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1836713 Title: upgrade of openvswitch packages resets alternative binaries to auto To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-archive/+bug/1836713/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1836713] Re: upgrade of openvswitch packages resets alternative binaries to auto
This bug was fixed in the package openvswitch - 2.11.5-0ubuntu0.19.04.1~cloud0 --- openvswitch (2.11.5-0ubuntu0.19.04.1~cloud0) bionic; urgency=medium . * d/openvswitch-switch{-dpdk}.prerm,postinst: Tidy with case statements, only remove alternatives when package is being removed (LP: #1836713). * New upstream point release (LP: #1912225) including security fixes for: * SECURITY UPDATE: buffer overflow decoding malformed packets in lldp - CVE-2015-8011 * SECURITY UPDATE: Externally triggered memory leak in lldp - CVE-2020-27827 ** Changed in: cloud-archive/stein Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1836713 Title: upgrade of openvswitch packages resets alternative binaries to auto To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-archive/+bug/1836713/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1836713] Re: upgrade of openvswitch packages resets alternative binaries to auto
This bug was fixed in the package openvswitch - 2.9.8-0ubuntu0.18.04.2 --- openvswitch (2.9.8-0ubuntu0.18.04.2) bionic-security; urgency=medium * SECURITY UPDATE: packet parsing vulnerability - debian/patches/CVE-2020-35498.patch: support extra padding length in lib/conntrack.c, lib/dp-packet.h, lib/flow.c, tests/classifier.at. - CVE-2020-35498 -- Marc Deslauriers Thu, 28 Jan 2021 14:49:10 -0500 ** Changed in: openvswitch (Ubuntu Bionic) Status: Fix Committed => Fix Released ** CVE added: https://cve.mitre.org/cgi-bin/cvename.cgi?name=2020-35498 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1836713 Title: upgrade of openvswitch packages resets alternative binaries to auto To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-archive/+bug/1836713/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1836713] Re: upgrade of openvswitch packages resets alternative binaries to auto
Note: I think the testcase has a typo for the SRU, where the first and second 'update-alternatives --query' should both have: Value: /usr/lib/openvswitch-switch-dpdk/ovs-vswitchd-dpdk -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1836713 Title: upgrade of openvswitch packages resets alternative binaries to auto To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-archive/+bug/1836713/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1836713] Re: upgrade of openvswitch packages resets alternative binaries to auto
Verified successfully ** Attachment added: "ovs-1836713-verification.txt" https://bugs.launchpad.net/ubuntu/+source/openvswitch/+bug/1836713/+attachment/5460120/+files/ovs-1836713-verification.txt ** Tags removed: verification-needed verification-needed-bionic verification-queens-needed verification-stein-needed ** Tags added: verification-done verification-done-bionic verification-queens-done verification-stein-done -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1836713 Title: upgrade of openvswitch packages resets alternative binaries to auto To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-archive/+bug/1836713/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1836713] Re: upgrade of openvswitch packages resets alternative binaries to auto
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 Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1836713 Title: upgrade of openvswitch packages resets alternative binaries to auto To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-archive/+bug/1836713/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1836713] Re: upgrade of openvswitch packages resets alternative binaries to auto
** Changed in: cloud-archive/stein Status: Triaged => In Progress ** Changed in: cloud-archive/stein Assignee: (unassigned) => James Page (james-page) ** Changed in: cloud-archive/queens Status: Triaged => In Progress ** Changed in: cloud-archive/queens Assignee: (unassigned) => James Page (james-page) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1836713 Title: upgrade of openvswitch packages resets alternative binaries to auto To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-archive/+bug/1836713/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1836713] Re: upgrade of openvswitch packages resets alternative binaries to auto
** Changed in: cloud-archive/train Status: Triaged => Fix Released ** Description changed: [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. - [Regression Potential] + 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. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1836713 Title: upgrade of openvswitch packages resets alternative binaries to auto To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-archive/+bug/1836713/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1836713] Re: upgrade of openvswitch packages resets alternative binaries to auto
Upgrading an install that exhibits this bug is a major trip-hazard, as the act of upgrading the package to the new version will call the broken prerm to execute, resulting in the -dpdk binary being disabled again. 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. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1836713 Title: upgrade of openvswitch packages resets alternative binaries to auto To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-archive/+bug/1836713/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1836713] Re: upgrade of openvswitch packages resets alternative binaries to auto
** Description changed: - Upgrading and existing openvswitch installation which has been manually - configured to use the DPDK alternative binary using: + [Impact] + Package upgrades on installations using the dpdk binary will be automatically switched back to the non-dpdk binary on upgrade. - sudo update-alternatives --set ovs-vswitchd /usr/lib/openvswitch- + 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 + sudo apt install --reinstall openvswitch-switch-dpdk + + [Regression Potential] + + [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. + The prerm maintainer scripts always remove the alternatives, which + purges any manual setting done of the binaries. ** Also affects: cloud-archive Importance: Undecided Status: New ** Also affects: cloud-archive/train Importance: Undecided Status: New ** Also affects: cloud-archive/queens Importance: Undecided Status: New ** Also affects: cloud-archive/stein Importance: Undecided Status: New ** Changed in: cloud-archive Status: New => Fix Released ** Changed in: cloud-archive/queens Status: New => Triaged ** Changed in: cloud-archive/stein Status: New => Triaged ** Changed in: cloud-archive/train Status: New => Triaged ** Changed in: openvswitch (Ubuntu Bionic) Assignee: (unassigned) => James Page (james-page) ** Changed in: openvswitch (Ubuntu Bionic) Status: Triaged => In Progress ** Description changed: [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 + sudo update-alternatives --set ovs-vswitchd /usr/lib/openvswitch-switch-dpdk/ovs-vswitchd-dpdk sudo apt install --reinstall openvswitch-switch-dpdk [Regression Potential] [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. ** Description changed: [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] [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:
[Bug 1836713] Re: upgrade of openvswitch packages resets alternative binaries to auto
This broke several customer Bionic DPDK based clouds today. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1836713 Title: upgrade of openvswitch packages resets alternative binaries to auto To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/openvswitch/+bug/1836713/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1836713] Re: upgrade of openvswitch packages resets alternative binaries to auto
** Changed in: openvswitch (Ubuntu Disco) Status: Triaged => Won't Fix -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1836713 Title: upgrade of openvswitch packages resets alternative binaries to auto To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/openvswitch/+bug/1836713/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1836713] Re: upgrade of openvswitch packages resets alternative binaries to auto
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 Fri, 06 Sep 2019 09:46:28 +0100 ** Changed in: openvswitch (Ubuntu Eoan) Status: In Progress => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1836713 Title: upgrade of openvswitch packages resets alternative binaries to auto To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/openvswitch/+bug/1836713/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1836713] Re: upgrade of openvswitch packages resets alternative binaries to auto
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 ** Changed in: openvswitch (Ubuntu) Importance: Undecided => High ** Also affects: openvswitch (Ubuntu Bionic) Importance: Undecided Status: New ** Also affects: openvswitch (Ubuntu Eoan) Importance: High Status: Triaged ** Also affects: openvswitch (Ubuntu Disco) Importance: Undecided Status: New ** Changed in: openvswitch (Ubuntu Eoan) Assignee: (unassigned) => 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 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1836713 Title: upgrade of openvswitch packages resets alternative binaries to auto To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/openvswitch/+bug/1836713/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs