commit | c21c64b6523d882c927c0e3e29d65c364b3aa1d5 | [log] [tgz] |
---|---|---|
author | Claire Weinan <cweinan@google.com> | Sun Aug 14 20:04:45 2022 -0700 |
committer | Ed Tanous <ed@tanous.net> | Mon Aug 15 19:31:16 2022 +0000 |
tree | 9f336565c077f9c672aaf2de81f2713fa22b1213 | |
parent | 2b82937ecef572954b49569177b16831cbc09cfe [diff] |
LogServices: Fix dump timestamp regression https://gerrit.openbmc.org/c/openbmc/bmcweb/+/55468 was a refactoring task that was not intended to have any client impact. However it had a bug where it unintentionally changed the “Created” timestamp of log entries of all dump types to be smaller (earlier) than pre-refactoring. Tested: FaultLog entry before fix (timestamp too large--reported as max Redfish time): curl k -H "X-Auth-Token: $token" -X GET http://${bmc}/redfish/v1/Managers/bmc/LogServices/FaultLog/Entries/1 { "@odata.id": "/redfish/v1/Managers/bmc/LogServices/FaultLog/Entries/1", "@odata.type": "#LogEntry.v1_8_0.LogEntry", "Created": "9999-12-31T23:59:59+00:00", "EntryType": "Event", "Id": "1", "Name": "FaultLog Dump Entry" } FaultLog entry after fix (timestamp reported correctly): curl -k -H "X-Auth-Token: $token" -X GET http://${bmc}/redfish/v1/Managers/bmc/LogServices/FaultLog/Entries/1 { "@odata.id": "/redfish/v1/Managers/bmc/LogServices/FaultLog/Entries/1", "@odata.type": "#LogEntry.v1_8_0.LogEntry", "Created": "2022-08-14T10:29:40+00:00", "EntryType": "Event", "Id": "1", "Name": "FaultLog Dump Entry" } Tested similarly for a BMC Dump entry. Interestingly, it seems like the System Dump entry timestamp before the refactoring task was too small, and the bug actually helped to correct it. In any case, this change reverts timestamp behavior to match what it was pre-refactoring. Redfish Service Validator succeeded on the following URI trees: /redfish/v1/Managers/bmc/LogServices/FaultLog /redfish/v1/Managers/bmc/LogServices/Dump /redfish/v1/Systems/system/LogServices/Dump Signed-off-by: Claire Weinan <cweinan@google.com> Change-Id: I7badbd348595a7bcb61982a4cd6b7e82a16b0219
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 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 by default is compiled with runtime logging disabled, as a performance consideration. To enable it in a standalone build, add the
-Dlogging='enabled'
option to your configure flags. If building within Yocto, add the following to your local.conf.
EXTRA_OEMESON:pn-bmcweb:append = "-Dbmcweb-logging='enabled'"
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.