OTLP profiler is not working when using multiple share backends
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Shared File Systems Service (Manila) |
Fix Released
|
Medium
|
Sylvan Le Deunff |
Bug Description
Description
===========
osprofiler driver for opentelemetry (OTLP) fails to export traces when manila service is ran with oslo_service.
The root cause seems to be related to the fact that profiler is initialized before forking. Everything works well if profiler is initialized in start method (ie after oslo_service.
Steps to reproduce
==================
* Configure a jaeger instance (e.g with docker-compose https:/
* Ensure installed version of osprofiler >= 4.0.0 to have new OTLP driver
* Install python packages required by OTLP driver: opentelemetry-sdk opentelemetry-
* Add osprofiler middleware to api-paste.ini config file (https:/
* Configure manila to use OTLP driver for profiler (e.g: https:/
* Start manila components (api, scheduler, share)
* Create a share by calling manila API with tracing info (e.g with curl: https:/
Expected result
===============
Open jaeger and find a trace that span from manila-api to manila-share.
Actual result
=============
API and shares does not produce traces... But scheduler do!
Environment
===========
1. manila==16.0.0
2. Custom NetApp share driver
3. StandaloneNetwo
Changed in manila: | |
importance: | Undecided → Medium |
Changed in manila: | |
assignee: | nobody → Sylvan Le Deunff (sylvanld) |
assignee: | Sylvan Le Deunff (sylvanld) → nobody |
Changed in manila: | |
assignee: | nobody → Sylvan Le Deunff (sylvanld) |
Changed in manila: | |
milestone: | none → dalmatian-2 |
Changed in manila: | |
status: | In Progress → Fix Committed |
Changed in manila: | |
status: | Fix Committed → In Progress |
Changed in manila: | |
milestone: | dalmatian-2 → dalmatian-3 |
See additional triage information at https:/ /meetings. opendev. org/meetings/ manila/ 2024/manila. 2024-05- 30-15.00. log.html