Bug 1965954

Summary: OSP16.2 openstack router add subnet - fails with: 504 Gateway Time-out
Product: Red Hat OpenStack Reporter: pkomarov
Component: python-networking-ovnAssignee: Terry Wilson <twilson>
Status: CLOSED ERRATA QA Contact: Eran Kuris <ekuris>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 16.2 (Train)CC: amusil, apevec, bcafarel, ccamposr, dceara, dciabrin, i.maximets, lhh, majopela, mburman, oblaut, scohen, shrjoshi, spower, twilson
Target Milestone: betaKeywords: AutomationBlocker, Regression, Triaged
Target Release: 16.2 (Train on RHEL 8.4)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-networking-ovn-7.4.2-2.20210601204819.el8ost.6 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-09-15 07:15:18 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: 1940824    

Description pkomarov 2021-05-31 08:33:12 UTC
Description of problem:
OSP16.2 openstack router add subnet - fails with: 504 Gateway Time-out

Version-Release number of selected component (if applicable):
RHOS-16.2-RHEL-8-20210525.n.0

How reproducible:
100%

Steps to Reproduce:
1. create a router
2. create a network
3. create a subnet
4. try to add subnet to router (add_router_interface) fails

Actual results:
+ openstack router add subnet internal_net_ca19caa201_router internal_net_ca19caa201_subnet
HttpException: 500: Server Error for url: http://10.0.0.102:9696/v2.0/routers/250dcf71-3110-4ef5-9349-b47a43de6e78/add_router_interface, Request Failed: internal server error while processing your request.
+ echo 'Set external-gateway for internal_net_ca19caa201_router'
Set external-gateway for internal_net_ca19caa201_router
+ openstack router set --external-gateway nova internal_net_ca19caa201_router
HttpException: 504: Server Error for url: http://10.0.0.102:9696/v2.0/routers/250dcf71-3110-4ef5-9349-b47a43de6e78, The server didn't respond in time.: 504 Gateway Time-out


Additional info:
auto reproducer is to run this vm boot script : 
https://code.engineering.redhat.com/gerrit/gitweb?p=openstack-pidone-qe.git;a=blob;f=CI/ansible_sts/templates/boot_oc_workload.sh.j2;h=5878eead7dcb89d143cfc832253a98af494e0457;hb=HEAD

Comment 19 pkomarov 2021-07-07 12:17:56 UTC
Verified , the issues reported here are solved by the fix proposed.
Tested via the a boot vm script. and cuncurent controller reboots
https://code.engineering.redhat.com/gerrit/gitweb?p=openstack-pidone-qe.git;a=blob;f=CI/ansible_sts/templates/boot_oc_workload.sh.j2;h=5878eead7dcb89d143cfc832253a98af494e0457;hb=HEAD

Comment 20 pkomarov 2021-07-07 12:18:18 UTC
*** Bug 1974439 has been marked as a duplicate of this bug. ***

Comment 23 errata-xmlrpc 2021-09-15 07:15:18 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 (Red Hat OpenStack Platform (RHOSP) 16.2 enhancement 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/RHEA-2021:3483