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

egressip cannot be assigned on hypershift hosted cluster node

XMLWordPrintable

    • No
    • SDN Sprint 233, SDN Sprint 234
    • 2
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • N/A
    • Release Note Not Required

      Description of problem:

      egressip cannot be assigned on hypershift hosted cluster node

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

      4.13.0-0.nightly-2023-03-09-162945

      How reproducible:

      100%

      Steps to Reproduce:

      1. setup hypershift env
      
      
      2. lable egress ip node on hosted cluster
      % oc get node
      NAME                                         STATUS   ROLES    AGE     VERSION
      ip-10-0-129-175.us-east-2.compute.internal   Ready    worker   3h20m   v1.26.2+bc894ae
      ip-10-0-129-244.us-east-2.compute.internal   Ready    worker   3h20m   v1.26.2+bc894ae
      ip-10-0-141-41.us-east-2.compute.internal    Ready    worker   3h20m   v1.26.2+bc894ae
      ip-10-0-142-54.us-east-2.compute.internal    Ready    worker   3h20m   v1.26.2+bc894ae
      
      % oc label node/ip-10-0-129-175.us-east-2.compute.internal k8s.ovn.org/egress-assignable=""
      node/ip-10-0-129-175.us-east-2.compute.internal labeled
      % oc label node/ip-10-0-129-244.us-east-2.compute.internal k8s.ovn.org/egress-assignable=""
      node/ip-10-0-129-244.us-east-2.compute.internal labeled
      % oc label node/ip-10-0-141-41.us-east-2.compute.internal k8s.ovn.org/egress-assignable=""
      node/ip-10-0-141-41.us-east-2.compute.internal labeled
      % oc label node/ip-10-0-142-54.us-east-2.compute.internal  k8s.ovn.org/egress-assignable=""
      node/ip-10-0-142-54.us-east-2.compute.internal labeled
      
      
      3. create egressip
      % cat egressip.yaml 
      apiVersion: k8s.ovn.org/v1
      kind: EgressIP
      metadata:
        name: egressip-1
      spec:
        egressIPs: [ "10.0.129.180" ]
        namespaceSelector:
          matchLabels:
            env: ovn-tests
      % oc apply -f egressip.yaml 
      egressip.k8s.ovn.org/egressip-1 created
      
      
      4. check egressip assignment
                   

      Actual results:

      egressip cannot assigned to node
      % oc get egressip NAME         EGRESSIPS      ASSIGNED NODE   ASSIGNED EGRESSIPS egressip-1   10.0.129.180 

      Expected results:

      egressip can be assigned to one of the hosted cluster node

      Additional info:

       

              pdiak@redhat.com Patryk Diak
              rh-ee-qiowang Qiong Wang
              Huiran Wang Huiran Wang
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: