Skip to content

Fixes #39300 - Fix Redfish identify LED handling#939

Open
spesnova717 wants to merge 1 commit into
theforeman:developfrom
FujitsuResearch:feature/fix-indicator-led-lit
Open

Fixes #39300 - Fix Redfish identify LED handling#939
spesnova717 wants to merge 1 commit into
theforeman:developfrom
FujitsuResearch:feature/fix-indicator-led-lit

Conversation

@spesnova717
Copy link
Copy Markdown
Contributor

Summary

Fix incorrect IndicatorLED value and use ETag-aware PATCH for identify LED operations in the Redfish BMC provider.

Changes

Bug fix: IndicatorLED value

The Redfish specification (DSP0266_1.23.1.pdf) defines IndicatorLED accepted values as Lit, Off, and Blinking.
The previous implementation used 'On' in identifyon, which is not a valid Redfish value and would be rejected by spec-compliant BMCs.

This PR changes it to the correct value 'Lit'.

Improvement: use patch_if_match for identify operations

identifyon and identifyoff previously used system.patch(payload: ...), which does not include ETag concurrency control.
Other state-changing operations like bootdevice already use patch_if_match.
This PR aligns the identify LED operations to also use patch_if_match for consistency and to avoid potential race conditions.

…_if_match

Fix IndicatorLED 'On' -> 'Lit' and use patch_if_match for identify
@spesnova717 spesnova717 force-pushed the feature/fix-indicator-led-lit branch from 7604480 to 2b49949 Compare May 20, 2026 04:33
spesnova717 added a commit to FujitsuResearch/smart-proxy that referenced this pull request May 20, 2026
…fallback

Prefer LocationIndicatorActive for identify status and identify on/off
operations when available, and fall back to IndicatorLED for older or
partial Redfish implementations.

This keeps compatibility across vendors while aligning identify behavior
with newer Redfish systems. Add tests for both LocationIndicatorActive
and fallback paths.

(this commit is intended to be reviewed on top of
theforeman#939)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant