[Bug 1877643] Re: netplan.io 0.98 introduced more strict parsing of bonding mode, causing failures at boot for existing systems

Launchpad Bug Tracker 1877643 at bugs.launchpad.net
Thu May 28 17:23:39 UTC 2020


This bug was fixed in the package netplan.io - 0.99-0ubuntu3~18.04.2

---------------
netplan.io (0.99-0ubuntu3~18.04.2) bionic; urgency=medium

  * Add d/p/Fix-invalid-bond-mode-SRU-regression-LP-1877643.patch (LP: #1877643)
    - Fix regression in strict bond mode checking, introduced in netplan v0.98
    - https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/1877643

 -- Lukas Märdian <lukas.maerdian at canonical.com>  Mon, 11 May 2020
10:00:09 +0200

** Changed in: netplan.io (Ubuntu Bionic)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to netplan.io in Ubuntu.
Matching subscriptions: foundations-bugs
https://bugs.launchpad.net/bugs/1877643

Title:
  netplan.io 0.98 introduced more strict parsing of bonding mode,
  causing failures at boot for existing systems

Status in netplan.io package in Ubuntu:
  Invalid
Status in netplan.io source package in Bionic:
  Fix Released

Bug description:
  As noted in
  https://github.com/CanonicalLtd/netplan/pull/97#issuecomment-625868233
  , netplan.io 0.98 has introduced stricter validation rules for netplan
  yaml compared to previous versions.  This causes previously accepted
  netplan yaml to fail to validate and therefore fail to apply,
  regressing users' networks after SRU upgrade.

  === SRU ===
  [Impact]
  This release contains one regression bug-fix for the bionic stable release and we would like to make sure all of our supported customers have access to these improvements.

   * Do not reject invalid bonding mode config (LP: #1877643)
     - Print a warning instead on bionic
     - Only affects the bionic series

  See the changelog entry below for a full list of changes and bugs.

  [Test Case]
  The following development and SRU process was followed:
  https://wiki.ubuntu.com/NetplanUpdates

  Netplan contains an extensive integration test suite that is ran using
  the SRU package for each releases. This test suite's results are available here:
  http://autopkgtest.ubuntu.com/packages/n/netplan.io

  A successful run is required before the proposed netplan package
  can be let into -updates.

  The netplan team will be in charge of attaching the artifacts and console
  output of the appropriate run to the bug.  Netplan team members will not
  mark ‘verification-done’ until this has happened.

  [Regression Potential]
  In order to mitigate the regression potential, the results of the
  aforementioned integration tests are attached to this bug.

  Special attention is given to tests/generator/test_bonds.py ->
  test_bond_invalid_mode (unit test at compile time), which was adopted
  to *not* reject an invalid bond config, but print a "WARNING: unknown
  bond mode '%s'" instead.

  https://slyon.de/files/netplan/SRU-0.99b2/bionic_amd64_log
  https://slyon.de/files/netplan/SRU-0.99b2/bionic_arm64_log
  https://slyon.de/files/netplan/SRU-0.99b2/bionic_armhf_log
  https://slyon.de/files/netplan/SRU-0.99b2/bionic_i386_log
  https://slyon.de/files/netplan/SRU-0.99b2/bionic_ppc64el_log
  https://slyon.de/files/netplan/SRU-0.99b2/bionic_s390x_log

  [Discussion]
  It may be appropriate from an upstream POV to make the validation of input more strict over time, but it is never acceptable for an SRU to regress the interpretation of user config in this manner and cause config to fail to apply.  This PR either needs to be reverted for bionic, or it needs to be modified to treat unknown modes as a warning instead of a failure.

  [Changelog]
  debian/patches/Fix-invalid-bond-mode-SRU-regression-LP-1877643.patch:
  [PATCH] Fix invalid bond mode SRU regression (LP: #1877643)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/1877643/+subscriptions



More information about the foundations-bugs mailing list