commit | 73ec8304734d10b81781fb3aa6611873cdb5bcb1 | [log] [tgz] |
---|---|---|
author | Gunnar Mills <gmills@us.ibm.com> | Tue Apr 14 16:02:42 2020 -0500 |
committer | Gunnar Mills <gmills@us.ibm.com> | Thu Apr 16 16:52:26 2020 +0000 |
tree | 6903759d8db068fcae8f69a02c196bfc2fa109e5 | |
parent | e5aaf047b6b41b0837ef0846cf5356c9a6bcb030 [diff] |
Change EventLog Id to match odata.id Could not find a hard rule to require the Id to match the last segment of the URL/@odata.id but all Redfish mockups match this way, other bmcweb resources do as well, and redfishtool is easier to use if this is true. Before: $ python redfishtool.py -r xxxxxx -u xxxx -p xxxxxxx -S Always \ Systems Logs -i EventLog 5 Transport:getPathBy2:Match: failed match: matchProp=Id, matchValue=EventLog, readValue=Event Log Tested: Validator passed. curl -k https://${bmc}/redfish/v1/Systems/system/LogServices/EventLog { "@odata.id": "/redfish/v1/Systems/system/LogServices/EventLog", "@odata.type": "#LogService.v1_1_0.LogService", "Actions": { "#LogService.ClearLog": { "target": "/redfish/v1/Systems/system/LogServices/EventLog/Actions/LogService.ClearLog" } }, "Description": "System Event Log Service", "Entries": { "@odata.id": "/redfish/v1/Systems/system/LogServices/EventLog/Entries" }, "Id": "EventLog", "Name": "Event Log Service", "OverWritePolicy": "WrapsWhenFull" Change-Id: Ia324bebfcae65a195adbb3a4126100d82efde383 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
This component attempts to be a "do everything" embedded webserver for openbmc.
At this time, the webserver implements a few interfaces:
BMCWeb is configured by setting -D
flags that correspond to options in bmcweb/CMakeLists.txt
and then compiling. For example, cmake -DBMCWEB_ENABLE_KVM=NO ...
followed by make
. The option names become C++ preprocessor symbols that control which code is compiled into the program.
When BMCWeb starts running, it reads persistent configuration data (such as UUID and session data) from a local file. If this is not usable, it generates a new configuration.
When BMCWeb SSL support is enabled and a usable certificate is not found, it will generate a self-sign a certificate before launching the server. The keys are generated by the secp384r1
algorithm. The certificate
C=US, O=OpenBMC, CN=testhost
,SHA-256
algorithm.