<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:宋体;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@宋体";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML 预设格式 Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:8.0pt;
        margin-left:36.0pt;
        mso-add-space:auto;
        line-height:106%;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst
        {mso-style-priority:34;
        mso-style-type:export-only;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        mso-add-space:auto;
        line-height:106%;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle
        {mso-style-priority:34;
        mso-style-type:export-only;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        mso-add-space:auto;
        line-height:106%;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast
        {mso-style-priority:34;
        mso-style-type:export-only;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:8.0pt;
        margin-left:36.0pt;
        mso-add-space:auto;
        line-height:106%;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.HTMLChar
        {mso-style-name:"HTML 预设格式 Char";
        mso-style-priority:99;
        mso-style-link:"HTML 预设格式";
        font-family:"Courier New";}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:0cm;background:white">
<span style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#333333">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.</span><span style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#333333"><o:p></o:p></span></p>
<p class="MsoNormal" style="max-width: 45em;font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px">
<span style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#333333">I install osprofiler in devstack with the following commands in local.conf.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt">enable_plugin ceilometer http://git.openstack.org/openstack/ceilometer.git stable/pike<o:p></o:p></p>
<p class="MsoListParagraphCxSpFirst">enable_plugin osprofiler http://git.openstack.org/openstack/osprofiler stable/pike<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">enable_plugin gnocchi https://github.com/gnocchixyz/gnocchi.git master<o:p></o:p></p>
<p class="MsoListParagraphCxSpLast">enable_service gnocchi-api gnocchi-metricd<o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:0cm;background:white">
<span style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#333333"><o:p> </o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:0cm;background:white;max-width: 45em;font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px">
<span style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#333333">Then check the /etc/*.conf like nova, ceilometer and many modules. Following several sentences are existed.<br>
[profiler]<br>
connection_string = messaging://<br>
hmac_keys = SECRET_KEY<br>
trace_sqlalchemy = True<br>
enabled = True<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:0cm;background:white;max-width: 45em;font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px">
<span style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#333333">However, osprofiler cannot run properly. For example,<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:0cm;background:white;max-width: 45em;font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px">
<span style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#333333">stack@ubuntu:~/osprofiler/osprofiler/drivers$ openstack --os-profile hmac-key=SECTRE_KEY server list<br>
+--------------------------------------+---------------+--------+-------------------------------------------------------+--------------------------+---------+<br>
| ID | Name | Status | Networks | Image | Flavor |<br>
+--------------------------------------+---------------+--------+-------------------------------------------------------+--------------------------+---------+<br>
| 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 |<br>
| 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 |<br>
+--------------------------------------+---------------+--------+-------------------------------------------------------+--------------------------+---------+<br>
Trace ID: c7d15b08-31d8-4b59-930a-0b0ecd1e95edDisplay trace with command:<br>
osprofiler trace show --html c7d15b08-31d8-4b59-930a-0b0ecd1e95ed<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:0cm;background:white;max-width: 45em;font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px">
<span style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#333333">stack@ubuntu:~/osprofiler/osprofiler/drivers$ osprofiler trace show --html c7d15b08-31d8-4b59-930a-0b0ecd1e95ed<br>
Trace with UUID c7d15b08-31d8-4b59-930a-0b0ecd1e95ed not found. Please check the HMAC key used in the command.<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:0cm;background:white;max-width: 45em;font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px">
<span style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#333333">The versions of devstack, openstack, osprofiler are all pike.<br>
OS is ubuntu 16.04.<br>
I have tried osprofiler 1.11.0 and 1.14.0 but they have the same problem.<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:0cm;background:white">
<span style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#333333">Looking at the configurations in  /etc/ceilometer/pipeline.yaml and event_pipeline.yaml,  the publishers is  <b>gnocchi://.
</b>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.
<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:0cm;background:white">
<span style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#333333">Trace the instruction “osprofiler trace **”, the following request is sent but received NULL.    
<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:9.6pt;margin-left:0cm;background:white">
<span style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#333333">"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"<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">My local.conf is <o:p></o:p></p>
<p class="MsoListParagraphCxSpFirst">[[local|localrc]]<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">ADMIN_PASSWORD=secret<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">DATABASE_PASSWORD=$ADMIN_PASSWORD<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">RABBIT_PASSWORD=$ADMIN_PASSWORD<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">SERVICE_PASSWORD=$ADMIN_PASSWORD<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">SERVICE_TOKEN=super-secret-admin-token<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">HOST_IP=10.67.247.40<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">LOGFILE=$HOME/logs/stack.sh.log<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">LOGDIR=$HOME/logs<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">VERBOSE=true<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">LOG_COLOR=true<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle"># This enables Neutron, because that's how I roll.<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">disable_service n-net<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">enable_service q-svc<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">enable_service q-agt<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">enable_service q-dhcp<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">enable_service q-l3<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">enable_service q-meta<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">disable_service tempest<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">enable_plugin ceilometer http://git.openstack.org/openstack/ceilometer.git stable/pike<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">enable_plugin osprofiler http://git.openstack.org/openstack/osprofiler stable/pike<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">enable_plugin gnocchi https://github.com/gnocchixyz/gnocchi.git master<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">enable_service gnocchi-api gnocchi-metricd<o:p></o:p></p>
<p class="MsoListParagraphCxSpLast"><o:p> </o:p></p>
<p class="MsoNormal">/etc/ceilometer/ceilometer.conf is like <o:p></o:p></p>
<p class="MsoListParagraphCxSpFirst">[DEFAULT]<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">debug = True<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">transport_url = rabbit://stackrabbit:secret@10.67.247.40:5672/<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle"><o:p> </o:p></p>
<p class="MsoListParagraphCxSpMiddle">[oslo_messaging_notifications]<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">topics = notifications,profiler<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle"><o:p> </o:p></p>
<p class="MsoListParagraphCxSpMiddle">[coordination]<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">backend_url = redis://localhost:6379<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle"><o:p> </o:p></p>
<p class="MsoListParagraphCxSpMiddle">[notification]<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">workers = 5<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">workload_partitioning = True<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle"><o:p> </o:p></p>
<p class="MsoListParagraphCxSpMiddle">[cache]<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">backend_argument = url:redis://localhost:6379<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">backend_argument = distributed_lock:True<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">backend_argument = db:0<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">backend_argument = redis_expiration_time:600<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">backend = dogpile.cache.redis<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">enabled = True<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle"><o:p> </o:p></p>
<p class="MsoListParagraphCxSpMiddle">[service_credentials]<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">auth_url = http://10.67.247.40/identity<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">region_name = RegionOne<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">password = secret<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">username = ceilometer<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">project_name = service<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">project_domain_id = default<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">user_domain_id = default<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">auth_type = password<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle"><o:p> </o:p></p>
<p class="MsoListParagraphCxSpMiddle">[keystone_authtoken]<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">memcached_servers = 10.67.247.40:11211<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">signing_dir = /var/cache/ceilometer<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">cafile = /opt/stack/data/ca-bundle.pem<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">project_domain_name = Default<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">project_name = service<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">user_domain_name = Default<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">password = secret<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">username = ceilometer<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">auth_url = http://10.67.247.40/identity<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">auth_type = password<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle"><o:p> </o:p></p>
<p class="MsoListParagraphCxSpMiddle">[event]<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle">store_raw = info<o:p></o:p></p>
<p class="MsoListParagraphCxSpMiddle"><o:p> </o:p></p>
<p class="MsoListParagraphCxSpLast"><o:p> </o:p></p>
<p class="MsoNormal">Something must go wrong. Can anybody help me ?<o:p></o:p></p>
<p class="MsoListParagraph"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
</div>
</body>
</html>