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

use of net-attach-def from default namespace fails with NetworkMapNotReady

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • 2.6.1
    • Controller
    • False
    • None
    • False
    • Critical

      With v2.6.1 and MTV-1063  the UI does now allow for selection of net-attach-defs from the default namespace.

      However, upon saving the plan this error prevents execution:

      Danger alert:The plan is not ready - NetworkMapNotReady

      Map.Network does not have Ready condition.. To troubleshoot, check the Forklift controller pod logs.

       
      The generated networkmap can not find the NAD.
       

      $ oc get networkmap lab-pkqtd -o yaml -n openshift-mtv
      apiVersion: forklift.konveyor.io/v1beta1
      kind: NetworkMap
      metadata:
        creationTimestamp: "2024-05-13T21:35:34Z"
        generateName: lab-
        generation: 1
        name: lab-pkqtd
        namespace: openshift-mtv
        ownerReferences:
        - apiVersion: forklift.konveyor.io/v1beta1
          kind: Plan
          name: legacynet
          uid: 5d155019-1d64-4257-89c1-32d9c27abe6c
        resourceVersion: "350123905"
        uid: 174f1ed5-e24d-4c0f-a8ec-89304d604a3f
      spec:
        map:
        - destination:
            name: vlan-1924
            namespace: openshift-mtv
            type: multus
          source:
            id: network-196
        provider:
          destination:
            apiVersion: forklift.konveyor.io/v1beta1
            kind: Provider
            name: host
            namespace: openshift-mtv
            uid: a7a30cd6-91ec-4dda-8a98-f5192e81926e

         source:
            apiVersion: forklift.konveyor.io/v1beta1
            kind: Provider
            name: lab
            namespace: openshift-mtv
            uid: a0b95a0b-f9b6-4dfe-8a10-dc329bb1394e
      status:
        conditions:
        - category: Critical
          items:
          - openshift-mtv/vlan-1924
          lastTransitionTime: "2024-05-13T21:35:35Z"
          message: Destination network (NAD) not found.
          reason: NotFound
          status: "True"
          type: DestinationNetworkNotValid
        observedGeneration: 1
        references:
        - id: network-196
          name: lab-192-168-4-0-b24

       
      It does exist in default

      $ oc get net-attach-def vlan-1924 -n default
      NAME        AGE
      vlan-1924   40d
      $ oc get net-attach-def -n openshift-mtv
      No resources found in openshift-mtv namespace.

       
      Multus will require the proper namespace in the spec. i.e. `openshift-mtv/vlan-1924` above won't work. `default/vlan-1924` should be specified to the pod.

              Unassigned Unassigned
              dbewley@redhat.com Dale Bewley
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: