[libvirt] virDomainSetMetadata --> qemuDomainSetMetadata

Eric Blake eblake at redhat.com
Tue Dec 11 16:00:11 UTC 2012


On 12/11/2012 03:07 AM, Daniel P. Berrange wrote:
> On Mon, Dec 10, 2012 at 11:33:34PM +0000, SHAH, Ronak (Ronak R) wrote:
>> Hi,
>>
>> I have requirement to add <metadata> tag into the libvirt XML from the application.
>> While calling virDomainSetMetadata which internally call qemuDomainSetMetadata (correct me here if I am wrong),
>> I am getting following error:
>>
>> qemuDomainSetMetdata:12623 : argument unsupported: QEMU driver does not support<metadata> element
>>
>> Support for setting and getting <metadata> with special namespace is deliberately added in 0.9.10 of libvirt and I am using 0.9.13.
>> I am surprise that the internal qemu driver is still cribbing out it.
> 
> The QEMU driver does support the <metadata> element, but only if you
> specify it when defining the XML as a whole (eg virDomainDefine). For
> unknown reasons, the qemuDomainSetMetdata was not implemented to allow
> for live updating of the <metadata>.

That said, it's a nice beginner's project to implement that
functionality, if you'd like to try your hand at writing the patch.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20121211/28fa13df/attachment-0001.sig>


More information about the libvir-list mailing list