no memory.usage metric on resource usage report

asked 2015-03-12 14:44:55 -0600

sk91 gravatar image

updated 2015-03-12 15:12:27 -0600

i have installed openstack juno ubuntu 14.04 on all nodes. when i click at "Resource Usage" to generate report on dash board, i dont get the memory.usage metric. i have searched and tried alot but couldnt reach the results.

here is what i have done :

on compute node :

os@compute:~$ virsh version

Compiled against library: libvirt 1.2.2
Using library: libvirt 1.2.2
Using API: QEMU 1.2.2
Running hypervisor: QEMU 2.0.0

os@compute:~$ virsh list --all

 Id    Name                           State
 3     instance-0000001b              running

os@compute:~$ virsh dominfo 3

Id:             3
Name:           instance-0000001b
UUID:           e00dd2b4-e8ba-4bf6-a93b-81fdbf9aee3c
OS Type:        hvm
State:          running
CPU(s):         1
CPU time:       8.7s
Max memory:     260096 KiB
Used memory:    260096 KiB
Persistent:     yes
Autostart:      disable
Managed save:   no
Security model: apparmor
Security DOI:   0
Security label: libvirt-e00dd2b4-e8ba-4bf6-a93b-81fdbf9aee3c (enforcing)

os@compute:~$ virsh dumpxml 3

<domain type='qemu' id='3'>
    <nova:instance xmlns:nova="">
      <nova:package version="2014.2.1"/>
      <nova:creationTime>2015-03-12 19:26:15</nova:creationTime>
      <nova:flavor name="salar">
        <nova:user uuid="e8bd7a73445d4a0c80119f0c84fda6ef">admin</nova:user>
        <nova:project uuid="eb81354a74324334b106c200edab9f15">admin</nova:project>
      <nova:root type="image" uuid="eaadbcd8-c19c-41ea-b51f-b45fff201724"/>
  <memory unit='KiB'>260096</memory>
  <currentMemory unit='KiB'>260096</currentMemory>
  <vcpu placement='static' cpuset='0-2'>1</vcpu>
  <sysinfo type='smbios'>
      <entry name='manufacturer'>OpenStack Foundation</entry>
      <entry name='product'>OpenStack Nova</entry>
      <entry name='version'>2014.2.1</entry>
      <entry name='serial'>4c981778-18b2-4700-a63d-684454f933be</entry>
      <entry name='uuid'>e00dd2b4-e8ba-4bf6-a93b-81fdbf9aee3c</entry>
    <type arch='x86_64' machine='pc-i440fx-trusty'>hvm</type>
    <boot dev='hd'/>
    <smbios mode='sysinfo'/>
  <cpu mode='host-model'>
    <model fallback='allow'/>
    <topology sockets='1' cores='1' threads='1'/>
  <clock offset='utc'/>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2' cache='none'/>
      <source file='/var/lib/nova/instances/e00dd2b4-e8ba-4bf6-a93b-81fdbf9aee3c/disk'/>
      <target dev='vda' bus='virtio'/>
      <alias name='virtio-disk0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2' cache='none'/>
      <source file='/var/lib/nova/instances/e00dd2b4-e8ba-4bf6-a93b-81fdbf9aee3c/disk.local'/>
      <target dev='vdb' bus='virtio'/>
      <alias name='virtio-disk1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2' cache='none'/>
      <source file='/var/lib/nova/instances/e00dd2b4-e8ba-4bf6-a93b-81fdbf9aee3c/disk.swap'/>
      <target dev='vdc' bus='virtio'/>
      <alias name='virtio-disk2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
    <controller type='usb' index='0'>
      <alias name='usb0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
    <controller type='pci' index='0' model ...
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-04-11 17:35:29 -0600

Rakesh Patnaik gravatar image

updated 2015-04-11 17:36:50 -0600

I checked the code branch stable/juno on ceilometer git repository and did not find a memory inspector for libvirt; Although proposed/kilo branch has this code.

You could cherry-pick this commit to compile ceilometer-agent-compute package if you want to stick to juno release:

Also please make sure the following lists node memory stats on virsh:

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2015-03-12 14:44:55 -0600

Seen: 832 times

Last updated: Apr 11 '15