commit | e51df0bb1aeb153bb2f22016e7b01617789ef5df | [log] [tgz] |
---|---|---|
author | Rohit PAI <ropai@nvidia.com> | Mon Apr 14 15:53:00 2025 +0530 |
committer | Ed Tanous <ed@tanous.net> | Mon Apr 14 22:38:31 2025 +0000 |
tree | a998c05c4780ed6fc46022d31fde7a8e39066b02 | |
parent | fdf51f5c824273aafaa9262932735ca443db23eb [diff] |
Fix OEM Json payload in OEM Fragment handler OEM fragments handlers need not mention the OEM key in the JSON this will be added by the OEM route handler based on the fragment registration information Tests 1. Service validator passed on daytonax image 2. OpenBMC Manager schema payload contain the FAN OEM properties in the correct order. ``` curl -k -u root:0penBmc https://localhost:2443/redfish/v1/Managers/bmc { "@odata.id": "/redfish/v1/Managers/bmc", "@odata.type": "#Manager.v1_14_0.Manager", …. "Id": "bmc", "LastResetTime": "2025-04-14T08:48:34+00:00", …. "NetworkProtocol": { "@odata.id": "/redfish/v1/Managers/bmc/NetworkProtocol" }, "Oem": { "OpenBmc": { "@odata.id": "/redfish/v1/Managers/bmc#/Oem/OpenBmc", "@odata.type": "#OpenBMCManager.v1_0_0.Manager", "Certificates": { "@odata.id": "/redfish/v1/Managers/bmc/Truststore/Certificates" }, "Fan": { "@odata.id": "/redfish/v1/Managers/bmc#/Oem/OpenBmc/Fan", "@odata.type": "#OpenBMCManager.v1_0_0.Manager.Fan", "FanControllers": { "@odata.id": "/redfish/v1/Managers/bmc#/Oem/OpenBmc/Fan/FanControllers", "@odata.type": "#OpenBMCManager.v1_0_0.Manager.FanControllers", "Fan_SYS0": { "@odata.id": "/redfish/v1/Managers/bmc#/Oem/OpenBmc/Fan/FanControllers/Fan_SYS0", "@odata.type": "#OpenBMCManager.v1_0_0.Manager.FanController", "FFGainCoefficient": 1.0, "FFOffCoefficient": 0.0, "ICoefficient": 0.0, "ILimitMax": 0.0, "ILimitMin": 0.0, "Inputs": [ "Fan_SYS0_0", "Fan_SYS0_1" ], "NegativeHysteresis": 0.0, "OutLimitMax": 100.0, "OutLimitMin": 10.0, "Outputs": [ "Pwm 1" ], "PCoefficient": 0.0, "PositiveHysteresis": 0.0, "SlewNeg": 0.0, "SlewPos": 0.0, "Zones": [ { "@odata.id": "/redfish/v1/Managers/bmc#/Oem/OpenBmc/Fan/FanZones/Zone_1" } ] }, …… } } } }, "PowerState": "On", "ServiceEntryPointUUID": "3c9e6cf1-3ed7-4105-87b5-31beb31e8f4d", "Status": { "Health": "OK", "State": "Enabled" }, "UUID": "a5d927e1-e8cb-462c-8f73-7d01ab2c2657" } ``` Change-Id: Ib30dbaed8f2bf2c361f857cb4a0c6b0ab15ee65a Signed-off-by: Rohit PAI <ropai@nvidia.com>
This component attempts to be a "do everything" embedded webserver for OpenBMC.
The webserver implements a few distinct interfaces:
bmcweb at a protocol level supports http and https. TLS is supported through OpenSSL.
Bmcweb supports multiple authentication protocols:
Each of these types of authentication is able to be enabled or disabled both via runtime policy changes (through the relevant Redfish APIs) or via configure time options. All authentication mechanisms supporting username/password are routed to libpam, to allow for customization in authentication implementations.
All authorization in bmcweb is determined at routing time, and per route, and conform to the Redfish PrivilegeRegistry.
*Note: Non-Redfish functions are mapped to the closest equivalent Redfish privilege level.
bmcweb is configured per the meson build files. Available options are documented in meson_options.txt
meson setup builddir ninja -C builddir
If any of the dependencies are not found on the host system during configuration, meson will automatically download them via its wrap dependencies mentioned in bmcweb/subprojects
.
bmcweb relies on some on-system data for storage of persistent data that is internal to the process. Details on the exact data stored and when it is read/written can seen from the persistent_data
namespace.
When SSL support is enabled and a usable certificate is not found, bmcweb will generate a self-signed a certificate before launching the server. Please see the bmcweb source code for details on the parameters this certificate is built with.
bmcweb is capable of aggregating resources from satellite BMCs. Refer to AGGREGATION.md for more information on how to enable and use this feature.