[openstack-dev] oslo.db 0.4.0 released

Doug Hellmann doug at doughellmann.com
Thu Aug 21 12:44:19 UTC 2014


On Aug 20, 2014, at 7:38 AM, Victor Sergeyev <vsergeyev at mirantis.com> wrote:

> Hello Folks!
> 
> Oslo team is pleased to announce the new Oslo database handling library release - oslo.db 0.4.0
> Thanks all for contributions to this release.
> 
> Feel free to report issues using the launchpad tracker: https://bugs.launchpad.net/oslo and mark them with ``db`` tag.
> 
> See the full list of changes:
> 
> $ git log --oneline --no-merges 0.3.0..0.4.0
> ee176a8 Implement a dialect-level function dispatch system
> 6065b21 Move to oslo.utils
> deeda38 Restore correct source file encodings
> 4dde38b Handle DB2 SmallInteger type for change_deleted_column_type_to_boolean
> 4c18fca Imported Translations from Transifex
> 69f16bf Fixes comments to pass E265 check.
> e1dbd31 Fixes indentations to pass E128 check.
> 423c17e Uses keyword params for i18n string to pass H703
> 3cb5927 Adds empty line to multilines docs to pass H405
> 0996c5d Updates one line docstring with dot to pass H402
> a3ca010 Changes import orders to pass H305 check
> 584a883 Fixed DeprecationWarning in exc_filters
> fc2fc90 Imported Translations from Transifex
> 3b17365 oslo.db.exceptions module documentation
> c919585 Updated from global requirements
> 4685631 Extension of DBDuplicateEntry exception
> 7cb512c oslo.db.options module documentation
> c0d9f36 oslo.db.api module documentation
> 93d95d4 Imported Translations from Transifex
> e83e4ca Use SQLAlchemy cursor execute events for tracing
> d845a16 Remove sqla_07 from tox.ini
> 9722ab6 Updated from global requirements
> 3bf8941 Specify raise_on_warnings=False for mysqlconnector
> 1814bf8 Make MySQL regexes generic across MySQL drivers
> 62729fb Allow tox tests with complex OS_TEST_DBAPI_CONNECTION URLs
> a9e3af2 Raise DBReferenceError on foreign key violation
> b69899e Add host argument to get_connect_string()
> 9a6aa50 Imported Translations from Transifex
> f817555 Don't drop pre-existing database before tests
> 4499da7 Port _is_db_connection_error check to exception filters
> 9d5ab2a Integrate the ping listener into the filter system.
> cbae81e Add disconnect modification support to exception handling
> 0a6c8a8 Implement new exception interception and filtering layer
> 69a4a03 Implement the SQLAlchemy ``handle_error()`` event.
> f96deb8 Remove moxstubout.py from oslo.db
> 7d78e3e Added check for DB2 deadlock error
> 2df7e88 Bump hacking to version 0.9.2
> c34c32e Opportunistic migration tests
> 108e2bd Move all db exception to exception.py
> 35afdf1 Enable skipped tests from test_models.py
> e68a53b Use explicit loops instead of list comprehensions
> 44e96a8 Imported Translations from Transifex
> 817fd44 Allow usage of several iterators on ModelBase
> baf30bf Add DBDuplicateEntry detection for mysqlconnector driver
> 4796d06 Check for mysql_sql_mode is not None in create_engine()
> 01b916c remove definitions of Python Source Code Encoding
> 
> Thanks,
> Victor

I want to point out one of the changes in that long long list for special attention: "Implement new exception interception and filtering layer”. This and a few related changes means that the new version of oslo.db uses a consistent set of exceptions, no matter which database backend is in use. That means applications no longer need to have different imports or logic for catching exceptions from mysql, postgresql, sqlite, etc. 

The team held back from releasing the library until they could update a few places in applications to catch the new exceptions to ensure that the new library release didn’t break anyone.

Nice work, everyone!

Doug


> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev




More information about the OpenStack-dev mailing list