commit | d8f8a7d77e0fc3aabcf86eed1eb4ed57dfc241d3 | [log] [tgz] |
---|---|---|
author | Myung Bae <myungbae@us.ibm.com> | Wed Oct 23 12:55:08 2024 -0400 |
committer | Myung Bae <myungbae@us.ibm.com> | Wed Oct 23 12:07:53 2024 -0500 |
tree | aabccfa9587f87c1a02eb4c09e9ef35b7e915b2a | |
parent | 6424e43458a9b0e0aa19680e0b9eb2cf6b392133 [diff] |
Fix persistent data directory creation The commit c282e8b6c7f7f4e4ec94e4d1f1a380803e13da08 [1] causes an error like ``` Oct 23 16:46:25 p10bmc bmcwebd[8985]: [CRITICAL persistent_data.hpp:220] Can't create persistent folders Invalid argument ``` It is because the given persistent data filename does not contain the directory name. Tested: - Update subscription data like ``` curl -k -X PATCH https://${bmc}/redfish/v1/EventService/Subscriptions/${SUBID} \ -H "Content-Type: application/json" \ -d '{"VerifyCertificate": false}' ``` - And check the above error. - Restart bmcweb and check whether it is stored [1] https://gerrit.openbmc.org/c/openbmc/bmcweb/+/75314 Change-Id: I0aa4768bbdb195b5247fd30c5078ada60187a4b3 Signed-off-by: Myung Bae <myungbae@us.ibm.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.