Hello team, can you please review the release of firmware-exporter snap?
This is being blocked by block-devices interface.
This is used to grab firmware information of block devices.
Hello team, can you please review the release of firmware-exporter snap?
This is being blocked by block-devices interface.
This is used to grab firmware information of block devices.
This request has been added to the queue for review by the @reviewers team.
Hello @peppepetra ![]()
I took a look at the snapcraft.yaml and your request makes sense to me, given also the snap’s functionality. Just a clarification, is this a request for manual-conncection?
Hello @yomonokio thanks for taking a look into this.
Ideally this should be auto connect.
Ideally I need also the following interfaces to auto connect
``` sudo snap connect firmware-exporter:hardware-observe
sudo snap connect firmware-exporter:system-observe
sudo snap connect firmware-exporter:network-observe ```
Do I need to submit individual requests for each of them ?
Hello @peppepetra,
We are able to process requests for multiple interfaces in one forum thread. It would greatly help us with our review if you are able to format your full request in the style of the template provided here: About the privileged-interfaces category
Thank you!
Thanks for looking into this.
My request is the following
name: firmware-exporter
description: Prometheus exporter that exposes hardware inventory and installed firmware
versions (BIOS, CPU microcode, drives, NICs, GPUs) as metrics
snapcraft: https://github.com/canonical/firmware-exporter/blob/main/snap/snapcraft.yaml
upstream: https://github.com/canonical/firmware-exporter
upstream-relation: maintainer
plugs:
hardware-observe:
request-type: auto-connection
reasoning: The daemon reads DMI/BIOS data from /sys/class/dmi/id, PCI device
attributes and driver information from sysfs, and CPU microcode details. This is
the core function of the snap. Without it the host, BIOS, CPU and device
metrics are empty.
system-observe:
request-type: auto-connection
reasoning: Needed to read /proc/cpuinfo and kernel and system information used to
report the CPU model and microcode patch level, and for the GPU driver
information under /proc/driver. Read-only access.
block-devices:
request-type: auto-connection
reasoning: Needed to read the model, serial number and firmware revision of
NVMe, SATA and SCSI drives from /sys/block and to query them with the bundled
nvme-cli and smartctl. Drive firmware versions are a primary metric of the snap.
network-observe:
request-type: auto-connection
reasoning: Needed to enumerate network interfaces and read NIC driver and
firmware versions through the bundled ethtool and devlink. NIC firmware versions
are a primary metric of the snap.
Hello @peppepetra,
Thank you! Given the snap’s functionality this is a +1 from me for granting auto-connect for interfaces hardware-observe, system-observe, and network-observe.
In regards to block-devices, as this is a significantly privileged interface with a very wide grant, can you describe in more detail exactly what errors you run into without this interface? Are your access needs read-only? Would perhaps scsi-generic and/or nvme-control be sufficient to provide the needed information?