[Bug 2069391] Re: debsums reports file changed /usr/lib/systemd/system/cloud-init.service

Chad Smith 2069391 at bugs.launchpad.net
Tue Jul 16 12:57:41 UTC 2024


@Dan Bungert. Since this was my changeset, I thought I'd put up a PR as food for thought which uses the override that Brett mentioned. It avoids the wholesale replacement of the entire unit file and just addresses Before and After config in the supplemental override file.
 
I also updated the After snapshot to align with cloud-init 24.2 which added a Before=systemd-user-sessions.service

https://code.launchpad.net/~chad.smith/livecd-rootfs/+git/livecd-
rootfs/+merge/469479


Note that cloud-init SRU of 24.2 is queued in unapproved queue for focal/jammy and noble 
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/2071762

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/2069391

Title:
  debsums reports file changed /usr/lib/systemd/system/cloud-
  init.service

Status in cloud-init package in Ubuntu:
  Invalid
Status in livecd-rootfs package in Ubuntu:
  Triaged
Status in subiquity package in Ubuntu:
  Invalid

Bug description:
  [Summary]
  debsums reported /lib/systemd/system/cloud-init.service was changed.
  Also the cloud-init.service mentioned it was auto-generated by installer build process.

  The diff output from package included and system installed.
  $ diff ./extract-cloud-init/lib/systemd/system/cloud-init.service /lib/systemd/system/cloud-init.service 
  0a1,2
  > # Automatically generated by installer build process
  > # Based on cloud-init 23.1 for Desktop LiveCD
  8a11,13
  > # Installer Added After=NetworkManager* ordering
  > After=NetworkManager.service
  > After=NetworkManager-wait-online.service
  13c18
  < Before=sysinit.target
  ---
  > # Before=sysinit.target  Installer removed to allow for NM dependency
  16,18c21
  < ConditionPathExists=!/etc/cloud/cloud-init.disabled
  < ConditionKernelCommandLine=!cloud-init=disabled
  < ConditionEnvironment=!KERNEL_CMDLINE=cloud-init=disabled
  ---
  > Before=systemd-user-sessions.service

  
  [Steps to reproduce]
  1. Install Ubuntu 24.04 desktop
  2. Excute command `debsums -c`

  ProblemType: Bug
  DistroRelease: Ubuntu 24.04
  Package: cloud-init 24.1.3-0ubuntu3
  ProcVersionSignature: Ubuntu 6.8.0-35.35-generic 6.8.4
  Uname: Linux 6.8.0-35-generic x86_64
  ApportVersion: 2.28.1-0ubuntu2
  Architecture: amd64
  AutoInstallUserData: Error: [Errno 13] Permission denied: '/var/log/installer/autoinstall-user-data'
  CasperMD5CheckResult: pass
  CurtinConfigCurtHooks: Error: [Errno 13] Permission denied: '/var/log/installer/curtin-install/subiquity-curthooks.conf'
  CurtinConfigExtract: Error: [Errno 13] Permission denied: '/var/log/installer/curtin-install/subiquity-extract.conf'
  CurtinConfigInitial: Error: [Errno 13] Permission denied: '/var/log/installer/curtin-install/subiquity-initial.conf'
  CurtinConfigPartitioning: Error: [Errno 13] Permission denied: '/var/log/installer/curtin-install/subiquity-partitioning.conf'
  Date: Fri Jun 14 13:57:57 2024
  InstallationDate: Installed on 2024-05-02 (43 days ago)
  InstallationMedia: Ubuntu 24.04 LTS "Noble Numbat" - Release amd64 (20240424)
  InstallerCloudCfg: Error: [Errno 13] Permission denied: '/etc/cloud/cloud.cfg.d/99-installer.cfg'
  PackageArchitecture: all
  SourcePackage: cloud-init
  SubiquityServerDebug: Error: [Errno 13] Permission denied: '/var/log/installer/subiquity-server-debug.log.3103'
  UpgradeStatus: No upgrade log present (probably fresh install)
  cloud-init-log-warnings:
   2024-05-02 07:52:44,723 - activators.py[WARNING]: Running ['netplan', 'apply'] resulted in stderr output: 
   ** (generate:1042): WARNING **: 07:52:44.418: Permissions for /etc/netplan/01-network-manager-all.yaml are too open. Netplan configuration should NOT be accessible by others.
   ** (process:1041): WARNING **: 07:52:44.646: Permissions for /etc/netplan/01-network-manager-all.yaml are too open. Netplan configuration should NOT be accessible by others.
   ** (process:1041): WARNING **: 07:52:44.696: Permissions for /etc/netplan/01-network-manager-all.yaml are too open. Netplan configuration should NOT be accessible by others.
   2024-05-02 07:53:41,599 - cc_final_message.py[WARNING]: Used fallback datasource
  user_data.txt: Error: [Errno 13] Permission denied: '/var/lib/cloud/instances/iid-datasource-none/user-data.txt'

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/2069391/+subscriptions




More information about the foundations-bugs mailing list