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

[Nutanix EgressIP] The egressIP was not removed from nutanix nic after deleting egressIP object

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Undefined
    • None
    • 4.14
    • None
    • Important
    • No
    • SDN Sprint 236
    • 1
    • Proposed
    • False
    • Hide

      None

      Show
      None

    Description

      Description of problem:

      After run egressIP automation cases, found many IPs left for nutanix nic, then manually reproduced that egressIP was not removed from nutanix nic after deleting egressIP objects 
      
      

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

      4.14.0-0.nightly-2023-05-19-234822 
      
      
      

      How reproducible:

      Always
      
      

      Steps to Reproduce:

      1. Label one node as egress node
      % oc label node  huirwang-0522a-qx4w4-master-2    k8s.ovn.org/egress-assignable=    
      node/huirwang-0522a-qx4w4-master-2 labeled
      
      10. Create egressIP object  and create namespace
      % oc get egressip
      NAME         EGRESSIPS     ASSIGNED NODE                   ASSIGNED EGRESSIPS
      egressip-1   10.0.132.80   huirwang-0522a-qx4w4-master-2   10.0.132.80
      
       % oc create ns test
      namespace/test created
      
      % oc create -f ../data/4.12/ping-pod.yaml -n test
      pod/hello-pod created
      Before add label to namespace test, check the node huirwang-0522a-qx4w4-master-2, egressIP was not there.
      [
        {
          "nic_type": "NORMAL_NIC",
          "uuid": "395748c3-d5fe-4c3b-8da4-a482c40fc12b",
          "ip_endpoint_list": [
            {
              "ip": "10.0.132.235",
              "type": "ASSIGNED"
            }
          ],
          "vlan_mode": "ACCESS",
          "mac_address": "50:6b:8d:ec:fd:69",
          "subnet_reference": {
            "kind": "subnet",
            "name": "uvm_network2",
            "uuid": "efe26e93-f6cf-4d89-8104-009e85201fa8"
          },
          "is_connected": true,
          "trunked_vlan_list": []
        }
      ]
      
      Add label to namespace test
       % oc label ns test name=qe
      namespace/test labeled
      
       Check node huirwang-0522a-qx4w4-master-2
      [
        {
          "nic_type": "NORMAL_NIC",
          "uuid": "395748c3-d5fe-4c3b-8da4-a482c40fc12b",
          "ip_endpoint_list": [
            {
              "ip": "10.0.132.235",
              "type": "ASSIGNED"
            },
            {
              "ip": "10.0.132.80",
              "type": "LEARNED"
            }
          ],
          "vlan_mode": "ACCESS",
          "mac_address": "50:6b:8d:ec:fd:69",
          "subnet_reference": {
            "kind": "subnet",
            "name": "uvm_network2",
            "uuid": "efe26e93-f6cf-4d89-8104-009e85201fa8"
          },
          "is_connected": true,
          "trunked_vlan_list": []
        }
      ]
      
      Delete egressIP object and namespace test
      % oc get egressip
      No resources found
       % oc get ns test
      Error from server (NotFound): namespaces "test" not found
      
      Checked node huirwang-0522a-qx4w4-master-2 nic again
      

      Actual results:

      EgressIP was not removed
      [
        {
          "nic_type": "NORMAL_NIC",
          "uuid": "395748c3-d5fe-4c3b-8da4-a482c40fc12b",
          "ip_endpoint_list": [
            {
              "ip": "10.0.132.235",
              "type": "ASSIGNED"
            },
            {
              "ip": "10.0.132.80",
              "type": "LEARNED"
            }
          ],
          "vlan_mode": "ACCESS",
          "mac_address": "50:6b:8d:ec:fd:69",
          "subnet_reference": {
            "kind": "subnet",
            "name": "uvm_network2",
            "uuid": "efe26e93-f6cf-4d89-8104-009e85201fa8"
          },
          "is_connected": true,
          "trunked_vlan_list": []
        }
      ]
      

      Expected results:

      EgressIP should be removed from VM  NIC.
      
      

      Additional info:

      
      

      Attachments

        Activity

          People

            pdiak@redhat.com Patryk Diak
            huirwang Huiran Wang
            Huiran Wang Huiran Wang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: