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

virsh nodedev-dumpxml dumps invalid xml

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Minor Minor
    • rhel-9.4
    • rhel-9.3.0
    • libvirt
    • None
    • libvirt-10.0.0-1.el9
    • None
    • None
    • rhel-sst-virtualization
    • ssg_virtualization
    • 20
    • 26
    • None
    • Dev ack
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • s390x
    • 10.0.0
    • None

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

      Validate the nodedev xml for a dasd device.

      Please provide the package NVR for which bug is seen:

      libvirt-9.5.0-7.el9_3.s390x

      How reproducible:

      100%

      Steps to reproduce

      1. Have a DASD with block size 512
      2. virsh nodedev-dumpxml block_dasda_IBM_750000000CWR71_405a_20 > dasd.xml
        <device>
          <name>block_dasda_IBM_750000000CWR71_405a_20</name>
          <path>/sys/devices/css0/0.0.004c/0.0.4020/block/dasda</path>
          <devnode type="dev">/dev/dasda</devnode>
          <devnode type="link">/dev/disk/by-diskseq/81</devnode>
          <devnode type="link">/dev/disk/by-path/ccw-0.0.4020</devnode>
          <parent>ccw_0_0_4020</parent>
          <capability type="storage">
            <block>/dev/dasda</block>
            <drive_type>dasd</drive_type>
            <vendor>IBM</vendor>
            <serial>IBM.750000000CWR71.405a.20</serial>
            <size>0</size>
            <logical_block_size>512</logical_block_size>
          </capability>
        
      3. virt-xml-validate dasd.xml nodedev
        

      Expected results

      File validates

      Actual results

      dasd.xml:14: element logical_block_size: Relax-NG validity error : Element capability has extra content: logical_block_size
      Relax-NG validity error : Extra element capability in interleave
      dasd.xml:8: element capability: Relax-NG validity error : Element device failed to validate content
      dasd.xml fails to validate

              pkrempa@redhat.com Peter Krempa
              smitterl@redhat.com Sebastian Mitterle
              Cédric Le Goater, Leo Fu, Thomas Huth
              Peter Krempa Peter Krempa
              Sebastian Mitterle Sebastian Mitterle
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: