Hi,<div><br></div><div>we have an Openstack test installation, and recently decide to install on one of the compute nodes a monitoring solution using ganglia 3.2 and hsflowd.</div><div><br></div><div>After some strange error in hsflowd debug output </div>
<div><br></div><div>(Several lines like those:</div><div>libvir: Storage error : Storage volume not found: no storage vol with matching path</div><div>virStorageLookupByPath(/var/lib/nova/instances/instance-00000050/disk) failed</div>
<div>It would be a reasonable error, if it weren't that the path is absolutely correct.)</div><div><br></div><div>we noticed that nova instances disk files ( es. /var/lib/nova/instances/INSTANCENAME/disk) aren't registered in libvirt as volumes.</div>
<div>( <i>virsh</i> <i>pool-list</i> only shows the <i>default </i>pool, and <i>virsh vol-list default</i> shows the pool as empty), and this causes hsflowd lookups to fail.</div><div>The Virtual Machines themselves are working perfectly, <i>virsh list </i>shows the list of running instances, and their xmldump contains the appropriate disk section</div>
<div><br></div><div>Example:</div><div><devices></div><div><div>    <emulator>/usr/bin/kvm</emulator></div><div>    <disk type='file' device='disk'></div><div>      <driver name='qemu' type='qcow2'/></div>
<div>      <source file='/var/lib/nova/instances/instance-0000002d/disk'/></div><div>      <target dev='vda' bus='virtio'/></div><div>      <alias name='virtio-disk0'/></div>
<div>      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/></div><div>    </disk></div></div><div><br></div><div>My question is: is this (instance disks not being registered as libvirt volumes) expected behavior, or do we have a problem in our configuration?</div>
<div>Is there any fix / workaround that makes it so that libvirt recognizes them, possibly dinamically, when Openstack creates a new instance?</div><div><br></div><div>Please let me know if you need any further detail.</div>
<div>Thanks in advance for the help!</div><div><br></div><div>Emanuele</div><div><br></div><div><br></div>