Bug 1956060 - db-sync script creates metadata ports and then immediately deletes them
Summary: db-sync script creates metadata ports and then immediately deletes them
Status: ON_DEV
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-networking-ovn
Version: 16.1 (Train)
Hardware: Unspecified
OS: Unspecified
Target Milestone: z7
: 16.1 (Train on RHEL 8.2)
Assignee: Jakub Libosvar
QA Contact: Eran Kuris
: 1955579 (view as bug list)
Depends On:
TreeView+ depends on / blocked
Reported: 2021-05-02 11:52 UTC by Jakub Libosvar
Modified: 2021-05-17 04:32 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed:
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
OpenStack gerrit 789085 0 None NEW ovn: Don't use dict.remove() for filtering dhcp ports in db-sync 2021-05-02 11:53:25 UTC

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:

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. ***

Note You need to log in before you can comment on or make changes to this bug.