On 05/05/2014 12:05 PM, Solly Ross wrote:
Hi,
I'm doing some work getting libvirt storage pools into OpenStack, as they definitely
make certain operations much easier for the Nova libvirt driver. However, one thing
I noticed is that since storage pools automatically refresh on reboot, initial creation
information gets lost. This poses a problem, since libvirt probes for file type for the
filesystem-based pools (dir, fs, netfs, etc), and can erroneously detect a RAW file as
another file type (for instance, QCOW2). Is there a reason libvirt doesn't have an
option
to persist (to disk) the unchanging parts of the volume XML?
Only the reason of "no one has implemented it". Contributions welcome;
I think it does indeed make sense to figure out a way to store
persistent volume information alongside the persistent pool XML, so that
we can track that a given file is raw and should not be probed.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library
http://libvirt.org