-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
CentOS Stream 9
-
None
-
None
-
None
-
rhel-sst-virtualization
-
ssg_virtualization
-
None
-
None
-
None
-
None
-
None
-
x86_64
-
None
What were you trying to do that didn't work?
After installation of libvirt-9.10.0-1.el9 from centos-appstream repo on Centos 9-Stream.
Calling function getType() from python3-libvirt returns DecodeError.
Although with libvirt-9.9.0-1.el9 or libvirt-10.0.0-2.el9 it works just fine.
Is it possible to promote libvirt-10.0.0-2.el9 to be a publicly available?
Please provide the package NVR for which bug is seen:
libvirt-9.10.0-1.el9
How reproducible:
With python3-libvirt and call function getType()
Expected results
# python3 Python 3.9.18 (main, Jan 4 2024, 00:00:00) [GCC 11.4.1 20231218 (Red Hat 11.4.1-3)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import libvirt >>> conn = libvirt.open('qemu:///system') >>> conn.getType() 'QEMU' >>> conn.close() 0
Actual results
# python3 Python 3.9.18 (main, Jan 4 2024, 00:00:00) [GCC 11.4.1 20231218 (Red Hat 11.4.1-3)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import libvirt >>> conn = libvirt.open('qemu:///system') >>> conn.getType() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib64/python3.9/site-packages/libvirt.py", line 4751, in getType ret = libvirtmod.virConnectGetType(self._o) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd1 in position 0: invalid continuation byte
- duplicates
-
RHEL-20609 Fail to get the name of the Hypervisor driver used
- Closed