nomad icon indicating copy to clipboard operation
nomad copied to clipboard

packaging: Add dmidecode as a Suggested / Recommended package to Nomad's Linux packaging manifest.

Open shoenig opened this issue 1 year ago • 3 comments

Add dmidecode as a Suggested / Recommended package to Nomad's Linux packaging manifest.

Nomad 1.7 and later relies on the dmidecode command being available particularly in virtualized environments like Amazon EC2 for the detection of CPU performance data.

Not having this as part of the Linux packaging creates a bad UX for first starting up a Nomad 1.7 agent in these environments, e.g.

https://github.com/hashicorp/nomad/issues/19343 https://github.com/hashicorp/nomad/issues/19371

shoenig avatar Dec 08 '23 13:12 shoenig

I'd recommend (pun intended) to put it into the recommended section and not suggested. Recommended is usually (not always though) installed by default whereas suggested is usually not installed and also not seen by the user. Then again if this is only required for virtualized systems it might not make sense to install by default but solely error out in the nomad agent and as such communicating the problem clearly to the user. On the other hand I'd imagine virtual machines are probably more common than bare metal nowadays for nomad, so it still might make sense to install dmidecode by default via a dependency.

apollo13 avatar Dec 08 '23 15:12 apollo13

Flatcar Linux does not seem to have dmidecode - Fedora CoreOS can get it via rpm-ostree. Wonder how I should go about this with my Flatcar machines.

ahjohannessen avatar Dec 08 '23 16:12 ahjohannessen

I'm not convinced that installing dmidecode should be adviced as this could lead to suboptimal MHz readings (#19468) in virtual machine environments. So that's maybe also a point to rethink reopening #18213.

MorphBonehunter avatar Dec 20 '23 15:12 MorphBonehunter

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

github-actions[bot] avatar May 04 '25 02:05 github-actions[bot]