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

[OVN IC] egressIP is not assigned to egress node on GCP

    XMLWordPrintable

Details

    • No
    • Approved
    • False
    • Hide

      None

      Show
      None

    Description

      Description of problem:

      [OVN IC] egressIP is not assigned to egress node

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

       

      How reproducible:

      always

      Steps to Reproduce:

      1. label a node to be egress node
      $ oc get node
      NAME                                                           STATUS   ROLES                  AGE   VERSION
      jechen-0831-eip-12747-bc6gh-master-0.c.openshift-qe.internal   Ready    control-plane,master   75m   v1.27.4+d424288
      jechen-0831-eip-12747-bc6gh-master-1.c.openshift-qe.internal   Ready    control-plane,master   75m   v1.27.4+d424288
      jechen-0831-eip-12747-bc6gh-master-2.c.openshift-qe.internal   Ready    control-plane,master   75m   v1.27.4+d424288
      jechen-0831-eip-12747-bc6gh-worker-a-qqm25                     Ready    worker                 65m   v1.27.4+d424288
      jechen-0831-eip-12747-bc6gh-worker-b-m8nvh                     Ready    worker                 65m   v1.27.4+d424288
      jechen-0831-eip-12747-bc6gh-worker-c-m8bx8                     Ready    worker                 65m   v1.27.4+d424288
      
      $ oc describe node jechen-0831-eip-12747-bc6gh-worker-a-qqm25 |grep cloud.network.openshift.io/egress-ipconfig
      Annotations:        cloud.network.openshift.io/egress-ipconfig: [{"interface":"nic0","ifaddr":{"ipv4":"10.0.128.0/17"},"capacity":{"ip":100}}]
      
      $ oc label node jechen-0831-eip-12747-bc6gh-worker-a-qqm25 "k8s.ovn.org/egress-assignable"=""
      node/jechen-0831-eip-12747-bc6gh-worker-a-qqm25 labeled
      
      2. create an egressip object
      $ cat config_egressip1_ovn_ns_team_red_gcp.yaml
      apiVersion: k8s.ovn.org/v1
      kind: EgressIP
      metadata:
        name: egressip-red
      spec:
        egressIPs:
        - 10.0.128.101
        namespaceSelector:
          matchLabels:
            team: red 
      
      
      $ oc create -f config_egressip1_ovn_ns_team_red_gcp.yaml
      egressip.k8s.ovn.org/egressip-red created
      
      $ oc get egressips.k8s.ovn.org 
      NAME           EGRESSIPS      ASSIGNED NODE   ASSIGNED EGRESSIPS
      egressip-red   10.0.128.101                   
      
      $ oc get egressips.k8s.ovn.org  egressip-red -oyaml
      apiVersion: k8s.ovn.org/v1
      kind: EgressIP
      metadata:
        creationTimestamp: "2023-08-31T20:23:31Z"
        generation: 1
        name: egressip-red
        resourceVersion: "104729"
        uid: 16a3ef4e-299d-4e86-9551-cf8866bb8dff
      spec:
        egressIPs:
        - 10.0.128.101
        namespaceSelector:
          matchLabels:
            team: red
      
      $ oc get CloudPrivateIPConfig
      No resources found
       
      
      3.
      

      Actual results:

      egressIP is not assigned to egress node
      
      
      

      Expected results:

      egressIP should be not assigned to egress node

      Additional info:

       

      Attachments

        Issue Links

          Activity

            People

              mkennell@redhat.com Martin Kennelly
              jechen@redhat.com Jean Chen
              Jean Chen Jean Chen
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: