2023-07-15 17:43:37 |
Reinhard Munz |
bug |
|
|
added bug |
2023-07-18 20:21:01 |
Launchpad Janitor |
cloud-init (Ubuntu): status |
New |
Confirmed |
|
2023-07-18 20:21:43 |
Tired Sysadmin |
bug |
|
|
added subscriber Tired Sysadmin |
2023-07-31 18:09:55 |
James Falcon |
cloud-init (Ubuntu): status |
Confirmed |
Fix Committed |
|
2023-07-31 20:43:46 |
Andreas Hasenack |
description |
During upgrade of cloud-init there are dpkg warnings that '/etc/NetworkManager' may not be deleted. The delete fails due to a hook script file of cloud-init inside a sub-folder, to be exact at '/etc/NetworkManager/dispatcher.d/hook-network-manager'.
Package upgrade should handle deletion of the hook script and thus not fail to delete the directory.
The following is the output from my command line of the upgrade and the following investigation as to which files prevented deletion of the directory and caused the warning.
rm@g0-srv-vie:~$ sudo apt -o APT::Get::Always-Include-Phased-Updates=true upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
Get more security updates through Ubuntu Pro with 'esm-apps' enabled:
exo-utils libexo-2-0 libexo-common
Learn more about Ubuntu Pro at https://ubuntu.com/pro
#
# An OpenSSL vulnerability has recently been fixed with USN-6188-1 & 6119-1:
# CVE-2023-2650: possible DoS translating ASN.1 object identifiers.
# Ensure you have updated the package to its latest version.
#
The following packages will be upgraded:
cloud-init
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 533 kB of archives.
After this operation, 26.6 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://at.archive.ubuntu.com/ubuntu jammy-updates/main amd64 cloud-init all 23.2.1-0ubuntu0~22.04.1 [533 kB]
Fetched 533 kB in 0s (3,138 kB/s)
Preconfiguring packages ...
(Reading database ... 203794 files and directories currently installed.)
Preparing to unpack .../cloud-init_23.2.1-0ubuntu0~22.04.1_all.deb ...
Unpacking cloud-init (23.2.1-0ubuntu0~22.04.1) over (23.1.2-0ubuntu0~22.04.1) ...
dpkg: warning: unable to delete old directory '/etc/NetworkManager/dispatcher.d': Directory not empty
dpkg: warning: unable to delete old directory '/etc/NetworkManager': Directory not empty
Setting up cloud-init (23.2.1-0ubuntu0~22.04.1) ...
Installing new version of config file /etc/cloud/cloud.cfg ...
Installing new version of config file /etc/cloud/templates/chrony.conf.alpine.tmpl ...
Installing new version of config file /etc/cloud/templates/chrony.conf.centos.tmpl ...
Installing new version of config file /etc/cloud/templates/chrony.conf.cos.tmpl ...
Installing new version of config file /etc/cloud/templates/chrony.conf.debian.tmpl ...
Installing new version of config file /etc/cloud/templates/chrony.conf.fedora.tmpl ...
Installing new version of config file /etc/cloud/templates/chrony.conf.freebsd.tmpl ...
Installing new version of config file /etc/cloud/templates/chrony.conf.opensuse-leap.tmpl ...
Installing new version of config file /etc/cloud/templates/chrony.conf.opensuse-microos.tmpl ...
Installing new version of config file /etc/cloud/templates/chrony.conf.opensuse-tumbleweed.tmpl ...
Installing new version of config file /etc/cloud/templates/chrony.conf.opensuse.tmpl ...
Installing new version of config file /etc/cloud/templates/chrony.conf.photon.tmpl ...
Installing new version of config file /etc/cloud/templates/chrony.conf.rhel.tmpl ...
Installing new version of config file /etc/cloud/templates/chrony.conf.sle-micro.tmpl ...
Installing new version of config file /etc/cloud/templates/chrony.conf.sle_hpc.tmpl ...
Installing new version of config file /etc/cloud/templates/chrony.conf.sles.tmpl ...
Installing new version of config file /etc/cloud/templates/chrony.conf.ubuntu.tmpl ...
Installing new version of config file /etc/cloud/templates/ntp.conf.alpine.tmpl ...
Installing new version of config file /etc/cloud/templates/ntp.conf.debian.tmpl ...
Installing new version of config file /etc/cloud/templates/ntp.conf.fedora.tmpl ...
Installing new version of config file /etc/cloud/templates/ntp.conf.freebsd.tmpl ...
Installing new version of config file /etc/cloud/templates/ntp.conf.opensuse.tmpl ...
Installing new version of config file /etc/cloud/templates/ntp.conf.photon.tmpl ...
Installing new version of config file /etc/cloud/templates/ntp.conf.rhel.tmpl ...
Installing new version of config file /etc/cloud/templates/ntp.conf.sles.tmpl ...
Installing new version of config file /etc/cloud/templates/ntp.conf.ubuntu.tmpl ...
Installing new version of config file /etc/cloud/templates/ntpd.conf.openbsd.tmpl ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for rsyslog (8.2112.0-2ubuntu2.2) ...
Scanning processes...
Scanning processor microcode...
Scanning linux images...
Running kernel seems to be up-to-date.
The processor microcode seems to be up-to-date.
No services need to be restarted.
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host.
rm@g0-srv-vie:~$ sudo ls -lah /etc/NetworkManager
total 20K
drwxr-xr-x 3 root root 4.0K Aug 9 2022 .
drwxr-xr-x 146 root root 12K Jul 15 19:24 ..
drwxr-xr-x 2 root root 4.0K Apr 28 06:44 dispatcher.d
rm@g0-srv-vie:~$ sudo ls -lah /etc/NetworkManager/dispatcher.d
total 12K
drwxr-xr-x 2 root root 4.0K Apr 28 06:44 .
drwxr-xr-x 3 root root 4.0K Aug 9 2022 ..
-rwxr-xr-x 1 root root 719 May 18 2022 hook-network-manager
rm@g0-srv-vie:~$ sudo cat /etc/NetworkManager/dispatcher.d/hook-network-manager
#!/bin/sh
# This file is part of cloud-init. See LICENSE file for license information.
# This script hooks into NetworkManager(8) via its scripts
# arguments are 'interface-name' and 'action'
#
is_azure() {
local dmi_path="/sys/class/dmi/id/board_vendor" vendor=""
if [ -e "$dmi_path" ] && read vendor < "$dmi_path"; then
[ "$vendor" = "Microsoft Corporation" ] && return 0
fi
return 1
}
is_enabled() {
# only execute hooks if cloud-init is enabled and on azure
[ -e /run/cloud-init/enabled ] || return 1
is_azure
}
if is_enabled; then
case "$1:$2" in
*:up) exec cloud-init dhclient-hook up "$1";;
*:down) exec cloud-init dhclient-hook down "$1";;
esac
fi
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: cloud-init 23.2.1-0ubuntu0~22.04.1
ProcVersionSignature: Ubuntu 5.15.0-76.83-generic 5.15.99
Uname: Linux 5.15.0-76-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckResult: pass
Date: Sat Jul 15 19:32:09 2023
InstallationDate: Installed on 2022-11-24 (233 days ago)
InstallationMedia: Ubuntu-Server 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809)
PackageArchitecture: all
ProcEnviron:
LANG=en_US.UTF-8
TERM=xterm-256color
PATH=(custom, no user)
SHELL=/bin/bash
SourcePackage: cloud-init
UpgradeStatus: No upgrade log present (probably fresh install)
modified.conffile..etc.NetworkManager.dispatcher.d.hook-network-manager: [deleted] |
During upgrade of cloud-init there are dpkg warnings that '/etc/NetworkManager' may not be deleted. The delete fails due to a hook script file of cloud-init inside a sub-folder, to be exact at '/etc/NetworkManager/dispatcher.d/hook-network-manager'.
Package upgrade should handle deletion of the hook script and thus not fail to delete the directory.
The following is the output from my command line of the upgrade and the following investigation as to which files prevented deletion of the directory and caused the warning.
rm@g0-srv-vie:~$ sudo apt -o APT::Get::Always-Include-Phased-Updates=true upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
Get more security updates through Ubuntu Pro with 'esm-apps' enabled:
exo-utils libexo-2-0 libexo-common
Learn more about Ubuntu Pro at https://ubuntu.com/pro
#
# An OpenSSL vulnerability has recently been fixed with USN-6188-1 & 6119-1:
# CVE-2023-2650: possible DoS translating ASN.1 object identifiers.
# Ensure you have updated the package to its latest version.
#
The following packages will be upgraded:
cloud-init
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 533 kB of archives.
After this operation, 26.6 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://at.archive.ubuntu.com/ubuntu jammy-updates/main amd64 cloud-init all 23.2.1-0ubuntu0~22.04.1 [533 kB]
Fetched 533 kB in 0s (3,138 kB/s)
Preconfiguring packages ...
(Reading database ... 203794 files and directories currently installed.)
Preparing to unpack .../cloud-init_23.2.1-0ubuntu0~22.04.1_all.deb ...
Unpacking cloud-init (23.2.1-0ubuntu0~22.04.1) over (23.1.2-0ubuntu0~22.04.1) ...
dpkg: warning: unable to delete old directory '/etc/NetworkManager/dispatcher.d': Directory not empty
dpkg: warning: unable to delete old directory '/etc/NetworkManager': Directory not empty
Setting up cloud-init (23.2.1-0ubuntu0~22.04.1) ...
Installing new version of config file /etc/cloud/cloud.cfg ...
Installing new version of config file /etc/cloud/templates/chrony.conf.alpine.tmpl ...
Installing new version of config file /etc/cloud/templates/chrony.conf.centos.tmpl ...
Installing new version of config file /etc/cloud/templates/chrony.conf.cos.tmpl ...
Installing new version of config file /etc/cloud/templates/chrony.conf.debian.tmpl ...
Installing new version of config file /etc/cloud/templates/chrony.conf.fedora.tmpl ...
Installing new version of config file /etc/cloud/templates/chrony.conf.freebsd.tmpl ...
Installing new version of config file /etc/cloud/templates/chrony.conf.opensuse-leap.tmpl ...
Installing new version of config file /etc/cloud/templates/chrony.conf.opensuse-microos.tmpl ...
Installing new version of config file /etc/cloud/templates/chrony.conf.opensuse-tumbleweed.tmpl ...
Installing new version of config file /etc/cloud/templates/chrony.conf.opensuse.tmpl ...
Installing new version of config file /etc/cloud/templates/chrony.conf.photon.tmpl ...
Installing new version of config file /etc/cloud/templates/chrony.conf.rhel.tmpl ...
Installing new version of config file /etc/cloud/templates/chrony.conf.sle-micro.tmpl ...
Installing new version of config file /etc/cloud/templates/chrony.conf.sle_hpc.tmpl ...
Installing new version of config file /etc/cloud/templates/chrony.conf.sles.tmpl ...
Installing new version of config file /etc/cloud/templates/chrony.conf.ubuntu.tmpl ...
Installing new version of config file /etc/cloud/templates/ntp.conf.alpine.tmpl ...
Installing new version of config file /etc/cloud/templates/ntp.conf.debian.tmpl ...
Installing new version of config file /etc/cloud/templates/ntp.conf.fedora.tmpl ...
Installing new version of config file /etc/cloud/templates/ntp.conf.freebsd.tmpl ...
Installing new version of config file /etc/cloud/templates/ntp.conf.opensuse.tmpl ...
Installing new version of config file /etc/cloud/templates/ntp.conf.photon.tmpl ...
Installing new version of config file /etc/cloud/templates/ntp.conf.rhel.tmpl ...
Installing new version of config file /etc/cloud/templates/ntp.conf.sles.tmpl ...
Installing new version of config file /etc/cloud/templates/ntp.conf.ubuntu.tmpl ...
Installing new version of config file /etc/cloud/templates/ntpd.conf.openbsd.tmpl ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for rsyslog (8.2112.0-2ubuntu2.2) ...
Scanning processes...
Scanning processor microcode...
Scanning linux images...
Running kernel seems to be up-to-date.
The processor microcode seems to be up-to-date.
No services need to be restarted.
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host.
rm@g0-srv-vie:~$ sudo ls -lah /etc/NetworkManager
total 20K
drwxr-xr-x 3 root root 4.0K Aug 9 2022 .
drwxr-xr-x 146 root root 12K Jul 15 19:24 ..
drwxr-xr-x 2 root root 4.0K Apr 28 06:44 dispatcher.d
rm@g0-srv-vie:~$ sudo ls -lah /etc/NetworkManager/dispatcher.d
total 12K
drwxr-xr-x 2 root root 4.0K Apr 28 06:44 .
drwxr-xr-x 3 root root 4.0K Aug 9 2022 ..
-rwxr-xr-x 1 root root 719 May 18 2022 hook-network-manager
rm@g0-srv-vie:~$ sudo cat /etc/NetworkManager/dispatcher.d/hook-network-manager
#!/bin/sh
# This file is part of cloud-init. See LICENSE file for license information.
# This script hooks into NetworkManager(8) via its scripts
# arguments are 'interface-name' and 'action'
#
is_azure() {
local dmi_path="/sys/class/dmi/id/board_vendor" vendor=""
if [ -e "$dmi_path" ] && read vendor < "$dmi_path"; then
[ "$vendor" = "Microsoft Corporation" ] && return 0
fi
return 1
}
is_enabled() {
# only execute hooks if cloud-init is enabled and on azure
[ -e /run/cloud-init/enabled ] || return 1
is_azure
}
if is_enabled; then
case "$1:$2" in
*:up) exec cloud-init dhclient-hook up "$1";;
*:down) exec cloud-init dhclient-hook down "$1";;
esac
fi
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: cloud-init 23.2.1-0ubuntu0~22.04.1
ProcVersionSignature: Ubuntu 5.15.0-76.83-generic 5.15.99
Uname: Linux 5.15.0-76-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckResult: pass
Date: Sat Jul 15 19:32:09 2023
InstallationDate: Installed on 2022-11-24 (233 days ago)
InstallationMedia: Ubuntu-Server 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809)
PackageArchitecture: all
ProcEnviron:
LANG=en_US.UTF-8
TERM=xterm-256color
PATH=(custom, no user)
SHELL=/bin/bash
SourcePackage: cloud-init
UpgradeStatus: No upgrade log present (probably fresh install)
modified.conffile..etc.NetworkManager.dispatcher.d.hook-network-manager: [deleted] |
|
2023-08-01 16:42:13 |
Launchpad Janitor |
cloud-init (Ubuntu): status |
Fix Committed |
Fix Released |
|
2023-09-06 21:42:48 |
Ubuntu Archive Robot |
bug |
|
|
added subscriber James Falcon |
2023-09-15 19:50:43 |
Steve Langasek |
cloud-init (Ubuntu Lunar): status |
New |
Fix Committed |
|
2023-09-15 19:50:44 |
Steve Langasek |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2023-09-15 19:50:46 |
Steve Langasek |
bug |
|
|
added subscriber SRU Verification |
2023-09-15 19:50:50 |
Steve Langasek |
tags |
amd64 apport-bug jammy uec-images |
amd64 apport-bug jammy uec-images verification-needed verification-needed-lunar |
|
2023-09-15 20:16:21 |
Steve Langasek |
cloud-init (Ubuntu Jammy): status |
New |
Fix Committed |
|
2023-09-15 20:16:26 |
Steve Langasek |
tags |
amd64 apport-bug jammy uec-images verification-needed verification-needed-lunar |
amd64 apport-bug jammy uec-images verification-needed verification-needed-jammy verification-needed-lunar |
|
2023-09-15 20:19:18 |
Steve Langasek |
cloud-init (Ubuntu Focal): status |
New |
Fix Committed |
|
2023-09-15 20:19:22 |
Steve Langasek |
tags |
amd64 apport-bug jammy uec-images verification-needed verification-needed-jammy verification-needed-lunar |
amd64 apport-bug jammy uec-images verification-needed verification-needed-focal verification-needed-jammy verification-needed-lunar |
|
2023-10-04 15:15:29 |
James Falcon |
attachment added |
|
focal.txt https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/2027861/+attachment/5706772/+files/focal.txt |
|
2023-10-04 15:15:44 |
James Falcon |
attachment added |
|
jammy.txt https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/2027861/+attachment/5706773/+files/jammy.txt |
|
2023-10-04 15:16:01 |
James Falcon |
attachment added |
|
lunar.txt https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/2027861/+attachment/5706774/+files/lunar.txt |
|
2023-10-04 15:17:37 |
James Falcon |
tags |
amd64 apport-bug jammy uec-images verification-needed verification-needed-focal verification-needed-jammy verification-needed-lunar |
amd64 apport-bug jammy uec-images verification-done-focal verification-done-jammy verification-done-lunar verification-needed |
|
2023-10-04 15:17:46 |
James Falcon |
tags |
amd64 apport-bug jammy uec-images verification-done-focal verification-done-jammy verification-done-lunar verification-needed |
amd64 apport-bug jammy uec-images verification-done verification-done-focal verification-done-jammy verification-done-lunar |
|
2023-10-05 21:29:43 |
Launchpad Janitor |
cloud-init (Ubuntu Lunar): status |
Fix Committed |
Fix Released |
|
2023-10-05 21:29:49 |
Andreas Hasenack |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|
2023-10-05 21:30:17 |
Launchpad Janitor |
cloud-init (Ubuntu Jammy): status |
Fix Committed |
Fix Released |
|
2023-10-05 21:30:32 |
Launchpad Janitor |
cloud-init (Ubuntu Focal): status |
Fix Committed |
Fix Released |
|