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

OCP > OCP migrate VM failed on failed to verify certificate: x509 with prehook

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 2.10.0
    • 2.10.0
    • Controller

      Description of problem:

      Continue to MTV-2894 once migrating from ESXI/VMware to OCP then to OCP
      the migration failed on:
       
      Unable to connect to http data source: HTTP request errored: Get "https://virt-exportproxy-openshift-cnv.
      file:///home/abarakat/Documents/work/logs/plan-pre-hook.yaml
      apps.qemtvd-04.rhos-psi.cnv-qe.rhood.us/api/export.kubevirt.io/v1beta1/namespaces/mtv-test/virtualmachineexports/mtv-func-win2008r2-td/volumes/warm-win2008r2-vm-173-l7nkm/disk.img.gz": tls: failed to verify certificate: x509: certificate signed by unknown authority

       

      Prehook:
      apiVersion: forklift.konveyor.io/v1beta1
      kind: Hook
      metadata:
        creationTimestamp: "2025-08-31T07:21:30Z"  generation: 2
        name: plan-qemtvd-05-pre-hook
        namespace: mtv-test
        ownerReferences:
        - apiVersion: forklift.konveyor.io/v1beta1
          kind: Plan
          name: plan-qemtvd-05
          uid: bff2df90-e3ad-46a6-9acc-1f597f74f848
        resourceVersion: "16426835"  uid: 8ca263c5-bdaf-4ae4-9f38-7b3b6ca2b5c0
      spec:
        image: quay.io/konveyor/hook-runner
        playbook: LS0tCi0gbmFtZTogTWFpbgogIGhvc3RzOiBsb2NhbGhvc3QKICB0YXNrczoKICAtIG5hbWU6IExvYWQgUGxhbgogICAgaW5jbHVkZV92YXJzOgogICAgICBmaWxlOiBwbGFuLnltbAogICAgICBuYW1lOiBwbGFuCiAgLSBuYW1lOiBMb2FkIFdvcmtsb2FkCiAgICBpbmNsdWRlX3ZhcnM6CiAgICAgIGZpbGU6IHdvcmtsb2FkLnltbAogICAgICBuYW1lOiB3b3JrbG9hZA==
       

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

      Source Cluster:
      OCP: 4.18.22
      MTV: 2.9.0
      CNV: 4.18.13
      
      Target cluster:
      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. Migrate a VM mtv-func-win2008r2-td from ESXI 8 to source OCP 
      2. then migrate this VM from OCP 1 to OCP 2 (CA enabled) with NFS-CSI to NFS-CSI with attached Prehook
      3. Run Migration
      

      Actual results:

      fail on DiskTransfer
      

      Expected results:

      pass Migration

      Additional info:

       

              rh-ee-ehazan Elad Hazan
              rh-ee-abarakat Ameen Barakat
              Ameen Barakat Ameen Barakat
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: