commit | accdbb2c0eb90d64f60be6319685c0814cafff49 | [log] [tgz] |
---|---|---|
author | Andrew Geissler <geissonator@yahoo.com> | Tue Nov 09 15:24:45 2021 -0600 |
committer | Andrew Geissler <geissonator@yahoo.com> | Tue Nov 09 15:24:45 2021 -0600 |
tree | 2c507444ec8ff8cad3c9cac2aade87aeff69f6f8 | |
parent | 4028ff77ddebe603b009a8afaf6bc36bc5949612 [diff] |
redfish:sensors: change verbose error trace to debug It was noticed recently when enabling bmcweb error traces to assist with some debug, the journal was filling with logs like this: Nov 09 21:23:46 p10bmc bmcweb[249]: (2021-11-09 21:23:46) [ERROR "sensors.hpp":2584] fan3_1 not in sensor list Nov 09 21:23:46 p10bmc bmcweb[249]: (2021-11-09 21:23:46) [ERROR "sensors.hpp":2584] fan3_0 not in sensor list Nov 09 21:23:46 p10bmc bmcweb[249]: (2021-11-09 21:23:46) [ERROR "sensors.hpp":2584] fan4_0 not in sensor list ... This was the result of a test case reading a single sensor: curl -k -H "X-Auth-Token: $token" -X GET https://${bmc}/redfish/v1/Chassis/chassis/Sensors/fan4_1 This code logic is fairly complex but appears to get all sensors of the type passed in, then iterates through them looking for the one(s) of interest. This code path should not be an error. Tested: - Verified that after running the following command, the unwanted logs were no longer in the journal: curl -k -H "X-Auth-Token: $token" -X GET https://${bmc}/redfish/v1/Chassis/chassis/Sensors/fan4_1{ "@odata.id": "/redfish/v1/Chassis/chassis/Sensors/fan4_1", "@odata.type": "#Sensor.v1_0_0.Sensor", "Id": "fan4_1", "Name": "fan4 1", "Reading": 7772.0, "ReadingRangeMax": null, "ReadingRangeMin": null, "ReadingType": "Rotational", "ReadingUnits": "RPM", "Status": { "Health": "OK", "State": "Enabled" } } Change-Id: Iaffd0243ddcd148b72486b3025673bb35d0dd7a3 Signed-off-by: Andrew Geissler <geissonator@yahoo.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 coverage -C builddir test
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.