| commit | a08c990a897bc365ca00129d97915bda3a40f0b5 | [log] [tgz] |
|---|---|---|
| author | gBMC Team <gbmc-core@google.com> | Fri Oct 10 15:34:10 2025 -0700 |
| committer | Copybara-Service <copybara-worker@google.com> | Fri Oct 10 15:34:46 2025 -0700 |
| tree | ff89d7059e5e7acb4585cc0622dcafea455e5d35 | |
| parent | c40a84150978382c43124cd3f77a3101a1b4e8a8 [diff] |
Not recoverable lock exception reproducer. This reliably allows the CLI to reliably put the shared memory segment lock into a bad state.
example output usage to reproduce:
fiterman@fiterman-dev:/google/src/cloud/fiterman/tlbmc_dev/google3$ blaze-bin/third_party/milotic/external/cc/tlbmc/hal/shared_mem/demo/shared_mem_cli -command get_metrics
.....
fiterman@fiterman-dev:/google/src/cloud/fiterman/tlbmc_dev/google3$ blaze-bin/third_party/milotic/external/cc/tlbmc/hal/shared_mem/demo/shared_mem_cli -command crash_test
Crashing the process under lock
Killed
fiterman@fiterman-dev:/google/src/cloud/fiterman/tlbmc_dev/google3$ blaze-bin/third_party/milotic/external/cc/tlbmc/hal/shared_mem/demo/shared_mem_cli -command get_metrics
WARNING: Logging before InitGoogle() is written to STDERR
E0000 00:00:1760066642.216733 1199762 segment_manager.cc:63] Not recoverable lock exception happened: boost::interprocess::lock_exception. Will remove the init file and shared memory, then create a new one.
W0000 00:00:1760066642.216888 1199762 segment_manager.cc:106] Creating shared memory; this should only happen once per boot.
W0000 00:00:1760066642.217411 1199762 segment_manager.cc:122] Created shared memory object; created file at : /run/tlbmc/shm_initialized
Metrics pointer is 0x7f4c932ce118
Metrics is {
....
PiperOrigin-RevId: 817811283
Change-Id: I0ec1d6ddc7a5f1d37dfb90a75c83d656e3ee40cb
This project is Google's version of BMCWeb.
See Readme Google for Google added features. The following is the original README of OpenBMC/BMCWeb.
==============================================================================
This component attempts to be a “do everything” embedded webserver for OpenBMC.
The webserver implements a few distinct interfaces:
bmcweb at a protocol level supports http and https. TLS is supported through OpenSSL.
Bmcweb supports multiple authentication protocols:
Each of these types of authentication is able to be enabled or disabled both via runtime policy changes (through the relevant Redfish APIs) or via configure time options. All authentication mechanisms supporting username/password are routed to libpam, to allow for customization in authentication implementations.
All authorization in bmcweb is determined at routing time, and per route, and conform to the Redfish PrivilegeRegistry.
*Note: Non-Redfish functions are mapped to the closest equivalent Redfish privilege level.
bmcweb is configured per the meson build files. Available options are documented in meson_options.txt
meson builddir ninja -C builddir
If any of the dependencies are not found on the host system during configuration, meson will automatically download them via its wrap dependencies mentioned in bmcweb/subprojects.
bmcweb relies on some on-system data for storage of persistent data that is internal to the process. Details on the exact data stored and when it is read/written can seen from the persistent_data namespace.
When SSL support is enabled and a usable certificate is not found, bmcweb will generate a self-signed a certificate before launching the server. Please see the bmcweb source code for details on the parameters this certificate is built with.
bmcweb is capable of aggregating resources from satellite BMCs. Refer to AGGREGATION.md for more information on how to enable and use this feature.