Bug 1939488

Summary: [4.7z] need ability to reconcile exgw annotations on pod add
Product: OpenShift Container Platform Reporter: Victor Pickard <vpickard>
Component: NetworkingAssignee: Victor Pickard <vpickard>
Networking sub component: ovn-kubernetes QA Contact: Ross Brattain <rbrattai>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: medium CC: aconstan, anusaxen, mapandey, trozet, vpickard
Version: 4.7   
Target Milestone: ---   
Target Release: 4.7.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: 1916872 Environment:
Last Closed: 2021-05-19 15:15:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1916872    
Bug Blocks:    

Comment 2 Ross Brattain 2021-05-10 05:35:24 UTC
Verified on 4.7.0-0.nightly-2021-05-09-213606


route is updated after annotation change.


sh-4.4# ovn-nbctl --no-leader-only lr-route-list GR_compute-0
IPv4 Routes
10.128.2.39             172.31.249.64 src-ip ecmp-symmetric-reply
10.128.0.0/14                100.64.0.1 dst-ip
0.0.0.0/0              172.31.248.1 dst-ip rtoe-GR_compute-0



--
3284-I0510 05:25:27.249095       1 egressgw.go:173] No gateways found to remove for annotated gateway pod: testpod1 on namespace: exgw
3285-I0510 05:25:27.249099       1 egressgw.go:38] External gateway pod: testpod1, detected for namespace(s) exgw
3286:2021-05-10T05:25:27.252Z|01165|nbctl|INFO|Running command run --may-exist --policy=src-ip --ecmp-symmetric-reply -- lr-route-add GR_compute-0 10.128.2.39/32 172.31.249.61
3287-2021-05-10T05:25:27.263Z|01166|nbctl|INFO|Running command run -- lr-policy-add ovn_cluster_router 501 "inport == \"rtos-compute-0\" && ip4.src == 10.128.2.39 && ip4.dst != 10.128.0.0/14" reroute 100.64.0.5

--

3303-I0510 05:27:15.668076       1 egressgw.go:156] Deleting routes for external gateway pod: testpod1, for namespace(s) exgw
3304:2021-05-10T05:27:15.671Z|01171|nbctl|INFO|Running command run --if-exists --policy=src-ip -- lr-route-del GR_compute-0 10.128.2.39/32 172.31.249.61
3305-2021-05-10T05:27:15.681Z|01172|nbctl|INFO|Running command run -- lr-policy-del ovn_cluster_router 501 "inport == \"rtos-compute-0\" && ip4.src == 10.128.2.39 && ip4.dst != 10.128.0.0/14"
3306:I0510 05:27:15.695526       1 egressgw.go:492] Did not find bfd entry for rtoe-GR_compute-0 172.31.249.61
3307-I0510 05:27:15.695550       1 egressgw.go:38] External gateway pod: testpod1, detected for namespace(s) exgw
3308:2021-05-10T05:27:15.698Z|01173|nbctl|INFO|Running command run --may-exist --policy=src-ip --ecmp-symmetric-reply -- lr-route-add GR_compute-0 10.128.2.39/32 172.31.249.64
3309-2021-05-10T05:27:15.712Z|01174|nbctl|INFO|Running command run -- lr-policy-add ovn_cluster_router 501 "inport == \"rtos-compute-0\" && ip4.src == 10.128.2.39 && ip4.dst != 10.128.0.0/14" reroute 100.64.0.5

Comment 5 errata-xmlrpc 2021-05-19 15:15:42 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 (OpenShift Container Platform 4.7.11 bug fix 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.

https://access.redhat.com/errata/RHBA-2021:1550