Uploaded image for project: 'Migration Toolkit for Virtualization'
  1. Migration Toolkit for Virtualization
  2. MTV-830

Extending a VM disk in RHV is not reflected in the MTV inventory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • 2.5.3
    • 2.5.2
    • Inventory
    • None
    • False
    • None
    • False

      Description of problem:

      On one of the already connected RHV providers, a RHV VM disk was extended from 20 GB to 30 GB.

       

      Then this VM was imported to OpenShift Virtualization. The PVC in OpenShift Virtualization was created with the previous size:

       

      # oc get pvc  |grep prime
      prime-4a088032-3f86-4fc3-8ff9-d6d6ebc6000f   Bound     pvc-71938442-eebe-4075-b67a-f3f8bab197fd   20Gi       RWX            ocs-external-storagecluster-ceph-rbd   15s

      The download fails with the error below:

       

      I1110 04:35:40.225134       1 ovirt-populator.go:131] qemu-img: /dev/block: Cannot grow device files
      I1110 04:35:43.326452       1 ovirt-populator.go:131] subprocess.CalledProcessError: Command '['qemu-img', 'create', '-f', 'raw', '-q', '/dev/block', '32212254720']' returned non-zero exit status 1.
       
      

      A restart of forklift-controller was required to update the forklift inventory with the new size. The migration was successful after that.

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

      Migration Toolkit for Virtualization Operator   2.5.2
      

      How reproducible:
      100 %

      Steps to Reproduce:

      1. Connect an RHV provider in MTV.
      2. Once the provider is ready, extend one of the VM disks.
      3. Import this VM in OpenShift Virtualization. The PVC will be created with the old size.

              ahadas@redhat.com Arik Hadas
              rhn-support-nashok Nijin Ashok
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: