chef / ohai

Ohai profiles your system and emits JSON
https://docs.chef.io/ohai.html
Apache License 2.0
681 stars 452 forks source link

[block_device] Record firmware revision of nvme block devices #1787

Closed saravan2 closed 1 year ago

saravan2 commented 1 year ago

Enhancing the plugin to record the firmware of nvme block devices

Description

The sysfs end point for firmware in nvme block device differs from HDD. Added firmware_rev to the plugin check list to collect this information on servers with nvme block devices.

Related Issue

Types of changes

Checklist:

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

dafyddcrosby commented 1 year ago

Confirmed https://github.com/torvalds/linux/blob/master/drivers/nvme/host/core.c#L3554 and my laptop (Fedora 37, 6.1.11 kernel) for firmware_rev

jaymzh commented 1 year ago

Huh I don't see to be part of chef-infra-owners anymore. I'll need to get that fixed

GeorgeWestwater commented 1 year ago

Merge approved @jaymzh; please merge until we can fix the branch protection

jaymzh commented 1 year ago

Looks like the GHE migration yanked me out of the chef-infra-owners group, so the UI doesn't know I am allowed to approve. But I AM allowed to force the merge. So after talking to @GeorgeWestwater I'm forcing the merge, and they'll work on fixing groups.