Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-36951

[4.13] Cephfs to Block cloning is creating empty block device

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • CNV v4.13.7
    • CNV v4.13.4
    • Storage Platform
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • ---
    • ---
    • High
    • No

      Description of problem:

      Used below DV to clone a volume from cephfs to ceph-rbd storage class:

      apiVersion: cdi.kubevirt.io/v1beta1
      kind: DataVolume
      metadata:
        name: rhel8-imperial-sailfish-clone
      spec:
        source:
          pvc:
            name: "rhel8-imperial-sailfish"
            storageClassName: ocs-external-storagecluster-cephfs
            namespace: nijin-cnv
        storage:
          resources:
            requests:
              storage: 33Gi
          storageClassName: ocs-external-storagecluster-ceph-rbd
      
      

       

      The cloning looks to be successful:

      I1221 15:46:44.535710       1 uploadserver.go:74] Running server on 0.0.0.0:8443
      I1221 15:46:54.795381       1 uploadserver.go:389] Content type header is "filesystem-clone"
      I1221 15:48:23.381155       1 uploadserver.go:416] Wrote data to /dev/cdi-block-volume
      I1221 15:48:23.381241       1 uploadserver.go:203] Shutting down http server after successful upload
      I1221 15:48:23.381665       1 uploadserver.go:103] UploadServer successfully exited

      But there is nothing in the cloned volume and it's all zeroes.

      sh-5.1$ dd if=/dev/disk-poised-goat bs=1M  |hexdump -C
      00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
      *
      33792+0 records in
      33792+0 records out
      35433480192 bytes (35 GB, 33 GiB) copied, 66.1271 s, 536 MB/s
      840000000

      Version-Release number of selected component (if applicable):

      OpenShift Virtualization   4.14.1

      4.12 and 4.13 also don't work.

      How reproducible:

      100%

      Steps to Reproduce:

      1. Create a DV to clone from filesystem to block.
      2. The cloned targed disk is empty.
      

      Actual results:

      Filesystem to Block cloning is creating empty block device

      Expected results:

      Data copy should work.

      Additional info:

       

              akalenyu Alex Kalenyuk
              rhn-support-nashok Nijin Ashok
              Dalia Frank Dalia Frank
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: