[Openstack] 【osprofiler】trace with UUID not found

huanglingyan (A) huanglingyan2 at huawei.com
Wed Feb 7 01:45:24 UTC 2018


There's always an error "Trace with UUID *** not found. Please check the HMAC key used int the command." when I use osprofiler with any openstack command.
I install osprofiler in devstack with the following commands in local.conf.
enable_plugin ceilometer http://git.openstack.org/openstack/ceilometer.git stable/pike

enable_plugin osprofiler http://git.openstack.org/openstack/osprofiler stable/pike

enable_plugin gnocchi https://github.com/gnocchixyz/gnocchi.git master

enable_service gnocchi-api gnocchi-metricd



Then check the /etc/*.conf like nova, ceilometer and many modules. Following several sentences are existed.
[profiler]
connection_string = messaging://
hmac_keys = SECRET_KEY
trace_sqlalchemy = True
enabled = True

However, osprofiler cannot run properly. For example,

stack at ubuntu:~/osprofiler/osprofiler/drivers$ openstack --os-profile hmac-key=SECTRE_KEY server list
+--------------------------------------+---------------+--------+-------------------------------------------------------+--------------------------+---------+
| ID | Name | Status | Networks | Image | Flavor |
+--------------------------------------+---------------+--------+-------------------------------------------------------+--------------------------+---------+
| 5d6beaf0-f3cc-485a-b610-c81c730dfc46 | cirros_server | ACTIVE | private=10.0.0.7, fd1e:b842:338:0:f816:3eff:fe39:b43c | cirros-0.3.5-x86_64-disk | m1.tiny |
| 0102b739-1fa8-492b-83a8-cb915e6e9652 | ins_1 | ACTIVE | public=172.24.4.10, 2001:db8::5 | cirros-0.3.5-x86_64-disk | m1.tiny |
+--------------------------------------+---------------+--------+-------------------------------------------------------+--------------------------+---------+
Trace ID: c7d15b08-31d8-4b59-930a-0b0ecd1e95edDisplay trace with command:
osprofiler trace show --html c7d15b08-31d8-4b59-930a-0b0ecd1e95ed

stack at ubuntu:~/osprofiler/osprofiler/drivers$ osprofiler trace show --html c7d15b08-31d8-4b59-930a-0b0ecd1e95ed
Trace with UUID c7d15b08-31d8-4b59-930a-0b0ecd1e95ed not found. Please check the HMAC key used in the command.

The versions of devstack, openstack, osprofiler are all pike.
OS is ubuntu 16.04.
I have tried osprofiler 1.11.0 and 1.14.0 but they have the same problem.

Looking at the configurations in  /etc/ceilometer/pipeline.yaml and event_pipeline.yaml,  the publishers is  gnocchi://. When I change it as a file publishers, I find that messages in pipeline were published periodically while no events in event_pipeline were published.

Trace the instruction “osprofiler trace **”, the following request is sent but received NULL.

"GET /v2/events?q.field=base_id&q.op=eq&q.type=&q.value=307b7b6e-78c5-4df3-8b82-190ae50e59c1&limit=100000 HTTP/1.1" 200 226 "-" ceilometer    client.apiclient"

My local.conf is

[[local|localrc]]

ADMIN_PASSWORD=secret

DATABASE_PASSWORD=$ADMIN_PASSWORD

RABBIT_PASSWORD=$ADMIN_PASSWORD

SERVICE_PASSWORD=$ADMIN_PASSWORD

SERVICE_TOKEN=super-secret-admin-token

HOST_IP=10.67.247.40

LOGFILE=$HOME/logs/stack.sh.log

LOGDIR=$HOME/logs

VERBOSE=true

LOG_COLOR=true

# This enables Neutron, because that's how I roll.

disable_service n-net

enable_service q-svc

enable_service q-agt

enable_service q-dhcp

enable_service q-l3

enable_service q-meta

disable_service tempest

enable_plugin ceilometer http://git.openstack.org/openstack/ceilometer.git stable/pike

enable_plugin osprofiler http://git.openstack.org/openstack/osprofiler stable/pike

enable_plugin gnocchi https://github.com/gnocchixyz/gnocchi.git master

enable_service gnocchi-api gnocchi-metricd


/etc/ceilometer/ceilometer.conf is like

[DEFAULT]

debug = True

transport_url = rabbit://stackrabbit:secret@10.67.247.40:5672/



[oslo_messaging_notifications]

topics = notifications,profiler



[coordination]

backend_url = redis://localhost:6379



[notification]

workers = 5

workload_partitioning = True



[cache]

backend_argument = url:redis://localhost:6379

backend_argument = distributed_lock:True

backend_argument = db:0

backend_argument = redis_expiration_time:600

backend = dogpile.cache.redis

enabled = True



[service_credentials]

auth_url = http://10.67.247.40/identity

region_name = RegionOne

password = secret

username = ceilometer

project_name = service

project_domain_id = default

user_domain_id = default

auth_type = password



[keystone_authtoken]

memcached_servers = 10.67.247.40:11211

signing_dir = /var/cache/ceilometer

cafile = /opt/stack/data/ca-bundle.pem

project_domain_name = Default

project_name = service

user_domain_name = Default

password = secret

username = ceilometer

auth_url = http://10.67.247.40/identity

auth_type = password



[event]

store_raw = info




Something must go wrong. Can anybody help me ?



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20180207/cc3a0d0c/attachment.html>


More information about the Openstack mailing list