Bug 1953257

Summary: Multiple EgressIPs per node for one namespace when "oc get hostsubnet"
Product: OpenShift Container Platform Reporter: huirwang
Component: NetworkingAssignee: Alexander Constantinescu <aconstan>
Networking sub component: openshift-sdn QA Contact: huirwang
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: unspecified CC: aconstan
Version: 4.8   
Target Milestone: ---   
Target Release: 4.8.0   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-27 23:03:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description huirwang 2021-04-25 02:00:10 UTC
Description of problem:
There are multiple EgressIPs displaying when "oc get hostsubnet", per one namespace per one node

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

How reproducible:

Steps to Reproduce:
1. Patch two EgressCIDRs to two nodes.

2. Patch 3 EgressIPs to one namespace

3. Check result for "oc get hostsubnet"

Actual results:

For node hrw-0425a-79mdc-worker-sbfdg, there are two EgressIPs displaying and both of them are for same namespace test.
oc get netnamespace test
test   5451022   ["","",""]

oc get hostsubnet
NAME                           HOST                           HOST IP          SUBNET          EGRESS CIDRS          EGRESS IPS
hrw-0425a-79mdc-master-0       hrw-0425a-79mdc-master-0                         
hrw-0425a-79mdc-master-1       hrw-0425a-79mdc-master-1                         
hrw-0425a-79mdc-master-2       hrw-0425a-79mdc-master-2                         
hrw-0425a-79mdc-worker-2866m   hrw-0425a-79mdc-worker-2866m                         
hrw-0425a-79mdc-worker-8gm9m   hrw-0425a-79mdc-worker-8gm9m   [""]   [""]
hrw-0425a-79mdc-worker-sbfdg   hrw-0425a-79mdc-worker-sbfdg   [""]   ["",""]

Expected results:
Should only display one EgressIP per node per namespace.

Additional info:

Note: If debug to the node, actually it is only one EgressIP assigned which is expected. But above displaying issue will also cause confusion.

oc debug node/hrw-0425a-79mdc-worker-sbfdg
Starting pod/hrw-0425a-79mdc-worker-sbfdg-debug ...
To use host binaries, run `chroot /host`
Pod IP:
If you don't see a command prompt, try pressing enter.
sh-4.4# ip a show ens192
2: ens192: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 00:50:56:ac:17:7d brd ff:ff:ff:ff:ff:ff
    inet brd scope global dynamic noprefixroute ens192
       valid_lft 4816sec preferred_lft 4816sec
    inet brd scope global secondary ens192:eip
       valid_lft forever preferred_lft forever
    inet6 fe80::ae93:5582:6477:5654/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever

Comment 5 errata-xmlrpc 2021-07-27 23:03:30 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.8.2 bug fix and security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.