[Bug 1970773] [NEW] Verify YAML configuration after package upgrades

Lukas Märdian 1970773 at bugs.launchpad.net
Thu Apr 28 16:12:37 UTC 2022


Public bug reported:

maybe netplan systemd generator should spit out stderr to /run
somewhere, and then later have a unit that would cat that file and exit
1, to have a failed unit on boot with errors in the journal, something
like netplan-boot-generator-failed.service

Or another approach would be to have a .postinst maintainer script that
would copy the current netplan YAML configuration from
/{usr/lib,etc,run}/netplan/*.yaml to /tmp/SOME/ROOTDIR/ and then try to
apply "/usr/lib/netplan/generate -r /tmp/SOME/ROOTDIR" to check for any
parsing issues.

** Affects: netplan.io (Ubuntu)
     Importance: Wishlist
         Status: New


** Tags: fr-2317

** Changed in: netplan.io (Ubuntu)
   Importance: Undecided => Wishlist

** Tags added: fr-2317

-- 
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/1970773

Title:
  Verify YAML configuration after package upgrades

Status in netplan.io package in Ubuntu:
  New

Bug description:
  maybe netplan systemd generator should spit out stderr to /run
  somewhere, and then later have a unit that would cat that file and
  exit 1, to have a failed unit on boot with errors in the journal,
  something like netplan-boot-generator-failed.service

  Or another approach would be to have a .postinst maintainer script
  that would copy the current netplan YAML configuration from
  /{usr/lib,etc,run}/netplan/*.yaml to /tmp/SOME/ROOTDIR/ and then try
  to apply "/usr/lib/netplan/generate -r /tmp/SOME/ROOTDIR" to check for
  any parsing issues.

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




More information about the foundations-bugs mailing list