Skip to content

Add Redfish API support for SendServiceAlerts setting#1472

Open
devenrao wants to merge 1 commit into
ibm-openbmc:1060from
devenrao:faultlog_1060
Open

Add Redfish API support for SendServiceAlerts setting#1472
devenrao wants to merge 1 commit into
ibm-openbmc:1060from
devenrao:faultlog_1060

Conversation

@devenrao
Copy link
Copy Markdown
Contributor

This commit adds support for controlling the hardware isolation service alerts setting through the Redfish API under the IBM OEM extension.

Changes:

  • Created service_alerts.hpp with GET/SET functions for the SendServiceAlerts property
  • Modified systems.hpp to expose SendServiceAlerts in the IBM OEM section of ComputerSystem resource
  • Added error handling for missing D-Bus object (EBADR) to prevent redfish validator GET failure 500

The SendServiceAlerts property allows users to enable or disable service alerts for hardware isolation events via Redfish API:

  • GET /redfish/v1/Systems/system returns current state
  • PATCH /redfish/v1/Systems/system with Oem.IBM.SendServiceAlerts updates the setting

The implementation integrates with the existing D-Bus setting at /xyz/openbmc_project/hardware_isolation/send_service_alerts which is monitored by the faultlog service.

Tested:

  • GET request returns current SendServiceAlerts state
  • PATCH request successfully updates the D-Bus property
  • Setting persists across BMC reboots via phosphor-settings-manager
  • Redfish validator passes without 500 errors

Change-Id: Ib6a488f1697cbdc28e3361f92ead70f38d61ba41

@devenrao devenrao requested review from baemyung, gtmills and jeaaustx May 20, 2026 07:20
@devenrao devenrao force-pushed the faultlog_1060 branch 2 times, most recently from ba6ede6 to 798a960 Compare May 20, 2026 08:30
Comment thread redfish-core/lib/oem/ibm/service_alerts.hpp
Comment thread redfish-core/lib/oem/ibm/service_alerts.hpp Outdated
This commit adds support for controlling the hardware isolation
service alerts setting through the Redfish API under the IBM OEM
extension.

Changes:
- Created service_alerts.hpp with GET/SET functions for the
  SendServiceAlerts property
- Modified systems.hpp to expose SendServiceAlerts in the IBM OEM
  section of ComputerSystem resource
- Added error handling for missing D-Bus object (EBADR) to prevent
  redfish validator GET failure 500

The SendServiceAlerts property allows users to enable or disable
service alerts for hardware isolation events via Redfish API:
- GET /redfish/v1/Systems/system returns current state
- PATCH /redfish/v1/Systems/system with Oem.IBM.SendServiceAlerts
  updates the setting

The implementation integrates with the existing D-Bus setting at
/xyz/openbmc_project/hardware_isolation/send_service_alerts which
is monitored by the faultlog service.

Tested:
- GET request returns current SendServiceAlerts state
- PATCH request successfully updates the D-Bus property
- Setting persists across BMC reboots via phosphor-settings-manager
- Redfish validator passes without 500 errors

Change-Id: Ib6a488f1697cbdc28e3361f92ead70f38d61ba41
Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
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.

2 participants