
TestOvnNbSync
` tests
The ``TestOvnNbSync`` test cases perform intensive operations on both the Neutron database and the OVN databases. These test are frequently hitting an issue with the Neutron database, that in the functional test is, by default, SQLite. When a port is being deleted, the database raises an exception with the following message: DELETE failed.: oslo_db.exception.DBReferenceError: (sqlite3.IntegrityError) FOREIGN KEY constraint failed [SQL: DELETE FROM ports WHERE ports.id = ?] [parameters: ('64720ac5-72a0-4e88-8193-fd54a97ccef3',)] This resource (port) and the one referring to it (floating IP), have been created and updated in previous API calls, thus the transactions to the database should be commited and finished. This patch is changing the database backend to MySQL, that should provide better transaction isolation. Closes-Bug: #2088423 Change-Id: If1da6c5992aa4635da5a4b5c6eaa06db56d693b4 (cherry picked from commit abb527d1e4ec8ac34f6e277089b59687f9c3307e)
OpenStack Neutron
Neutron is an OpenStack project to provide "network connectivity as a service" between interface devices (e.g., vNICs) managed by other OpenStack services (e.g., Nova).
To learn more about neutron:
- Documentation: https://docs.openstack.org/neutron/latest/
- Features: https://specs.openstack.org/openstack/neutron-specs
- Defects: https://launchpad.net/neutron
- Release notes: https://docs.openstack.org/releasenotes/neutron/index.html
- Source: https://opendev.org/openstack/neutron
If you would like to contribute to Neutron, please read the file CONTRIBUTING.rst or see the Neutron contributor guide:
https://docs.openstack.org/neutron/latest/contributor/contributing.html
Get in touch via email. Use [Neutron] in your subject.
Description
Languages
Python
99.7%
Shell
0.3%