Bug 766553
Summary: | Expose 'virDomainSnapshotListChildrenNames' API in python binding | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Alex Jia <ajia> |
Component: | libvirt | Assignee: | Peter Krempa <pkrempa> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.3 | CC: | acathrow, dallan, dyuan, eblake, gsun, mzhan, rwu |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | libvirt-0.9.9-1.el6 | Doc Type: | Bug Fix |
Doc Text: |
No Documentation needed
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2012-06-20 06:38:34 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Alex Jia
2011-12-12 10:46:35 UTC
Function export fixed with upstream commit: commit fbd8d6fc8786cde59e34b39450f3c2c632376f8f Author: Peter Krempa <pkrempa> Date: Tue Dec 13 15:49:59 2011 +0100 python: Fix export of virDomainSnapshotListChildrenNames Commit f2013c9dd1ce468b8620ee35c232a93ef7026fb0 added implementation of virDomainSnapshotListChildrenNames override export, but registration of the newly exported function was not added. Thanks for finding the commit that added the export, it made finding the error easier. Follow the steps in description: After last virsh command of create snapshot, create a children snapshot # virsh snapshot-create-as demo Domain snapshot 1326189262 created # virsh snapshot-create-as demo Domain snapshot 1326189264 created # virsh snapshot-list demo --descendants Name Creation Time State ------------------------------------------------------------ 1326189262 2012-01-10 17:54:22 +0800 shutoff 1326189264 2012-01-10 17:54:24 +0800 shutoff # python Python 2.6.6 (r266:84292, Sep 12 2011, 14:03:14) [GCC 4.4.5 20110214 (Red Hat 4.4.5-6)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import libvirt >>> conn = libvirt.open(None) >>> dom = conn.lookupByName('demo') >>> dom.snapshotListNames(0) ['1326189264', '1326189262'] >>> snap_name = dom.snapshotListNames(0)[1] >>> snap = dom.snapshotLookupByName(snap_name, 0) >>> dir(snap) ['__del__', '__doc__', '__init__', '__module__', '_dom', '_o', 'delete', 'domain', 'getConnect', 'getDomain', 'getName', 'getParent', 'getXMLDesc', 'listChildrenNames', 'numChildren'] >>> snap.getName() '1326189262' >>> snap.getDomain().name() 'demo' >>> snap.listChildrenNames(0) ['1326189264'] >>> snap.numChildren(0) 1 >>> so, this is fixed The package is: # rpm -q libvirt libvirt-python libvirt-0.9.9-1.el6.x86_64 libvirt-python-0.9.9-1.el6.x86_64 Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: No Documentation needed 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. http://rhn.redhat.com/errata/RHSA-2012-0748.html |