Bug 1181157
Summary: | libvirtError: argument unsupported: QEMU driver does not support <metadata> element | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Martin Sivák <msivak> | ||||
Component: | libvirt | Assignee: | Peter Krempa <pkrempa> | ||||
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> | ||||
Severity: | urgent | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 7.0 | CC: | alukiano, bmcclain, dfediuck, dyuan, ecohen, gklein, honzhang, iheim, jdenemar, jiahu, jkurik, knoel, lmiksik, lsurette, mavital, michal.skrivanek, msivak, rbalakri, rhodain, sherold, s.kieske, snagar, yeylon, zhwang | ||||
Target Milestone: | rc | Keywords: | ZStream | ||||
Target Release: | --- | ||||||
Hardware: | x86_64 | ||||||
OS: | Linux | ||||||
Whiteboard: | sla | ||||||
Fixed In Version: | libvirt-1.2.8-1.el7 | Doc Type: | Bug Fix | ||||
Doc Text: |
Cause:
Initial implementation of the APIs used for manipulating/requesting of the guest metadata didn't implement the actions for custom metadata stored in the <metadata> element in the guest xml.
Consequence:
Users were not able to modify the custom metadata element at runtime via the provided APIs. There was no workaround to achieve modification of the custom metadata for a running VM.
Fix:
The missing functionality was implemented.
Result:
Users are now able to use the full potential of the virDomain(Set|Get)Metadata API.
|
Story Points: | --- | ||||
Clone Of: | 1179592 | ||||||
: | 1184929 (view as bug list) | Environment: | |||||
Last Closed: | 2015-03-05 07:48:56 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 1164311, 1179592, 1184929 | ||||||
Attachments: |
|
Description
Martin Sivák
2015-01-12 13:47:27 UTC
Already in 7.1 thanks to rebase. BTW, this is an equivalent of a 6.6 bug 1115039, which can be consulted for verification steps. I can reproduce this bug with libvirt-1.1.1-29.el7 [root@zhwangrhel71 ~]# python testmetadata.py -n rhel7abc -o set -t 2 -u "http://herp.derp/" -k test -m "<foo><bar fooish='blurb'>baz</bar></foo>" libvirt: QEMU Driver error : argument unsupported: QEMU driver does not support <metadata> element Traceback (most recent call last): File "testmetadata.py", line 85, in <module> main() File "testmetadata.py", line 78, in main do_set(dom, mtype, metadata, key, uri, flags) File "testmetadata.py", line 9, in do_set if dom.setMetadata(mtype, metadata, key, uri, flags): File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1597, in setMetadata if ret == -1: raise libvirtError ('virDomainSetMetadata() failed', dom=self) libvirt.libvirtError: argument unsupported: QEMU driver does not support <metadata> element Verify this bug with libvirt-1.2.8-15.el7.x86_64 1.# python testmetadata.py -n rhel7abc -o set -t 2 -u "http://herp.derp/" -k test -m "<foo><bar fooish='blurb'>baz</bar></foo>" Okay 2.# python testmetadata.py -n rhel7abc -o get -t 2 -u "http://herp.derp/" <foo> <bar fooish="blurb">baz</bar> </foo> 3.# virsh dumpxml rhel7abc <metadata> <test:foo xmlns:test="http://herp.derp/"> <test:bar fooish="blurb">baz</test:bar> </test:foo> </metadata> 4.# python testmetadata.py -n rhel7abc -o remove -t 2 -u "http://herp.derp/" Okay 5.# # virsh dumpxml rhel7abc <metadata/> Edit the guest's metadata with metadata command 1.virsh -c qemu://rhel7abc/system 2.virsh # metadata rhel7abc --uri http://herp.derp/ --key herp --set "<derp xmlns:foobar='http://foo.bar/'></derp>" Metadata modified 3.virsh # metadata rhel7abc --uri http://herp.derp/ <derp xmlns:foobar="http://foo.bar/"/> 4.virsh # dumpxml rhel7abc <metadata> <herp:derp xmlns:foobar="http://foo.bar/" xmlns:herp="http://herp.derp/"/> </metadata> 5.virsh # metadata rhel7abc --uri http://herp.derp/ --remove Metadata removed 6.virsh # metadata rhel7abc --uri http://herp.derp/ error: metadata not found: Requested metadata element is not present 7.virsh # dumpxml rhel7abc <metadata/> According to the upper steps, mark this bug verifed Created attachment 988387 [details]
The script to reproduce the bug
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2015-0323.html |