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

Unable to encode message payload for listDefinedInterfaces() when bind/unbind the device

    • libvirt-10.4.0-1.el9
    • None
    • Moderate
    • sst_virtualization
    • ssg_virtualization
    • 20
    • 3
    • Dev ack
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • All
    • 10.4.0
    • None

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

      As subject

      Please provide the package NVR for which bug is seen:

      libvirt-10.0.0-7.el9.x86_64
      python3-libvirt-10.0.0-1.el9.x86_64

      How reproducible:

      100%

      Steps to reproduce

      Bind/unbind an interface device in the infinite loop

      For example:

      ADDR=0000:17:00.1; while true;do echo $ADDR> /sys/bus/pci/devices/$ADDR/driver/unbind;echo $ADDR>/sys/bus/pci/drivers/tg3/bind;done

       

      Invoke nodeDeviceDefineXML:

      import libvirt
      with libvirt.openReadOnly() as conn:
          while(True):
              conn.listDefinedInterfaces()
      

      Result:
      libvirt: XML-RPC error : Unable to encode message payload
      ---------------------------------------------------------------------------
      libvirtError Traceback (most recent call last)
      Cell In[5], line 3
      1 with libvirt.openReadOnly() as conn:
      2 while(True):
      ----> 3 conn.listDefinedInterfaces()

      File /usr/lib64/python3.9/site-packages/libvirt.py:4923, in virConnect.listDefinedInterfaces(self)
      4921 ret = libvirtmod.virConnectListDefinedInterfaces(self._o)
      4922 if ret is None:
      -> 4923 raise libvirtError('virConnectListDefinedInterfaces() failed')
      4924 return ret

      libvirtError: Unable to encode message payload

      Expected results

      No error

      Actual results

      As above

       

      Thanks to rhn-support-lcheng for discovering this issue

            pkrempa@redhat.com Peter Krempa
            hanhansolo Han Han
            virt-maint virt-maint
            Haijiao Zhao Haijiao Zhao
            Votes:
            0 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated: