Bug #77258
closedbluestore_tp tracepoint library is built but never installed
0%
Description
src/tracing/CMakeLists.txt builds the bluestore tracepoint provider library (bluestore_tp) via add_tracing_library(), but bluestore_tp is missing from the install(TARGETS ...) list. libbluestore_tp.so is compiled but is never installed into the install prefix.
The ceph-osd registers the bluestore tracepoint provider unconditionally (in src/ceph_osd.cc, TracepointProvider::initialize<bluestore_tracepoint_traits>) and dlopen()s it when bluestore_tracing is enabled. With the library not installed, dlopen() returns NULL and the OSD aborts:
./src/common/TracepointProvider.cc: In function 'void TracepointProvider::verify_config(const ceph::common::ConfigProxy&)'
Reproduce:¶
1. Build on a clean system with WITH_LTTNG=ON and install.
2. On a running OSD: ceph config set osd bluestore_tracing true
3. ceph-osd aborts in `TracepointProvider::verify_config`
Root cause:¶
bluestore_tp is the only unconditionally-built tracepoint provider not listed in install(TARGETS ...); osd_tp, os_tp, rados_tp, rbd_tp, rgw_op_tp, rgw_rados_tp, and mgr_op_tp are all installed, bluestore_tp is not.
Suggested Fix:¶
In src/tracing/CMakeLists.txt, add bluestore_tp to the list of install targets:
install(TARGETS rados_tp osd_tp os_tp bluestore_tp rgw_rados_tp rgw_op_tp
mgr_op_tp DESTINATION ${CMAKE_INSTALL_LIBDIR})
PP Updated by Ponnuvel P 6 months ago
- Pull request ID set to 69341
PP Updated by Ponnuvel P 6 months ago
- Status changed from New to In Progress
- Assignee set to Sunny Kumar
PP Updated by Ponnuvel P 6 months ago
- Assignee changed from Sunny Kumar to Satya Jhaveri
SJ Updated by Satya Jhaveri 5 months ago
- Backport set to squid tentacle umbrella
UB Updated by Upkeep Bot 3 months ago
- Copied to Backport #80625: tentacle: bluestore_tp tracepoint library is built but never installed added
UB Updated by Upkeep Bot 3 months ago
- Copied to Backport #80626: squid: bluestore_tp tracepoint library is built but never installed added
UB Updated by Upkeep Bot 3 months ago
- Copied to Backport #80627: umbrella: bluestore_tp tracepoint library is built but never installed added
UB Updated by Upkeep Bot 3 months ago
- Status changed from In Progress to Backporting
- Merge Commit set to acbac5f468c1f5d286f69fb4c411ad414f65e836
- Fixed In set to v21.3.0-3413-gacbac5f468
- Upkeep Timestamp set to 2026-09-18T00:21:02+00:00