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

Add checking for related storage class space for conversionTempStorageSize

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 2.11.0
    • Controller
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • True
    • Sprint 10

      Description of problem:

      Set conversionTempStorageSize: 1Ti (No enough space in related storage), conversionTempStorageClass: nfs-csi (Only 200 Gi available, 400 Gi in total) or ocs-storagecluster-ceph-rbd(less than 70Gi in total), we don't check the storage available size, pvc and pv are created successfully even if no 1Ti space. The conversion pod and inspection pod with 1Ti volume, we need to add the checking, as the user request such large volume, but actually the storage is without enough space, this may cause the migration failed later, we need to block the migration or add a warning message.

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

      MTV 2.11.0-37 with CNV 4.20.13 

      How reproducible:

      Always
      

      Steps to Reproduce:

      1) Create a warm/cold migration plan to migrate VM from ESXi/vCenter 8 to OCP cluster with settings:

      conversionTempStorageClass: nfs-csi or ocs-storagecluster-ceph-rbd 
      conversionTempStorageSize: 1Ti

      2) The nfs-csi or ocs-storagecluster-ceph-rbd don't have enough space. The plan is ready and executed successfully. The conversion pod and inspection pod with 1Ti volume. We need to add the checking, as the user request such large volume, but actually the storage is without enough space, we need to block the migration or add a warning message.

      3) The conversion pod and pvc/pv yaml files are attached in "warm-rhel9-cephrbd-1Ti.tar.xz"

      $ cat pod-warm-rhel9-host-1ti-12-j6rxt.yaml|grep conversion-temp-storage -A 15
               - name: conversion-temp-storage
                mountPath: /var/tmp/virt-v2v
          - name: conversion-temp-storage
            ephemeral:
              volumeClaimTemplate:
                metadata:
                  creationTimestamp: null
                spec:
                  accessModes:
                    - ReadWriteOnce
                  resources:
                    requests:
                      storage: 1Ti
                  storageClassName: ocs-storagecluster-ceph-rbd
                  volumeMode: Filesystem
      
      $ cat persistentvolumeclaim-warm-rhel9-host-1ti-12-j6rxt-conversion-temp-storage.yaml|grep spec -A 10
      spec:
        accessModes:
          - ReadWriteOnce
        resources:
          requests:
            storage: 1Ti
        volumeName: pvc-600a7c2b-6a80-42b7-9bff-782b355a545f
        storageClassName: ocs-storagecluster-ceph-rbd
        volumeMode: Filesystem
      status:
        phase: Bound
      
      $ cat persistentvolume-pvc-600a7c2b-6a80-42b7-9bff-782b355a545f.yaml| grep spec -A 15
      spec:
        capacity:
          storage: 1Ti
        csi:
          driver: openshift-storage.rbd.csi.ceph.com
          volumeHandle: 0001-0011-openshift-storage-0000000000000002-91878ec2-419a-4a9f-bb48-afa61a2839f3
          fsType: ext4
          volumeAttributes:
            clusterID: openshift-storage

      Actual results:

      In Step2: We didn't check the storage class storage space

      Expected results:

      In Step2: We need to block the migration or add a warning message, when the storage don't have enough space

      Additional info:

       

              gcasey@redhat.com Gwendolyn Casey
              chhu@redhat.com Chenli Hu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: