← Back to team overview

debcrafters-packages team mailing list archive

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

 

On 25.04, after enabled the proposed channel, this issue is fixed.

u@Thames2-2:~$ apt-cache policy ubuntu-settings·
ubuntu-settings:
  Installed: 24.10.3
  Candidate: 24.10.3
  Version table:
     24.10.3.1 100
        100 http://archive.ubuntu.com/ubuntu plucky-proposed/main amd64 Packages
 *** 24.10.3 500
        500 http://archive.ubuntu.com/ubuntu plucky/main amd64 Packages
        100 /var/lib/dpkg/status

u@Thames2-2:~$ sudo cat /lib/netplan/00-network-manager-all.yaml·
# Let NetworkManager manage all devices on this system
network:
  version: 2
  renderer: NetworkManager

u@Thames2-2:~$ sudo apt install ubuntu-settings=24.10.3.1
The following package was automatically installed and is no longer required:
  grub-pc-bin
Use 'sudo apt autoremove' to remove it.

Upgrading:
  gnome-control-center-faces  ubuntu-settings

Summary:
  Upgrading: 2, Installing: 0, Removing: 0, Not Upgrading: 116
  Download size: 1,137 kB
  Space needed: 0 B / 93.3 GB available

Continue? [Y/n] Y
Get:1 http://archive.ubuntu.com/ubuntu plucky-updates/main amd64 gnome-control-center-faces all 1:48.1-1ubuntu0.1 [1,127 kB]
Get:2 http://archive.ubuntu.com/ubuntu plucky-proposed/main amd64 ubuntu-settings all 24.10.3.1 [10.2 kB]
Fetched 1,137 kB in 4s (317 kB/s)···········
(Reading database ... 180063 files and directories currently installed.)
Preparing to unpack .../gnome-control-center-faces_1%3a48.1-1ubuntu0.1_all.deb ...
Unpacking gnome-control-center-faces (1:48.1-1ubuntu0.1) over (1:48.0-1ubuntu3) ...
Preparing to unpack .../ubuntu-settings_24.10.3.1_all.deb ...
Unpacking ubuntu-settings (24.10.3.1) over (24.10.3) ...
Setting up gnome-control-center-faces (1:48.1-1ubuntu0.1) ...
Processing triggers for libglib2.0-0t64:amd64 (2.84.1-1) ...

u@Thames2-2:~$ sudo cat /lib/netplan/00-network-manager-all.yaml·
network:
  version: 2
  renderer: NetworkManager

u@Thames2-2:~$ nmcli connection delete Canonical·
Connection 'Canonical' (7590603e-47d2-42e9-ab1c-3948909d8108) successfully deleted.

u@Thames2-2:~$ sudo debsums -s
u@Thames2-2:~$ echo $?
0


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

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