<DIV>@gord, I have looked your link, seems related. </DIV>
<DIV> </DIV>
<DIV>But still, image_ref is a problem.</DIV>
<DIV> </DIV>
<DIV>
<DIV style="FONT-SIZE: 12px; FONT-FAMILY: Arial Narrow; COLOR: #909090">------------------</DIV>
<DIV style="FONT-SIZE: 14px; FONT-FAMILY: Verdana; COLOR: #000">Luo Gangyi 
<DIV>
<DIV>luogangyi@cmss.chinamobile.com</DIV></DIV></DIV></DIV>
<DIV> </DIV>
<DIV>
<DIV><BR></DIV>
<DIV><BR></DIV>
<DIV style="FONT-SIZE: 12px; FONT-FAMILY: Arial Narrow; PADDING-BOTTOM: 2px; PADDING-TOP: 2px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px">------------------ Original ------------------</DIV>
<DIV style="FONT-SIZE: 12px; BACKGROUND: #efefef; PADDING-BOTTOM: 8px; PADDING-TOP: 8px; PADDING-LEFT: 8px; PADDING-RIGHT: 8px">
<DIV><B>From: </B> "gord chung";<gord@live.ca>;</DIV>
<DIV><B>Date: </B> Mon, Dec 21, 2015 09:12 PM</DIV>
<DIV><B>To: </B> "openstack-dev"<openstack-dev@lists.openstack.org>; <WBR></DIV>
<DIV></DIV>
<DIV><B>Subject: </B> Re: [openstack-dev] [Ceilometer][Gnocchi] inconsistent instanceattributes cause infinite update</DIV></DIV>
<DIV><BR></DIV>we actually looked at this problem here: <A class=moz-txt-link-freetext href="https://review.openstack.org/#/c/235702/">https://review.openstack.org/#/c/235702/</A><BR><BR>i think we should add support of new attribute instead.<BR><BR>
<DIV class=moz-cite-prefix>On 20/12/2015 10:52 AM, Luo Gangyi wrote:<BR></DIV>
<BLOCKQUOTE cite=mid:tencent_290BB7C012ACDC823F1BFACF@qq.com type="cite">
<DIV>Hi devs,</DIV>
<DIV> </DIV>
<DIV>I found a problem which may cause infinite update of instance's attributes in gnocchi.</DIV>
<DIV> </DIV>
<DIV>Let's see the resource definition of instance.</DIV>
<DIV> </DIV>
<DIV>  - resource_type: instance<BR>    metrics:<BR>      - 'instance'<BR>      - 'memory'<BR>      - 'memory.usage'<BR>      - 'memory.resident'<BR>      - 'vcpus'<BR>      - 'cpu'<BR>      - 'cpu_util'<BR>      - 'disk.root.size'</DIV>
<DIV>...</DIV>
<DIV>    attributes:<BR>      host: resource_metadata.host<BR>      image_ref: resource_metadata.image_ref_url</DIV>
<DIV>...<BR></DIV>
<DIV>Here is the problem, although they have same  attributes, they are *not* same.</DIV>
<DIV> </DIV>
<DIV>Some of them came from nova's notifications and the others are came from ceilometer-compute-agent.</DIV>
<DIV> </DIV>
<DIV>1) Those came from notifications, their attributes looks like</DIV>
<DIV> </DIV>
<DIV>image_ref :<A href="http://10.133.12.125:9292/images/" moz-do-not-send="true">http://10.133.12.125:9292/images/</A>  </DIV>
<DIV>host: compute.lgy-openstack-kilo.novalocal </DIV>
<DIV> </DIV>
<DIV>2) Those came from ceilometer-compute-agent, </DIV>
<DIV>image_ref : <A href="http://10.133.12.125:8774/4994e42421a04beda56fff7d817e810e/images/8d6a9cd9-48ae-4a41-bd13-262a46c93d72" moz-do-not-send="true">http://10.133.12.125:8774/4994e42421a04beda56fff7d817e810e/images/8d6a9cd9-48ae-4a41-bd13-262a46c93d72</A> </DIV>
<DIV>host:ea8f8e465d9caff06e80a0fda6f30d02725e0b55dc0fd940954cb55c</DIV>
<DIV> </DIV>
<DIV>Such difference will cause alternately and infinitely update of a instance's attributes if we enable nova audit.</DIV>
<DIV> </DIV>
<DIV>So I suggest we seperate these meters which came from notifications to another resource type like "instance_from_notification".</DIV>
<DIV> </DIV>
<DIV>Any other idea?</DIV>
<DIV><BR> </DIV>
<DIV>
<DIV style="FONT-SIZE: 12px; FONT-FAMILY: Arial Narrow; COLOR: #909090">------------------</DIV>
<DIV style="FONT-SIZE: 14px; FONT-FAMILY: Verdana; COLOR: #000">Luo Gangyi 
<DIV>
<DIV><A class=moz-txt-link-abbreviated href="mailto:luogangyi@chinamobile.com">luogangyi@chinamobile.com</A></DIV></DIV></DIV></DIV>
<DIV> </DIV><BR>
<FIELDSET class=mimeAttachmentHeader></FIELDSET> <BR><PRE wrap="">__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: <A class=moz-txt-link-abbreviated href="mailto:OpenStack-dev-request@lists.openstack.org?subject:unsubscribe">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</A>
<A class=moz-txt-link-freetext href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</A>
</PRE></BLOCKQUOTE><BR><PRE class=moz-signature cols="72">-- 
gord</PRE>
<DIV></DIV></DIV>