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

[OSP][OVN] No "NoMatchingNodeFound " warning event was generated in event log by "oc get event" for egressIP that has no node to assign to

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Undefined Undefined
    • None
    • 4.12
    • None
    • None
    • SDN Sprint 224
    • 1
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      No "NoMatchingNodeFound " warning event is generated in "oc get event" for egressIP that has no node to assign to

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

      4.12.0-0.nightly-2022-08-23-031342

      How reproducible:

       

      Steps to Reproduce:

      1. on Openshift over OSP, do not mark any node egressip assignable
      (shiftstack) [stack@undercloud-0 jechen]$ oc get node
      NAME                          STATUS   ROLES                  AGE   VERSION
      ostest-mng4w-master-0         Ready    control-plane,master   44h   v1.24.0+ed93380
      ostest-mng4w-master-1         Ready    control-plane,master   44h   v1.24.0+ed93380
      ostest-mng4w-master-2         Ready    control-plane,master   44h   v1.24.0+ed93380
      ostest-mng4w-worker-0-cjtpf   Ready    worker                 43h   v1.24.0+ed93380
      ostest-mng4w-worker-0-p4b25   Ready    worker                 33h   v1.24.0+ed93380
      
      2. Configure egressip object
      (shiftstack) [stack@undercloud-0 jechen]$ cat config_egress1_ovn_ns_team_red.yaml 
      apiVersion: k8s.ovn.org/v1
      kind: EgressIP
      metadata:
        name: egressip1
      spec:
        egressIPs:
        - 10.196.0.201
        namespaceSelector:
          matchLabels:
            team: red
      
      
      (shiftstack) [stack@undercloud-0 jechen]$ oc get egressips.k8s.ovn.org 
      NAME        EGRESSIPS      ASSIGNED NODE   ASSIGNED EGRESSIPS
      egressip1   10.196.0.201                   
      
      
      3. When egressip has no node to assign to, there should be "NoMatchingNodeFound " warning event generated, but there is none 
      
      (shiftstack) [stack@undercloud-0 jechen]$ oc get event | grep egress
      (shiftstack) [stack@undercloud-0 jechen]$ 
      (shiftstack) [stack@undercloud-0 jechen]$ oc get event
      LAST SEEN   TYPE     REASON             OBJECT                          MESSAGE
      24m         Normal   Scheduled          pod/test-rc-p4z59               Successfully assigned jean2/test-rc-p4z59 to ostest-mng4w-worker-0-cjtpf by ostest-mng4w-master-2
      24m         Normal   AddedInterface     pod/test-rc-p4z59               Add eth0 [10.131.0.206/23] from ovn-kubernetes
      24m         Normal   Pulled             pod/test-rc-p4z59               Container image "quay.io/openshifttest/hello-sdn@sha256:2af5b5ec480f05fda7e9b278023ba04724a3dd53a296afcd8c13f220dec52197" already present on machine
      24m         Normal   Created            pod/test-rc-p4z59               Created container test-pod
      24m         Normal   Started            pod/test-rc-p4z59               Started container test-pod
      24m         Normal   Scheduled          pod/test-rc-xnmtt               Successfully assigned jean2/test-rc-xnmtt to ostest-mng4w-worker-0-p4b25 by ostest-mng4w-master-2
      24m         Normal   AddedInterface     pod/test-rc-xnmtt               Add eth0 [10.128.2.34/23] from ovn-kubernetes
      24m         Normal   Pulled             pod/test-rc-xnmtt               Container image "quay.io/openshifttest/hello-sdn@sha256:2af5b5ec480f05fda7e9b278023ba04724a3dd53a296afcd8c13f220dec52197" already present on machine
      24m         Normal   Created            pod/test-rc-xnmtt               Created container test-pod
      24m         Normal   Started            pod/test-rc-xnmtt               Started container test-pod
      24m         Normal   SuccessfulCreate   replicationcontroller/test-rc   Created pod: test-rc-p4z59
      24m         Normal   SuccessfulCreate   replicationcontroller/test-rc   Created pod: test-rc-xnmtt
      
      
      there is some message in ovn log indicate that, but there is no warning message in event log by "oc get event"
      (shiftstack) [stack@undercloud-0 jechen]$ oc logs ovnkube-master-pw7bp -n openshift-ovn-kubernetes -c ovnkube-master |grep egress
      
      E0826 16:10:32.506955       1 egressip.go:1484] No assignable nodes found for EgressIP: egressip1 and requested IPs: [10.196.0.201]
      I0826 16:10:32.507109       1 obj_retry.go:1373] Creating *v1.EgressIP egressip1 took: 199.556µs
      I0826 16:10:32.507510       1 event.go:285] Event(v1.ObjectReference{Kind:"EgressIP", Namespace:"", Name:"egressip1", UID:"", APIVersion:"", ResourceVersion:"", FieldPath:""}): type: 'Warning' reason: 'NoMatchingNodeFound' no assignable nodes for EgressIP: egressip1, please tag at least one node with label: k8s.ovn.org/egress-assignable
      

      Actual results:

       

      Expected results:

       

      Additional info:

       

              akaris@redhat.com Andreas Karis
              jechen@redhat.com Jean Chen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: