Hi,

Any clues about this error? It is reproduceable but not consistently.
There are 3 Neutron nodes and 3 OVN DB nodes (RAFT cluster).
It happened when connecting network to router by OpenStack cli.

===================================
2020-08-03 12:30:17.054 22 ERROR ovsdbapp.backend.ovs_idl.transaction 
[req-acf33a39-f8b5-4b9f-91d7-0100f1e7c189 - - - - -] OVSDB Error: 
{"details":"Transaction causes multiple rows in \"Logical_Switch_Port\" table 
to have identical values (\"6ee12e8e-f8e5-46e2-84b7-58b9dc7d9253\") for index 
on column \"name\".  First row, with UUID b5c36d61-ad55-45bf-90f6-70f6649251c3, 
existed in the database before this transaction and was not modified by the 
transaction.  Second row, with UUID 5498876d-55f6-4364-8db7-f6d591dc9ba9, was 
inserted by this transaction.","error":"constraint violation"}
2020-08-03 12:30:17.055 22 ERROR ovsdbapp.backend.ovs_idl.transaction 
[req-8b5c1d93-ba88-4259-ab7e-08ee6c57a884 fb4212bf04404c15a19208ca920c1b1a 
3e9209736c7146bead16e02b0679f3a1 - default default] Traceback (most recent call 
last):
  File 
"/usr/lib/python3.6/site-packages/ovsdbapp/backend/ovs_idl/connection.py", line 
122, in run
    txn.results.put(txn.do_commit())
  File 
"/usr/lib/python3.6/site-packages/ovsdbapp/backend/ovs_idl/transaction.py", 
line 118, in do_commit
    raise RuntimeError(msg)
RuntimeError: OVSDB Error: {"details":"Transaction causes multiple rows in 
\"Logical_Switch_Port\" table to have identical values 
(\"6ee12e8e-f8e5-46e2-84b7-58b9dc7d9253\") for index on column \"name\".  First 
row, with UUID b5c36d61-ad55-45bf-90f6-70f6649251c3, existed in the database 
before this transaction and was not modified by the transaction.  Second row, 
with UUID 5498876d-55f6-4364-8db7-f6d591dc9ba9, was inserted by this 
transaction.","error":"constraint violation"}

2020-08-03 12:30:17.056 22 ERROR neutron.plugins.ml2.managers 
[req-8b5c1d93-ba88-4259-ab7e-08ee6c57a884 fb4212bf04404c15a19208ca920c1b1a 
3e9209736c7146bead16e02b0679f3a1 - default default] Mechanism driver 'ovn' 
failed in create_port_postcommit: RuntimeError: OVSDB Error: 
{"details":"Transaction causes multiple rows in \"Logical_Switch_Port\" table 
to have identical values (\"6ee12e8e-f8e5-46e2-84b7-58b9dc7d9253\") for index 
on column \"name\".  First row, with UUID b5c36d61-ad55-45bf-90f6-70f6649251c3, 
existed in the database before this transaction and was not modified by the 
transaction.  Second row, with UUID 5498876d-55f6-4364-8db7-f6d591dc9ba9, was 
inserted by this transaction.","error":"constraint violation"}
2020-08-03 12:30:17.056 22 ERROR neutron.plugins.ml2.managers Traceback (most 
recent call last):
2020-08-03 12:30:17.056 22 ERROR neutron.plugins.ml2.managers   File 
"/usr/lib/python3.6/site-packages/neutron/plugins/ml2/managers.py", line 477, 
in _call_on_drivers
2020-08-03 12:30:17.056 22 ERROR neutron.plugins.ml2.managers     
getattr(driver.obj, method_name)(context)
2020-08-03 12:30:17.056 22 ERROR neutron.plugins.ml2.managers   File 
"/usr/lib/python3.6/site-packages/neutron/plugins/ml2/drivers/ovn/mech_driver/mech_driver.py",
 line 544, in create_port_postcommit
2020-08-03 12:30:17.056 22 ERROR neutron.plugins.ml2.managers     
self._ovn_client.create_port(context._plugin_context, port)
2020-08-03 12:30:17.056 22 ERROR neutron.plugins.ml2.managers   File 
"/usr/lib/python3.6/site-packages/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/ovn_client.py",
 line 437, in create_port
2020-08-03 12:30:17.056 22 ERROR neutron.plugins.ml2.managers     
self._qos_driver.create_port(txn, port)
2020-08-03 12:30:17.056 22 ERROR neutron.plugins.ml2.managers   File 
"/usr/lib64/python3.6/contextlib.py", line 88, in __exit__
2020-08-03 12:30:17.056 22 ERROR neutron.plugins.ml2.managers     next(self.gen)
2020-08-03 12:30:17.056 22 ERROR neutron.plugins.ml2.managers   File 
"/usr/lib/python3.6/site-packages/neutron/plugins/ml2/drivers/ovn/mech_driver/ovsdb/impl_idl_ovn.py",
 line 184, in transaction
2020-08-03 12:30:17.056 22 ERROR neutron.plugins.ml2.managers     yield t
2020-08-03 12:30:17.056 22 ERROR neutron.plugins.ml2.managers   File 
"/usr/lib64/python3.6/contextlib.py", line 88, in __exit__
2020-08-03 12:30:17.056 22 ERROR neutron.plugins.ml2.managers     next(self.gen)
2020-08-03 12:30:17.056 22 ERROR neutron.plugins.ml2.managers   File 
"/usr/lib/python3.6/site-packages/ovsdbapp/api.py", line 119, in transaction
2020-08-03 12:30:17.056 22 ERROR neutron.plugins.ml2.managers     del 
self._nested_txns_map[cur_thread_id]
2020-08-03 12:30:17.056 22 ERROR neutron.plugins.ml2.managers   File 
"/usr/lib/python3.6/site-packages/ovsdbapp/api.py", line 69, in __exit__
2020-08-03 12:30:17.056 22 ERROR neutron.plugins.ml2.managers     self.result = 
self.commit()
2020-08-03 12:30:17.056 22 ERROR neutron.plugins.ml2.managers   File 
"/usr/lib/python3.6/site-packages/ovsdbapp/backend/ovs_idl/transaction.py", 
line 62, in commit
2020-08-03 12:30:17.056 22 ERROR neutron.plugins.ml2.managers     raise 
result.ex
2020-08-03 12:30:17.056 22 ERROR neutron.plugins.ml2.managers   File 
"/usr/lib/python3.6/site-packages/ovsdbapp/backend/ovs_idl/connection.py", line 
122, in run
2020-08-03 12:30:17.056 22 ERROR neutron.plugins.ml2.managers     
txn.results.put(txn.do_commit())
2020-08-03 12:30:17.056 22 ERROR neutron.plugins.ml2.managers   File 
"/usr/lib/python3.6/site-packages/ovsdbapp/backend/ovs_idl/transaction.py", 
line 118, in do_commit
2020-08-03 12:30:17.056 22 ERROR neutron.plugins.ml2.managers     raise 
RuntimeError(msg)
2020-08-03 12:30:17.056 22 ERROR neutron.plugins.ml2.managers RuntimeError: 
OVSDB Error: {"details":"Transaction causes multiple rows in 
\"Logical_Switch_Port\" table to have identical values 
(\"6ee12e8e-f8e5-46e2-84b7-58b9dc7d9253\") for index on column \"name\".  First 
row, with UUID b5c36d61-ad55-45bf-90f6-70f6649251c3, existed in the database 
before this transaction and was not modified by the transaction.  Second row, 
with UUID 5498876d-55f6-4364-8db7-f6d591dc9ba9, was inserted by this 
transaction.","error":"constraint violation"}
2020-08-03 12:30:17.056 22 ERROR neutron.plugins.ml2.managers
2020-08-03 12:30:17.058 22 ERROR neutron.plugins.ml2.plugin 
[req-8b5c1d93-ba88-4259-ab7e-08ee6c57a884 fb4212bf04404c15a19208ca920c1b1a 
3e9209736c7146bead16e02b0679f3a1 - default default] 
mechanism_manager.create_port_postcommit failed, deleting port 
'6ee12e8e-f8e5-46e2-84b7-58b9dc7d9253': 
neutron.plugins.ml2.common.exceptions.MechanismDriverError
===================================


Thanks!

Tony

_______________________________________________
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss

Reply via email to