Bug 2135260

Summary: router gateway unset + set breaks ovn lb connectivity
Product: Red Hat OpenStack Reporter: Luis Tomas Bolivar <ltomasbo>
Component: python-ovn-octavia-providerAssignee: Luis Tomas Bolivar <ltomasbo>
Status: CLOSED ERRATA QA Contact: Omer Schwartz <oschwart>
Severity: high Docs Contact:
Priority: high    
Version: 17.0 (Wallaby)CC: oschwart
Target Milestone: betaKeywords: TestOnly, Triaged
Target Release: 17.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-ovn-octavia-provider-1.0.1-0.20221122190308.bbf881f.el9ost Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 2135261 (view as bug list) Environment:
Last Closed: 2023-08-16 01:12:25 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:
Embargoed:
Bug Depends On: 2163815    
Bug Blocks: 2135261, 2136015    

Description Luis Tomas Bolivar 2022-10-17 07:10:45 UTC
Before adding support for lbs with VIPs on the provider networks, there was no need to react to gateway chassis creation events, and nothing was done for its deletion. However, after adding the support for that, there is a need of properly handling the creation event for that type of port.

The LogicalRouterPortEvent for gateway_chassis port are skip [1], however if ovn lb VIPs are on provider network, the create event needs to be handle so that the loadbalancer gets properly configured and added to the router

For the loadbalancer VIPs on the provider network, processing the event and triggering the lb_creat_lrp_assoc_handler means that the information about the logical router will be added, i.e., the router is added to the loadbalancer external_ids as a lr_ref, while the loadbalancer is also added into the logical_router object (loadbalancer entry). In addition, the lb is also added to the logical switches connected to the router.

[1] https://opendev.org/openstack/ovn-octavia-provider/src/commit/acbf6e7f3e223c088582390475c84464bc27227d/ovn_octavia_provider/event.py#L39

Comment 21 errata-xmlrpc 2023-08-16 01:12:25 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 (Release of components for Red Hat OpenStack Platform 17.1 (Wallaby)), 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/RHEA-2023:4577