Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-47484

[Pre-Merge-Testing] layer 3 udn pods still receive multicast traffic after disable multicast

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Important
    • No
    • None
    • Rejected
    • None
    • In Progress
    • Release Note Not Required
    • N/A
    • None
    • None
    • None
    • None

      Description of problem:

      Create udn in one ns and create testing pods, enable multicast in ns, sending multicast traffic on all pods to join a multicast group. Then disable multicast in ns, and send traffic again, pods can still receive multicast traffic.
      If create pods first, and then enable multicast, pods can not receive multicast traffic.

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

      build image via build 4.18.0-0.nightly,openshift/api#2127,openshift/ovn-kubernetes#2403 

      How reproducible:

      always

      Steps to Reproduce:

      1. create ns test and enable multicast

      oc annotate namespace test k8s.ovn.org/multicast-enabled=true

      2. create udn in ns test

       

        % cat udn_l3.yaml 
      apiVersion: k8s.ovn.org/v1
      kind: UserDefinedNetwork
      metadata:
        name: udn-l3 
      spec:
        topology: Layer3 
        layer3: 
          role: Primary 
          subnets: 
            - cidr: 10.151.0.0/16
              hostSubnet: 24   

      3. create testing pods

      % cat multicast-rc.json 
      {
          "apiVersion": "v1",
          "kind": "ReplicationController",
          "metadata": {
      	"labels": {
      	    "name": "mcast-rc"
      	},
      	"name": "mcast-rc"
          },
          "spec": {
      	"replicas": 3,
      	"template": {
      	    "metadata": {
      		"labels": {
      		    "name": "mcast-pods"
      		}
      	    },
      	    "spec": {
      		"containers": [
      		    {
      			"image": "quay.io/openshifttest/mcast-pod@sha256:aa2a8fdcfeddb09097e6a7201cfdb062db8d92d523cbcf758ef7d3545a1f5776",
      			"name": "mcast-pod"
      		    }
      		]
      	    }
      	}
          }
      }  

      4. sending multicast traffic on all pods, the ip list is the udn ips of 3 pods

      e.g: % oc rsh mcast-rc-6s2qd 
      ~ $ omping -c 5 -T 15 10.100.3.3 10.100.2.5 10.100.1.3  

      5. disable multicast

      oc annotate namespace test k8s.ovn.org/multicast-enabled- 

      6. sending multicast traffic again, and find that pods still can receive multicast traffic

      10.151.1.3 :   unicast, xmt/rcv/%loss = 10/10/0%, min/avg/max/std-dev = 1.162/1.250/1.348/0.055
      10.151.1.3 : multicast, xmt/rcv/%loss = 10/10/0%, min/avg/max/std-dev = 1.214/1.336/1.921/0.209
      10.151.5.3 :   unicast, xmt/rcv/%loss = 10/10/0%, min/avg/max/std-dev = 0.454/0.554/0.623/0.046
      10.151.5.3 : multicast, xmt/rcv/%loss = 10/10/0%, min/avg/max/std-dev = 0.468/0.568/0.641/0.047

       

      Actual results:

      multicast traffic is not dropped after disable multicast in ns.

      Expected results:

      multicast traffic should be dropped after disable multicast in ns.

       

              dceara@redhat.com Dumitru Ceara
              rhn-support-yingwang Ying Wang
              None
              None
              Ying Wang Ying Wang
              None
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: