Bug 1956060

Summary: db-sync script creates metadata ports and then immediately deletes them
Product: Red Hat OpenStack Reporter: Jakub Libosvar <jlibosva>
Component: python-networking-ovnAssignee: Jakub Libosvar <jlibosva>
Status: CLOSED ERRATA QA Contact: Eduardo Olivares <eolivare>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 16.1 (Train)CC: apevec, egarciar, eolivare, lhh, majopela, scohen
Target Milestone: z7Keywords: AutomationBlocker, Triaged
Target Release: 16.1 (Train on RHEL 8.2)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-networking-ovn-7.3.1-1.20210713093309.4e24f4c.el8ost Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 1981321 (view as bug list) Environment:
Last Closed: 2021-12-09 20:19:04 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: 1964976    

Description Jakub Libosvar 2021-05-02 11:52:56 UTC
Description of problem:
The neutron-ovn-db-sync-script util removes legitimate ovnmeta ports if there are mutliple DHCP ports such as reserved_dhcp_port in the network. This was found in the context of ml2/ovs to ml2/ovn migration where environment already had some DHCP ports created.

Version-Release number of selected component (if applicable):
OSP 16.1.5

How reproducible:
Always

Steps to Reproduce:
1. Have an environment with DHCP ports 
2. Run db-sync script
3. THe script deletes ovnmeta even if they were existing before

Actual results:
Metadata services don't work

Expected results:


Additional info:

Comment 2 Elvira 2021-05-11 14:02:12 UTC
*** Bug 1955579 has been marked as a duplicate of this bug. ***

Comment 22 errata-xmlrpc 2021-12-09 20:19:04 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 16.1.7 (Train) bug fix and 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/RHBA-2021:3762