Bug 1953257 - Multiple EgressIPs per node for one namespace when "oc get hostsubnet"
Summary: Multiple EgressIPs per node for one namespace when "oc get hostsubnet"
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Networking
Version: 4.8
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 4.8.0
Assignee: Alexander Constantinescu
QA Contact: huirwang
Depends On:
TreeView+ depends on / blocked
Reported: 2021-04-25 02:00 UTC by huirwang
Modified: 2021-07-27 23:03 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2021-07-27 23:03:30 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Github openshift sdn pull 295 0 None open Bug 1953257: Fix invalid egress IP assignments in sdn-controller 2021-04-29 13:03:14 UTC
Red Hat Product Errata RHSA-2021:2438 0 None None None 2021-07-27 23:03:47 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.