Project

General

Profile

Actions

Bug #38914

closed

Boot order cannot be changed to PXE via Redfish (ETag required but not handled)

Added by Yusuke Hirota 8 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Summary

When using the Redfish BMC provider, setting a host to boot from PXE (via UI or `hammer host boot`) reports success, but the actual BMC boot order is not updated, and the system does not PXE boot.

Description

Many Redfish implementations require ETag / If-Match for PATCH updates.
However, Foreman’s Smart Proxy currently:

  • does not retrieve ETags
  • does not send `If-Match` headers

This results in HTTP 200 responses while the BMC silently ignores the boot override change.

A manual PATCH with ETag succeeds, for example:

curl -k -u admin:PASS \
  -H "If-Match: W/\"<ETAG>\"" \
  -X PATCH \
  -d '{"Boot":{"BootSourceOverrideTarget":"Pxe","BootSourceOverrideEnabled":"Once"}}' \
  https://<BMC>/redfish/v1/Systems/0

Reference: Redfish Specification DSP0266 v1.23.0, Section 6.5
https://www.dmtf.org/sites/default/files/standards/documents/DSP0266_1.23.0.pdf

Steps to Reproduce

1. Configure a host’s BMC with the Redfish provider
2. Go to Host → Interfaces → BMC → Set Boot device = PXE
3. Or run:

hammer host boot --device pxe --name <hostname>

4. Foreman reports success, but the boot order does not change.

Actual Behavior

  • Smart Proxy receives HTTP 200
  • Boot order on the BMC remains unchanged

Expected Behavior

  • Boot override should update correctly
  • Host should PXE boot on next reboot
Actions #1

Updated by The Foreman Bot 6 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/smart-proxy/pull/930 added
Actions #2

Updated by The Foreman Bot 4 months ago

  • Fixed in Releases 3.19.0 added
Actions #3

Updated by Anonymous 4 months ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF