commit | 3cde86f14b7835775d7c37e993fb84a3cd01ef9d | [log] [tgz] |
---|---|---|
author | Jonathan Doman <jonathan.doman@intel.com> | Wed Dec 02 14:50:45 2020 -0800 |
committer | Ed Tanous <ed@tanous.net> | Fri May 14 23:05:31 2021 +0000 |
tree | 69300be6945eedead8c254de21f4b5b205f25ab4 | |
parent | 80be2cdb217fd11e60c403a019134ee970ae6453 [diff] |
Handle Processor.AppliedOperatingConfig PATCH Allow client to PATCH the URI pointing to the active OperatingConfig for a given processor, in order to dynamically change the processor's configuration. The OperatingConfig related properties are only available if a supporting backend daemon is running - currently we have the Intel cpuinfoapp in the smbios-mdr repo. This change does basic validation on input data, then sets the D-Bus property and translates any return errors into Redfish error messages. Tested: - PATCH non-existent Processor -> ResourceNotFound - PATCH with string/int -> PropertyValueTypeError - PATCH with object w/o @odata.id -> PropertyMissing+Unknown - PATCH with config from different Processor -> PropertyValueIncorrect - PATCH with non-existent config -> PropertyValueIncorrect - PATCH with valid config -> OK, see new config on next GET - Hack cpuinfoapp backend service to return all possible error codes and verify that correct Redfish error is returned. Change-Id: I19d8b461fac25682f1883fe769d840f18f4141a8 Signed-off-by: Jonathan Doman <jonathan.doman@intel.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 -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.