[openstack-dev] [Ceilometer][Gnocchi] inconsistent instanceattributes cause infinite update

Luo Gangyi lgy181 at foxmail.com
Mon Dec 21 13:33:27 UTC 2015

@gord, I have looked your link, seems related. 
 But still, image_ref is a problem.
 Luo Gangyi   luogangyi at cmss.chinamobile.com



 ------------------ Original ------------------
  From:  "gord chung";<gord at live.ca>;
 Date:  Mon, Dec 21, 2015 09:12 PM
 To:  "openstack-dev"<openstack-dev at lists.openstack.org>; 
 Subject:  Re: [openstack-dev] [Ceilometer][Gnocchi] inconsistent instanceattributes cause infinite update


we actually looked at this problem here: https://review.openstack.org/#/c/235702/

i think we should add support of new attribute instead.

 On 20/12/2015 10:52 AM, Luo Gangyi wrote:

  Hi devs,
 I found a problem which may cause infinite update of instance's attributes in gnocchi.
 Let's see the resource definition of instance.
   - resource_type: instance
      - 'instance'
      - 'memory'
      - 'memory.usage'
      - 'memory.resident'
      - 'vcpus'
      - 'cpu'
      - 'cpu_util'
      - 'disk.root.size'
      host: resource_metadata.host
      image_ref: resource_metadata.image_ref_url

 Here is the problem, although they have same  attributes, they are *not* same.
 Some of them came from nova's notifications and the others are came from ceilometer-compute-agent.
 1) Those came from notifications, their attributes looks like
 image_ref :  
 host: compute.lgy-openstack-kilo.novalocal 
 2) Those came from ceilometer-compute-agent, 
 image_ref : 
 Such difference will cause alternately and infinitely update of a instance's attributes if we enable nova audit.
 So I suggest we seperate these meters which came from notifications to another resource type like "instance_from_notification".
 Any other idea?
 Luo Gangyi   luogangyi at chinamobile.com


__________________________________________________________________________ OpenStack Development Mailing List (not for usage questions) Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev 
--  gord
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20151221/e0fd4cf2/attachment.html>

More information about the OpenStack-dev mailing list