commit | f848367f45e16f715b1df8b07cc6747e2f4b5aba | [log] [tgz] |
---|---|---|
author | Willy Tu <wltu@google.com> | Tue May 10 15:08:10 2022 -0700 |
committer | Ed Tanous <ed@tanous.net> | Thu Jun 02 18:13:52 2022 +0000 |
tree | d654dc1ab19c267d1ff2cb13c2424edd260f6f77 | |
parent | aa6d4537531a9242a051579ced5fd06837b5bb24 [diff] |
Enable redfish journal by default The journal logs in redfish provide really useful information for debugging. Enabling it by default for all system to use it. Tested: Redfish Validator Passed Working example, ``` wget -qO- http://localhost:80/redfish/v1/Managers/bmc/LogServices/Journal { "@odata.id": "/redfish/v1/Managers/bmc/LogServices/Journal", "@odata.type": "#LogService.v1_1_0.LogService", "DateTime": "1970-01-02T22:46:40+00:00", "DateTimeLocalOffset": "+00:00", "Description": "BMC Journal Log Service", "Entries": { "@odata.id": "/redfish/v1/Managers/bmc/LogServices/Journal/Entries" }, "Id": "BMC Journal", "Name": "Open BMC Journal Log Service", "OverWritePolicy": "WrapsWhenFull" } ``` ``` { "@odata.id": "/redfish/v1/Managers/bmc/LogServices/Journal/Entries", "@odata.type": "#LogEntryCollection.LogEntryCollection", "Description": "Collection of BMC Journal Entries", "Members": [ { "@odata.id": "/redfish/v1/Managers/bmc/LogServices/Journal/Entries/91187366227", "@odata.type": "#LogEntry.v1_8_0.LogEntry", "Created": "1970-01-02T01:19:47+00:00", "EntryType": "Oem", "Id": "91187366227", "Message": "bmcweb: (1970-01-02 01:19:47) [DEBUG \"memory.hpp\":438] Get available system components.", "Name": "BMC Journal Entry", "OemRecordFormat": "BMC Journal Entry", "Severity": "OK" }, ... } ``` Change-Id: I4f22e82884b28f76d7b505cca8b690132bc357b9 Signed-off-by: Willy Tu <wltu@google.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/meson_options.txt
and then compiling. For example, meson <builddir> -Dkvm=disabled ...
followed by ninja
in build directory. The option names become C++ preprocessor symbols that control which code is compiled into the program.
meson builddir ninja -C builddir
meson builddir -Dbuildtype=minsize -Db_lto=true -Dtests=disabled ninja -C buildir
If any of the dependencies are not found on the host system during configuration, meson automatically gets them via its wrap dependencies mentioned in bmcweb/subprojects
.
meson builddir -Dwrap_mode=nofallback ninja -C builddir
meson builddir -Dbuildtype=debug ninja -C builddir
meson builddir -Db_coverage=true -Dtests=enabled ninja -C builddir test ninja -C builddir coverage
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.