Bug 2004149

Summary: [ovn migration] fails during Sync neutron db with OVN db task
Product: Red Hat OpenStack Reporter: Lucas Alvares Gomes <lmartins>
Component: python-networking-ovnAssignee: Lucas Alvares Gomes <lmartins>
Status: CLOSED ERRATA QA Contact: Roman Safronov <rsafrono>
Severity: high Docs Contact:
Priority: high    
Version: 16.2 (Train)CC: apevec, atragler, bcafarel, dalvarez, ekuris, eolivare, jlibosva, lhh, lmartins, majopela, pmannidi, ralonsoh, rsafrono, scohen, slinaber, spower, supadhya, tvignaud
Target Milestone: z1Keywords: 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.20210601204830.el8ost.13 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1993080 Environment:
Last Closed: 2021-12-09 20:41:22 UTC Type: ---
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: 2003023, 2003708    
Bug Blocks:    

Comment 23 Jakub Libosvar 2021-11-16 15:46:58 UTC
It likely fails because of https://bugzilla.redhat.com/show_bug.cgi?id=2023640 - the error is

2021-11-16 10:54:33.811 37 DEBUG ovsdbapp.backend.ovs_idl.transaction [-] Running txn n=1 command(idx=0): PgAclAddCommand(entity=pg_e584d0e7_9903_4a61_a93a_5cd70d6362ac, direction=to-lport, priority=1002, match=outport == @pg_e584d0e7_9903_4a61_a93a_5cd70d6362ac && ip4 && tcp && tcp.dst == 22, action=allow-related, log=False, may_exist=False, severity=[], name=[], meter=None, external_ids={'neutron:security_group_rule_id': '0051a117-8290-4870-afc4-d68fae61b5c2'}) do_commit /usr/lib/python3.6/site-packages/ovsdbapp/backend/ovs_idl/transaction.py:84
2021-11-16 10:54:33.812 37 ERROR ovsdbapp.backend.ovs_idl.transaction [req-1171756a-9ae2-46e3-bcc7-7c0a45a6e168 - - - - -] Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/ovsdbapp/backend/ovs_idl/connection.py", line 128, in run
    txn.results.put(txn.do_commit())
  File "/usr/lib/python3.6/site-packages/ovsdbapp/backend/ovs_idl/transaction.py", line 86, in do_commit
    command.run_idl(txn)
  File "/usr/lib/python3.6/site-packages/ovsdbapp/schema/ovn_northbound/commands.py", line 122, in run_idl
    self.direction, self.priority, self.match))
RuntimeError: ACL (to-lport, 1002, outport == @pg_e584d0e7_9903_4a61_a93a_5cd70d6362ac && ip4 && tcp && tcp.dst == 22) already exists

Comment 27 Roman Safronov 2021-11-23 11:54:17 UTC
Verified on RHOS-16.2-RHEL-8-20211119.n.2 with python3-networking-ovn-7.4.2-2.20210601204831.el8ost.13.noarch and python3-networking-ovn-migration-tool-7.4.2-2.20210601204831.el8ost.13.noarch
No db sync issues during ovs2ovn migration on all downstream CI jobs.

Comment 35 errata-xmlrpc 2021-12-09 20:41:22 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 16.2.1 (Train)), 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:5067