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

[UI] Migration with Pre-hook phase fails with Job has reached the specified backoff limit

XMLWordPrintable

      Description of problem:

      Running a migration plan from vCenter VMware 7.0.3 to OCP (VM - mtv-func-rhel8-ameen) with Pre-hook while trying to verify this issue:
      MTV-2894
      
      It failed on pre-hook phase couple of times

       

      Fail:

       

      Job has reached the specified backoff limit

       

       

      job logs:

      oc logs job/plan-vmware-vm-1001-prehook-48kwp 

      Found 2 pods, using pod/plan-vmware-vm-1001-prehook-48kwp-mph25 [WARNING]: No inventory was parsed, only implicit localhost is available [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' ERROR! A playbook must be a list of plays, got a <class 'ansible.parsing.yaml.objects.AnsibleUnicode'> instead The error appears to be in '/tmp/hook/playbook.yml': line 1, column 1, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: LS0tCi0gbmFtZTogTWFpbgogIGhvc3RzOiBsb2NhbGhvc3QKICB0YXNrczoKICAtIG5hbWU6IExvYWQgUGxhbgogICAgaW5jbHVkZV92YXJzOgogICAgICBmaWxlOiBwbGFuLnltbAogICAgICBuYW1lOiBwbGFuCiAgLSBuYW1lOiBMb2FkIFdvcmtsb2FkCiAgICBpbmNsdWRlX3ZhcnM6CiAgICAgIGZpbGU6IHdvcmtsb2FkLnltbAogICAgICBuYW1lOiB3b3JrbG9hZA== ^ here

       

      Pre-hook:

       

      ---
      - name: Main
        hosts: localhost
        tasks:
        - name: Load Plan
          include_vars:
            file: plan.yml
            name: plan
        - name: Load Workload
          include_vars:
            file: workload.yml
            name: workload

       

       

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

      OCP: 4.19.9
      MTV: 2.10.0 - redhat-osbs-on-pr-dc82e426f3888f16a5752b78d6f9c4a8736808f9
      CNV: 4.19.5

      How reproducible:

      Always / N%
      

      Steps to Reproduce:

      1. Create migration plan from vCenter 7.0.3 with VM 'mtv-func-rhel8-ameen'
      2. add pre-hook to the plan
      3. run the plan
      

      Actual results:

      Job has reached the specified backoff limit

      Expected results:

      Migration succeeds

      Additional info:

      The issue is the UI encode the Ansible playbook double times and it causes this issue

              jpuzzo@redhat.com Jeff Puzzo
              rh-ee-abarakat Ameen Barakat
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: