Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1761389

Summary: external gateway connectivity lost when adding external subnets
Product: Red Hat OpenStack Reporter: ffernand <ffernand>
Component: python-networking-ovnAssignee: ffernand <ffernand>
Status: CLOSED ERRATA QA Contact: Eduardo Olivares <eolivare>
Severity: high Docs Contact:
Priority: high    
Version: 13.0 (Queens)CC: apevec, lhh, majopela, scohen
Target Milestone: z11Keywords: Triaged, ZStream
Target Release: 13.0 (Queens)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-networking-ovn-4.0.3-15.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1761397 1761400 1761419 (view as bug list) Environment:
Last Closed: 2020-03-10 11:26:10 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:    
Bug Blocks: 1761397, 1761400, 1761419    

Description ffernand 2019-10-14 10:25:59 UTC
Description of problem:

If we attach a subnet to that external network afterwards, the northbound
database loses that logical port, together with the row in the gateway_chassis table.

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

How reproducible:
Always

Steps to Reproduce:

openstack network create public --external --default --provider-network-type vlan --provider-physical-network tenant --provider-segment 1099

openstack router create myrouter

EXT_NET_ID=$(openstack network show public -f value -c id)
openstack router set --external-gateway $EXT_NET_ID myrouter

Actual results:

We lose connectivity on all external subnets, because the router logical port is lost

Expected results:

User should be able to set subnets after creating and attaching external networks to router


Additional info:

See launchpad for more details on what the sequence of events cause this.

Comment 1 ffernand 2019-10-14 11:08:40 UTC
When router has a port set as external gateway, a logical port is created on the logical_router
in the nortbound database, as expected.

However, if we attach a subnet to that external network afterwards, the northbound
database loses that logical port, together with the row in the gateway_chassis table.

Comment 4 Eduardo Olivares 2020-02-14 09:52:20 UTC
Verified on OSP13 2020-02-10.8 puddle with python-networking-ovn-4.0.4-2.el7ost.noarch

- Router connected to external network
- Added subnet1 with existing VM instances - external connectivity OK
- Added subnet2 without VM instances - external connectivity OK (checked from previous VM instances)
- Added IPV6 subnet - external connectivity OK

No logical port was lost from this logical router during the test. Instead, new ports and nats were added with every new subnet.

Comment 7 errata-xmlrpc 2020-03-10 11:26:10 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, 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-2020:0770

Comment 8 Red Hat Bugzilla 2023-09-14 05:44:29 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days