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

Mismatch Between Defined EgressIPs and Displayed Output in oc get eip

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • CORENET Sprint 280
    • 1
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem: The oc get eip command returns only a single EgressIP, even though multiple EgressIP addresses are specified in the EgressIP custom resource definition.

      Version-Release number of selected component (if applicable): 4.18.27 but I reproduced this issue on multiple OCP versions including 4.20.1

      How reproducible: - Create a EgressIP CR with multiple IP's:

      Steps to Reproduce:

       

      apiVersion: k8s.ovn.org/v1
      kind: EgressIP
      metadata:
        annotations:
      spec:
        egressIPs:
        - 10.x.xx.xx
        - 10.x.xx.xx
        namespaceSelector:
          matchLabels:
            name: abc
      status:
        items:
        - egressIP: 10.x.xx.xx
          node: worker-1.example.redhat.com
        - egressIP: 10.x.xx.xx
          node: worker-0.example.redhat.com 
      
      Check the egressip status with below command:
      
      $ oc get eip
      
      NAME          EGRESSIPS    ASSIGNED NODE                                           ASSIGNED EGRESSIPS
      egressip-43   10.x.xx.xx   worker-1.example.redhat.com   10.x.xx.xx

      Actual results: only one egressip is seen in oc get eip output.

       

      Expected results: All the IP defined in EgressIP CR should be included in the oc get eip output.

       

      $ oc get eip 
      
      NAME EGRESSIPS ASSIGNED NODE ASSIGNED EGRESSIPS 
      egressip-43 10.x.xx.xx worker-1.example.redhat.com 10.x.xx.xx 10.x.xx.xx

       

      Additional info: Raised OCPBUS as per discussion in below slack thread:

      https://redhat-internal.slack.com/archives/CDCP2LA9L/p1762946993950449

              pepalani@redhat.com Periyasamy Palanisamy
              rhn-support-dtorne Devdatta Torne
              None
              None
              Anurag Saxena Anurag Saxena
              None
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: