commit | 565dfb6f9a87e15fa707e6b2c89222c4419e7491 | [log] [tgz] |
---|---|---|
author | Claire Weinan <cweinan@google.com> | Wed Apr 27 23:05:12 2022 -0700 |
committer | Ed Tanous <ed@tanous.net> | Fri May 13 00:21:38 2022 +0000 |
tree | 9f4570f54f620d0189938b787daa67c79da7eaff | |
parent | 482c45a52e221882be5142a873cd828c380d7e54 [diff] |
LogService: Sort dump entries collection by Id Ordering by ID (represented internally as the last part of the D-Bus object path, after the rightmost slash) is done for human readability, but please note that Redfish clients should not be written in a way that assumes a particular ordering of entries in a collection. Without this change, entries are presented in the collection in whatever order entries are returned by the D-Bus method GetManagedObjects(), called in getDumpEntryCollection(). The effect of this change is that entries are presented in chronological order (by ID) with the earliest entry appearing first. Testing: 1. Prerequisite: Fixed createDump() locally, similar to https://gerrit.openbmc-project.xyz/c/openbmc/bmcweb/+/38954 2. Created 12 BMC dump entries by repeatedly calling CollectDiagnosticData: curl -k -H "X-Auth-Token: $token" -X POST http://${bmc}/redfish/v1/Managers/bmc/LogServices/Dump/Actions/LogService.CollectDiagnosticData -d '{"DiagnosticDataType":"Manager", "OEMDiagnosticDataType":"BMC"}' 3. Retrieved BMC dump entries collection and verified that entries were sorted by ID (1,2,3,4,5,6,7,8,9,10,11,12): curl -k -H "X-Auth-Token: $token" -X GET http://${bmc}/redfish/v1/Managers/bmc/LogServices/Dump/Entries Signed-off-by: Claire Weinan <cweinan@google.com> Change-Id: I99f96dd6679163cea443353ad0e4c8c750cd4330
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.