OsProfiler does not work

Bug #1913705 reported by kiran pawar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
New
Low
Unassigned

Bug Description

Steps of reproduction
1. Add below lines in local.conf and install devstack

enable_plugin panko $GIT_BASE/openstack/panko
enable_plugin ceilometer $GIT_BASE/openstack/ceilometer
enable_plugin osprofiler $GIT_BASE/openstack/osprofiler

# Enable the following services
CEILOMETER_NOTIFICATION_TOPICS=notifications,profiler
ENABLED_SERVICES+=,ceilometer-acompute,ceilometer-acentral
ENABLED_SERVICES+=,ceilometer-anotification,ceilometer-collector
ENABLED_SERVICES+=,ceilometer-alarm-evaluator,ceilometer-alarm-notifier
ENABLED_SERVICES+=,ceilometer-api

2. Make sure below section exist in /etc/cinder/cinder.conf. If not, add the sections.
[profiler]
connection_string = messaging://
hmac_keys = SECRET_KEY
trace_sqlalchemy = True
enabled = True

[oslo_messaging_notifications]
driver = messagingv2
topics = notifications, profiler

3. restart cinder services.
4. cinder --profile SECRET_KEY create 1
Display command output and then below lines
Trace ID: 7570a96d-b339-4a84-8b70-cab952911fb3
To display trace use next command:
osprofiler trace show --html 7570a96d-b339-4a84-8b70-cab952911fb3

5. osprofiler trace show --html 7570a96d-b339-4a84-8b70-cab952911fb3 \
--connection-string messaging:// --transport-url rabbit://stackrabbit:root123@192.168.1.47:5672/

No events are collected for Trace UUID 7570a96d-b339-4a84-8b70-cab952911fb3. Please note that osprofiler has read ALL events from profiler topic, but has not found any for specified Trace UUID.
Trace with UUID 7570a96d-b339-4a84-8b70-cab952911fb3 not found. Please check the HMAC key used in the command.

Revision history for this message
kiran pawar (kpdev) wrote :

osprofiler trace show --html 5bccf782-f0b6-4425-818a-c66782ccd6aa --connection-string redis://localhost:6379 works. So issue might be specific to messaging.

tags: added: ceilometer
tags: added: osprofiler trace
Changed in cinder:
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.