← Back to team overview

debcrafters-packages team mailing list archive

[Bug 2078759] Re: Ability to use comments in YAML generated by Netplan

 

Hello Kai-Chuan, or anyone else affected,

Accepted ubuntu-settings into plucky-proposed. The package will build
now and be available at https://launchpad.net/ubuntu/+source/ubuntu-
settings/24.10.3.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-
plucky to verification-done-plucky. If it does not fix the bug for you,
please add a comment stating that, and change the tag to verification-
failed-plucky. 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.

** Tags added: verification-needed verification-needed-plucky

** Tags added: verification-needed-noble

-- 
You received this bug notification because you are a member of
Debcrafters packages, which is subscribed to ubuntu-settings in Ubuntu.
https://bugs.launchpad.net/bugs/2078759

Title:
  Ability to use comments in YAML generated by Netplan

Status in Netplan:
  Triaged
Status in OEM Priority Project:
  Fix Committed
Status in netplan.io package in Ubuntu:
  Invalid
Status in ubuntu-settings package in Ubuntu:
  Fix Released
Status in netplan.io source package in Noble:
  Invalid
Status in ubuntu-settings source package in Noble:
  Fix Committed
Status in netplan.io source package in Plucky:
  Invalid
Status in ubuntu-settings source package in Plucky:
  Fix Committed

Bug description:
  [ Impact ]

   * This is a hardware enablement SRU.

   * The Desktop certification suite for noble requires the command
  `debsums -c` to succeed. However, it fails because of this bug.

   * The root cause is that nmcli modifies the file
  `lib/netplan/00-network-manager-all.yaml`. For that it uses a library
  that does not handles the comments correctly, hence it removes the
  comment that lies on top of the file. Then debsums fails.

  * Since the certification suite does involve network test that cause
  nmcli, the debsums ends up failing.

  [ Test Plan ]

   1. Install the package from proposed
   2. Run the automated checkbox network test from the Desktop Preload Suite (24.04)

  [ Where problems could occur ]

   * We are simply removing a comment that will get removed by nmcli otherwise, so  risks are really, really low.
   * If the file gets invalidated, the network will not be reached anymore and the test suite will fail.

  [ Other Info ]

   * Ideally the fix should be in nmcli. But it was set as low priority,
  and this thing is a very easy way to allow us to certify the devices
  without risks.

  
  Original description:

  On ubuntu desktop 24.04 image, run the operations below

  1. $ nmcli d wifi connect <SSID> password <password>
  2. $ nmcli c delete <SSID>
  3. $ sudo debsums -s

  Then the error is happened debsums: changed file
  /lib/netplan/00-network-manager-all.yaml (from ubuntu-settings
  package)

  it seems the netplan update the file belonged to ubuntu-settings that cause the debsums failed.
  ---
  ProblemType: Bug
  ApportVersion: 2.28.1-0ubuntu3.1
  Architecture: amd64
  CasperMD5CheckMismatches: ./casper/initrd ./casper/vmlinuz ./casper/minimal.standard.live.hotfix.squashfs ./casper/minimal.standard.hotfix.squashfs ./casper/minimal.hotfix.squashfs ./boot/grub/grub.cfg
  CasperMD5CheckResult: fail
  DistributionChannelDescriptor:
   # This is the distribution channel descriptor for Ubuntu 24.04 for Dell
   # For more information see http://wiki.ubuntu.com/DistributionChannelDescriptor
   canonical-oem-somerville-noble-oem-24.04a-next-20240902-67
  DistroRelease: Ubuntu 24.04
  InstallationDate: Installed on 2024-09-02 (1 days ago)
  InstallationMedia: Ubuntu OEM 24.04.1 LTS "Noble Numbat" - Release amd64 (20240829)
  Package: netplan.io 1.0.1-1ubuntu2~24.04.1
  PackageArchitecture: amd64
  ProcVersionSignature: User Name 6.8.0-1012.12-oem 6.8.12
  Tags: noble
  Uname: Linux 6.8.0-1012-oem x86_64
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm cdrom dip lxd sudo
  _MarkForUpload: True

To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/2078759/+subscriptions