commit | c24e6b83cad7f5bbdc6077d1c57246c7fc4b08cb | [log] [tgz] |
---|---|---|
author | Alpana Kumari <alpankum@in.ibm.com> | Thu Oct 01 06:58:46 2020 -0500 |
committer | Alpana Kumari <alpankum@in.ibm.com> | Tue Oct 06 10:55:52 2020 +0000 |
tree | a24737e0b78ee2ffe4b7530f6fe891e5d5003ec6 | |
parent | d43cd0ca0ff6ea11e6dd0ccedb83147bb0b2d207 [diff] |
Fix for missing "Functional" property in dbus for GV cards Handle the case if "Functional" and/or "Present" properties are not sent by the host Test: Tested on a witherspoon which has all 6 GV cards attached. alpana07> curl -k -H "X-Auth-Token: $bmc_token" -X GET https://${bmc}/redfish/v1/Systems/system/Processors/gv100card0 { "@odata.context": "/redfish/v1/$metadata#Processor.Processor", "@odata.id": "/redfish/v1/Systems/system/Processors/gv100card0", "@odata.type": "#Processor.v1_3_1.Processor", "Id": "gv100card0", "Name": "Processor", "ProcessorType": "Accelerator", "Status": { "Health": "OK", "State": "Enabled" } } "State" --> Enabled, property "Present" either not found OR found with value true. "Health"--> OK, interprets "Functional" either not present OR present&true. Change-Id: Ic2a6adb58f8a8b5559184a5ed3d34b28df1cd188 Signed-off-by: Alpana Kumari <alpankum@in.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/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.