Skip to content

check_redfish: stop syncing the live fan reading - #568

Merged
semx merged 1 commit into
developmentfrom
fix/fan-speed-churn
Sep 10, 2026
Merged

semx merged 1 commit into
developmentfrom
fix/fan-speed-churn

Conversation

@semx

@semx semx commented Sep 10, 2026

Copy link
Copy Markdown
Collaborator

@marcinpsk raised this on #473: fan speed is a live measurement, so it churns.

Confirmed against a real NetBox 4.7. Bump the reading in the inventory file between two runs and the fan is written again - once per fan, per server, per run, forever, and every one of those lands in the NetBox changelog. It happens on both paths, the inventory item and the module, because both take speed from the same item data.

The other components that fill speed are describing the part rather than measuring it - DIMM clock, drive rpm rating, NIC link speed - so they stay. Only the fan reading is dropped; the fan is still synced with its name, health and physical context.

One thing I did not touch: a CPU's current_speed could drift the same way on hardware that reports the live clock instead of the rated one. I have no data on that, and nobody has reported it, so I left it alone rather than guess.

tests/test_check_redfish_fan_speed.py collects the same fan at two different rpm and expects one identical item; it fails on development. Suite 145, and the e2e run after an rpm jump now reports no change at all.

@semx
semx requested a review from bb-Ricardo as a code owner September 10, 2026 09:53
@semx
semx merged commit 04e5580 into development Sep 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant