Package: prometheus-node-exporter-collectors
Version: 0.0~git20240509.18fcb1c-1
Severity: important
Dear Maintainer,
*** Reporter, please consider answering these questions, where appropriate ***
* What led up to the situation?
Likely an upgrade to nvme(1) from nvme-cli. The Python scripts expects
certain output, among others, a field called `DevicePath`. This does not
show up in the output of nvme(1) on my system.
Output from running
/usr/share/prometheus-node-exporter-collectors/nvme_metrics.py:
# /usr/share/prometheus-node-exporter-collectors/nvme_metrics.py
ERROR: 'DevicePath'
#
The Python script internally runs `nvme list --output-format json`
which, when hand-run results in:
{
"Devices":[
{
"HostNQN":"(redacted)",
"HostID":"(redacted)",
"Subsystems":[
{
"Subsystem":"nvme-subsys0",
"SubsystemNQN":"(redacted)",
"Controllers":[
{
"Controller":"nvme0",
"Cntlid":"5",
"SerialNumber":"(redacted)",
"ModelNumber":"Samsung SSD 980 500GB",
"Firmware":"3B4QFXO7",
"Transport":"pcie",
"Address":"0000:02:00.0",
"Slot":"",
"Namespaces":[
{
"NameSpace":"nvme0n1",
"Generic":"ng0n1",
"NSID":1,
"UsedBytes":19780800512,
"MaximumLBA":976773168,
"PhysicalSize":500107862016,
"SectorSize":512
}
],
"Paths":[]
}
],
"Namespaces":[]
}
]
}
]
}
The device is visible in the system:
# ls /dev/nvme0*
/dev/nvme0 /dev/nvme0n1 /dev/nvme0n1p1 /dev/nvme0n1p2 /dev/nvme0n1p3
So it is not clear to me why the `DevicePath` field is absent.
*** End of the template - remove these template lines ***
-- System Information:
Debian Release: trixie/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 6.12.0-rc4 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages prometheus-node-exporter-collectors depends on:
ii dash 0.5.12-9
ii moreutils 0.69-1
ii python3-apt 2.9.0+b2
ii python3-prometheus-client 0.19.0+ds1-1
Versions of packages prometheus-node-exporter-collectors recommends:
pn ipmitool <none>
ii jq 1.7.1-3+b1
ii nvme-cli 2.11-1
ii python3 3.12.6-1
ii smartmontools 7.4-2
prometheus-node-exporter-collectors suggests no packages.
-- no debconf information