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

Improve error message if the forklift failed to build/create the PVC

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • 2.6.0
    • 2.5.4
    • Controller

      If the destination storage class doesn't have storage profile configured, the migration will fail while building the PVC. However, the logs doesn't have much information to identify the reason of failure.

      The plan only have the error below:

       

              error:
                phase: CreateDataVolumes
                reasons:
                - couldn't build the PVC

       

      The forklift-controller also doesn't provide any info on the failure:

       

      {"level":"info","ts":"2024-02-09 15:49:20.598","logger":"plan|k27tv","msg":"Migration [FAILED]","plan":"openshift-mtv/newrhvplan","migration":"openshift-mtv/newrhvplan-1707493706760"}
      {"level":"info","ts":"2024-02-09 15:49:20.660","logger":"plan|k27tv","msg":"Snapshot condition copied to plan.","plan":"openshift-mtv/newrhvplan","condition":{"type":"Failed","status":"True","category":"Advisory","message":"The plan execution has FAILED.","lastTransitionTime":"2024-02-09T15:49:20Z","durable":true}}
       
      

      Please provide the package NVR for which bug is seen:

      Migration Toolkit for Virtualization Operator   2.5.4

      How reproducible:

      100%

      Steps to reproduce

      1. Create a migration plan specifying the destination storage class whose storage profile is not configured.
      2. Start the plan and wait for it to fail. 
      3. Check the events, forklift-controller log, plan and migration CR status. The only error reported is  "couldn't build the PVC".

      Expected results

      Provide proper message if the forklift failed to build the PVC.

      Actual results

      No proper error message if it fails creating the PVC which makes troubleshooting hard.

            lrotenbe Liran Rotenberg
            rhn-support-nashok Nijin Ashok
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: