Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-55289

[UDN localnet br-ex] - VMs running on different NSs and connected to the same localnet C-UDN has connectivity (test case+manual execution)

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • CNV Network
    • 1.5
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • CNV-51203 - Secondary user-defined networks with localnet topology
    • ---
    • ---
    • CNV Network QE 266
    • None

      Test 1.

      Define an NNCP with bridge mapping of the localnet network to be created to the default ovs bridge (br-ex). NNCP for reference:

      apiVersion: nmstate.io/v1
      kind: NodeNetworkConfigurationPolicy
      metadata:
        annotations:
        name: localnet-brex
      spec:
        desiredState:
          ovn:
            bridge-mappings:
            - localnet: localnet-network-brex
              bridge: br-ex 
              state: present
        nodeSelector:
          node-role.kubernetes.io/worker: ''

       

      Create a localnet CUDN with 2 namespaces specified under the namespaceSelector, and also define a VLAN tag in the CUDN. For the current implementation we will create the localnet NAD's directly in 2 namespaces. Here is a yaml for one of them (physicalNetworkName should be identical in both NAD's):

      apiVersion: k8s.cni.cncf.io/v1
      kind: NetworkAttachmentDefinition
      metadata:
        annotations:
        name: localnet-network-brex1
        namespace: green-namespace
      spec:
        config: |
          {
            "cniVersion": "0.3.1",
            "name": "localnet-network-brex1",
            "type": "ovn-k8s-cni-overlay",
            "topology": "localnet",
            "vlanID": 1000,
            "mtu": 1500,
            "netAttachDefName": "green-namespace/localnet-network-brex1"

            "physicalNetworkName": "awesomelocalnet"
      {{    }}}

       

       

      Create 2 VMs, one in each of the namespaces specified in CNV-55294. Make sure that at lease one of the VMs is not connected to the pod network.

      Verify connection between the VMs (ping). Make sure to ping from the VM without the pod network to the other VM.

       

      Please note - since we currently don't have the CUDN implemented in the product we will create the desired localnet NAD/s directly. In the future, when we have it available downstream the test case (and automation) should be changed accordingly.

       

      DOD:

      Write a detailed test plan in Polarion.

      Verify the test manually.

       

              rh-ee-awax Anat Wax
              rh-ee-awax Anat Wax
              Yossi Segev Yossi Segev
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: