Package: prometheus-node-exporter-collectors
Version: 0.0~git20230203.6f710f8-1+deb12u1
Severity: important
Dear Maintainer.
It appears that /usr/share/prometheus-node-exporter-collectors/apt_info.py
reports upgradable packages as "held" :
* What was the outcome of this action?
On a Debian stable machine with currently 29 packages upgradable and 1 held
package :
apt dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
nano
The following packages will be upgraded:
base-files bash distro-info-data libc-bin libc-l10n libc6
libcryptsetup12 libcurl3-gnutls libgnutls30
libnss-systemd libpam-systemd libperl5.36 libseccomp2
libsystemd-shared libsystemd0 libudev1 locales
perl perl-base perl-modules-5.36 postfix python3-idna systemd
systemd-sysv systemd-timesyncd tar
tzdata udev usrmerge
29 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 30,5 MB of archives.
After this operation, 490 kB of additional disk space will be used.
Do you want to continue? [Y/n]
apt_info.py reports upgradable packages as as "held" :
/usr/share/prometheus-node-exporter-collectors/apt_info.py
# HELP apt_upgrades_pending Apt packages pending updates by origin.
# TYPE apt_upgrades_pending gauge
apt_upgrades_pending{origin="",arch=""} 0
# HELP apt_upgrades_held Apt packages pending updates but held back.
# TYPE apt_upgrades_held gauge
apt_upgrades_held{origin="Debian:bookworm/stable",arch="all"} 7
apt_upgrades_held{origin="Debian:bookworm/stable",arch="amd64"} 23
# HELP apt_autoremove_pending Apt packages pending autoremoval.
# TYPE apt_autoremove_pending gauge
apt_autoremove_pending 0
# HELP node_reboot_required Node reboot is required for software updates.
# TYPE node_reboot_required gauge
node_reboot_required 0
* What outcome did you expect instead?
I expect instead to see apt_upgrades_pending info like this :
...
# TYPE apt_upgrades_pending gauge
apt_upgrades_pending{origin="Debian:bookworm/stable",arch="all"} 7
apt_upgrades_pending{origin="Debian:bookworm/stable",arch="amd64"} 23
...
and the right number of held packages :
...
apt_upgrades_held{origin="Debian:bookworm/stable",arch="amd64"} 1
...
-- System Information:
Debian Release: 12.2
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500,
'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.1.0-23-amd64
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE
not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages prometheus-node-exporter-collectors depends on:
ii moreutils 0.67-1
ii prometheus-node-exporter 1.5.0-1+b6
ii python3-apt 2.6.0
ii systemd-sysv 252.17-1~deb12u1
Versions of packages prometheus-node-exporter-collectors recommends:
pn ipmitool <none>
ii jq 1.6-2.1
pn nvme-cli <none>
ii python3 3.11.2-1+b1
pn smartmontools <none>
prometheus-node-exporter-collectors suggests no packages.
-- no debconf information