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

Bug: detect zero option to preserve sparseness during storage migration

XMLWordPrintable

    • CNV Storage 265
    • Critical
    • None

      Description of problem:

      Migrating a block volume, the destination volume is fully allocated and the image sparseness isn't preserved

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

      CNV 4.18

      How reproducible:

      Always

      Steps to Reproduce:

      1. Create a VM using a block volume, e.g using rook-ceph-block
      2. Trigger the volume migration by updating the VM with a new volume
      3. Verify the volume size, for example using the ceph toolbox [1]
      

      Actual results:

      The destination volume is fully alloctaed

      $ rbd du --pool=replicapool
      NAME                                          PROVISIONED  USED   
      csi-vol-739d5db3-86f5-11ef-b8b5-f2bd1cccbeca        5 GiB   64 MiB
      csi-vol-bf1b7510-86f5-11ef-b8b5-f2bd1cccbeca        5 GiB    5 GiB
      <TOTAL>                                            10 GiB  5.1 GiB

      Expected results:

      The destination volume should have nearly the same size as the source volume

      $ rbd du --pool=replicapool
      NAME                                          PROVISIONED  USED   
      csi-vol-a23327ea-bd23-11ef-bd92-baaa088e9380        5 GiB   64 MiB
      csi-vol-bfbbbbf4-bd23-11ef-bd92-baaa088e9380        5 GiB   64 MiB
      <TOTAL>                                            10 GiB  128 MiB
      

              afrosirh Alice Frosi
              afrosirh Alice Frosi
              Yan Du Yan Du
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: