Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-20609

Fail to get the name of the Hypervisor driver used

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • rhel-9.4
    • None
    • libvirt
    • libvirt-10.0.0-1.el9
    • Yes
    • None
    • Regression
    • rhel-sst-virtualization
    • ssg_virtualization
    • 20
    • 26
    • None
    • QE ack, Dev ack
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • x86_64
    • 10.0.0
    • None

      What were you trying to do that didn't work?

      Fail to use getType() to get the name of the Hypervisor driver used.

      Please provide the package NVR for which bug is seen:

      libvirt-9.10.0-1.el9.x86_64
      python3-libvirt-9.3.0-1.el9.x86_64

      How reproducible:

      100%

      Steps to reproduce

      >>> 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 0xfc in position 3: invalid start byte

      Expected results

      Get succeeds.

      Actual results

      Get failed.

       

      Additional info:

      libvirt-9.9.0-1.el9.x86_64
      python3-libvirt-9.3.0-1.el9.x86_64

      >>> import libvirt
      >>> conn = libvirt.open("qemu:///system")
      >>> conn.getType()
      'QEMU'

       

              jdenemar@redhat.com Jiri Denemark
              rhn-support-lcheng Liping Cheng
              Peter Krempa Peter Krempa
              Liping Cheng Liping Cheng
              Votes:
              2 Vote for this issue
              Watchers:
              17 Start watching this issue

                Created:
                Updated:
                Resolved: