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

Can't get the data file info for nbd network backend in qemu-img

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • rhel-virt-storage
    • ssg_virtualization
    • 2
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • virt-storage Sprint 3, virt-storage Sprint 4, virt-storage Sprint 6, Patch Under review backlog
    • None
    • None
    • None

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

      Can't get the data file info for nbd network backend in qemu-img

      Please provide the package NVR for which the bug is seen:

      libvirt-10.10.0-1.el10.x86_64
      qemu-kvm-9.1.0-7.el10.x86_64

      How reproducible is this bug?:

      100%

      Steps to reproduce

      1.Prepare a file image which use the nbd network backend as the data file.

      # setenforce 0   (allow qemu to access the socket)
      # mkdir -p /var/run/nbd-server
      # systemd-run qemu-nbd --socket=/var/run/nbd-server/datafile --export-name=datafile --persistent /var/lib/libvirt/images/datastore_nbd
      # chown qemu:qemu /var/run/nbd-server/datafile
      # qemu-img create -f qcow2 -o data_file=nbd+unix:///datafile?socket=/var/run/nbd-server/datafile /var/lib/libvirt/images/datastore_nbd.qcow2 500M  

      2.Check the file image by qemu-img info.

      # qemu-img info /var/lib/libvirt/images/datastore_nbd.qcow2 
      image: /var/lib/libvirt/images/datastore_nbd.qcow2
      file format: qcow2
      virtual size: 500 MiB (524288000 bytes)
      disk size: 196 KiB
      cluster_size: 65536
      Format specific information:
          compat: 1.1
          compression type: zlib
          lazy refcounts: false
          refcount bits: 16
          data file: 
          data file raw: false
          corrupt: false
          extended l2: false
      Child node '/file':
          filename: /var/lib/libvirt/images/datastore_nbd.qcow2
      ......  

      Expected results

      Can get the data file

      Actual results

      Can't get the data file

      Additional info:
      Also for qemu-storage-daemon result in https://issues.redhat.com/browse/RHEL-69449?focusedId=26238337&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-26238337.

              eblake_redhat Eric Blake
              rhn-support-meili Meina Li
              virt-maint virt-maint
              Tingting Mao Tingting Mao
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated: