debcrafters-packages team mailing list archive
-
debcrafters-packages team
-
Mailing list archive
-
Message #03251
[Bug 2078759] Re: Ability to use comments in YAML generated by Netplan
On 24.04, after enabled the proposed channel, this issue is fixed.
ubuntu@Mersey2-2:~$ cat /lib/netplan/00-network-manager-all.yaml
cat: /lib/netplan/00-network-manager-all.yaml: Permission denied
ubuntu@Mersey2-2:~$ sudo cat /lib/netplan/00-network-manager-all.yaml
# Let NetworkManager manage all devices on this system
network:
version: 2
renderer: NetworkManager
ubuntu@Mersey2-2:~$ apt-cache policy ubuntu-settings
ubuntu-settings:
Installed: 24.04.5
Candidate: 24.04.5
Version table:
24.04.6 100
100 http://archive.ubuntu.com/ubuntu noble-proposed/main amd64 Packages
*** 24.04.5 500
500 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages
100 /var/lib/dpkg/status
24.04.3 500
500 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages
ubuntu@Mersey2-2:~$ sudo apt install ubuntu-settings=24.04.6
Building dependency tree... Done
Reading state information... Done
The following packages will be upgraded:
ubuntu-settings
1 upgraded, 0 newly installed, 0 to remove and 22 not upgraded.
Need to get 10.2 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu noble-proposed/main amd64 ubuntu-settings all 24.04.6 [10.2 kB]
Fetched 10.2 kB in 1s (12.5 kB/s)···········
(Reading database ... 227008 files and directories currently installed.)
Preparing to unpack .../ubuntu-settings_24.04.6_all.deb ...
Unpacking ubuntu-settings (24.04.6) over (24.04.5) ...
Setting up ubuntu-settings (24.04.6) ...
Processing triggers for libglib2.0-0t64:amd64 (2.80.0-6ubuntu3.4) ...
ubuntu@Mersey2-2:~$ sudo cat /lib/netplan/00-network-manager-all.yaml
[sudo] password for ubuntu:·
network:
version: 2
renderer: NetworkManager
ubuntu@Mersey2-2:~$ nmcli c delete Canonical
ubuntu@Mersey2-2:~$ sudo debsums -s
ubuntu@Mersey2-2:~$ echo $?
0
** Tags removed: verification-needed-noble
** Tags added: verification-done-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