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

Network and Storage maps in UI are not correct when creating them with command line

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 2.6.5
    • None
    • False
    • None
    • True

      Description of problem:

      Create network map, storage map, Plan and Migration by command line with yaml files, the migration plan is executed successfully, the network/ storage maps are correct in the migration plan web page, but they are not correct on the network/storage map web page.

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

      MTV 2.6.5

      How reproducible:

      100%

      Steps to Reproduce:

      1. Create network map, storage map, Plan and Migration by command line with yaml files

      #oc apply -f networkmap.yaml
      #cat networkmap.yaml 
      apiVersion: forklift.konveyor.io/v1beta1
      kind: NetworkMap
      metadata:
        name: v801-network-map
        namespace: openshift-mtv
      spec:
        map:
          - destination:
              type: pod
            source:
              id: network-14
              name: VM Network
          - destination:
              name: mtv-test-bridge
              namespace: mtv-target-ns1
              type: multus
            source:
              id: network-1294
              name: Mgmt Network
        provider:
          source:
            name: v801
            namespace: openshift-mtv
          destination:
            name: host
            namespace: openshift-mtv
      #oc apply -f storagemap.yaml
      #cat storagemap.yaml
      apiVersion: forklift.konveyor.io/v1beta1
      kind: StorageMap
      metadata:
        name: v801-ceph-rbd-storage-map
        namespace: openshift-mtv
      spec:
        map:
          - destination:
              storageClass: ocs-storagecluster-ceph-rbd
              accessMode: ReadWriteMany
            source:
              id: datastore-13
        provider:
          source:
            name: v801
            namespace: openshift-mtv
          destination:
            name: host
            namespace: openshift-mtv
      #oc apply -f plan.yaml
      #cat plan.yaml 
      apiVersion: forklift.konveyor.io/v1beta1
      kind: Plan
      metadata:
        name: v801-mtv-plan-1
        namespace: openshift-mtv
      spec:
        warm: false
        provider:
          source:
            name: v801
            namespace: openshift-mtv
          destination:
            name: host
            namespace: openshift-mtv
        map:
          network:
            name: v801-network-map
            namespace: openshift-mtv
          storage:
            name: v801-ceph-rbd-storage-map
            namespace: openshift-mtv
        targetNamespace: mtv-target-ns1
        vms:
          - name: mtv-rhel8-warm-2disks2nics
      #oc apply -f migration.yaml
      #cat migration.yaml 
      apiVersion: forklift.konveyor.io/v1beta1
      kind: Migration
      metadata:
        name: v801-mtv-migration-1
        namespace: openshift-mtv
      spec:
        plan:
          name: v801-mtv-plan-1
          namespace: openshift-mtv

      2. Check the migration plan is executed successfully, the network/ storage maps are correct on the migration plan web page

      3. Check on network/storage map web page, they are not correct, their yaml files are correct

      v801-network-map:

      v801-ceph-rbd-storage-map:

      Actual results:

      In step3: Network/Storage maps are not correct on the web page

      Expected results:

      In Step3: Network/Storage maps are correct on the web page

      Additional info:

        1. image-2024-09-06-18-16-29-791.png
          20 kB
          Chenli Hu
        2. image-2024-09-06-18-19-09-204.png
          7 kB
          Chenli Hu
        3. image-2024-09-06-18-19-50-564.png
          7 kB
          Chenli Hu

              sgratch@redhat.com Sharon Gratch
              chhu@redhat.com Chenli Hu
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: