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

libvirt failing to parse PCI device VPD (virtual private data) for some hardware

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • rhel-9.4
    • None
    • libvirt
    • None
    • libvirt-10.0.0-3.el9
    • None
    • None
    • ZStream
    • rhel-sst-virtualization
    • ssg_virtualization
    • 26
    • None
    • Dev ack
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat OpenStack Services on OpenShift (formerly Red Hat OpenStack Platform)
    • None
    • Approved Blocker
    • None

      (This issue is based on an OSP 17.0 bug report by Alex Stupnikov:
      "Nova errors out due to libvirt failing to parse PCI device VPD (virtual private data" — https://bugzilla.redhat.com/show_bug.cgi?id=2259641)

      Description
      ---------------
      This is a hardware-specific bug; libvirt failing to parse PCI device VPD (virtual private data) for some hardware:

          <vendor_field index='Z'>6<1</vendor_field>

      Which results in:

          lxml.etree.XMLSyntaxError: StartTag: invalid element name

      Root cause
      ---------------

      Daniel Berrangé and Peter Krempa from libvirt confirmed that it's a libvirt bug.

      Dan writes: "we (libvirt) are using virBufferAsprintf instead of virBufferEscapeString"

      So the issue here to be libvirt not escaping a string.

      Version details
      --------------------

      Affected versions (from the OSP container running the libvirt daemon and the guests):

      $ podman exec -it nova_virtqemud virsh version
          Compiled against library: libvirt 9.0.0
          Using library: libvirt 9.0.0
          Using API: QEMU 9.0.0
          Running hypervisor: QEMU 7.2.0}}
      

        1. vpdexample
          0.1 kB
        2. vpd.data
          0.4 kB
        3. vpd-x710.data
          0.3 kB

              pkrempa@redhat.com Peter Krempa
              kchamart@redhat.com Kashyap Chamarthy
              Peter Krempa Peter Krempa
              Yalan Zhang Yalan Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              14 Start watching this issue

                Created:
                Updated:
                Resolved: