Bug 1786968
Summary: | Cann't get network port uuid by UUID() or UUIDString() | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux Advanced Virtualization | Reporter: | lcheng |
Component: | libvirt-python | Assignee: | Daniel Berrangé <berrange> |
Status: | CLOSED ERRATA | QA Contact: | lcheng |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 8.1 | CC: | berrange, jdenemar, lmen |
Target Milestone: | rc | ||
Target Release: | 8.2 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libvirt-python-6.0.0-1.el8 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-05-05 09:52:22 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: |
Description
lcheng
2019-12-30 02:24:25 UTC
Fix proposed: https://www.redhat.com/archives/libvir-list/2020-January/msg00063.html Note that in addition to what's reported in the description, the 'net.portLookupByUUID()' method was also broken. Merged upstream for forthcoming 6.0.0 Verified on python3-libvirt-6.0.0-1.module+el8.2.0+5453+31b2b136.x86_64. # python Python 3.6.8 (default, Dec 5 2019, 15:45:45) [GCC 8.3.1 20191121 (Red Hat 8.3.1-5)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import libvirt >>> conn = libvirt.open() >>> net = conn.networkLookupByName('default') >>> port = net.portLookupByUUIDString('43d3260d-0fcb-44aa-9571-d2efc53fad07') >>> port <libvirt.virNetworkPort object at 0x7f4eb159dc88> >>> port.UUIDString() '43d3260d-0fcb-44aa-9571-d2efc53fad07' >>> uuid = port.UUID() >>> uuid b'C\xd3&\r\x0f\xcbD\xaa\x95q\xd2\xef\xc5?\xad\x07' >>> import binascii >>> binascii.hexlify(uuid).decode() '43d3260d0fcb44aa9571d2efc53fad07' Move to VERIFIED. 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://access.redhat.com/errata/RHBA-2020:2017 |