Upgrade oslo.db and Replace DbMigrationError with DBMigrationError

DbMigrationError is deprecated and will NOT be thrown in oslo.db
since oslo.db >=4.27.0, DBMigrationError will be thrown instead.
Consumers should catch DBMigrationError instead of DbMigrationError

Depends-On: Iab0566cf9f4552e91fa417e64472fa106e8bc86d
Depends-On: I0ebd69c3d778acb5bec9e136627e345e7fcf2bd3

Change-Id: I8e4968d2f2ed90edc22161db60712896f6e9f024
This commit is contained in:
Yaguo Zhou 2017-09-05 22:32:35 +08:00
parent 93556d3116
commit db67c44897
2 changed files with 2 additions and 2 deletions

View File

@ -72,5 +72,5 @@ def db_sync(version=None, init_version=INIT_VERSION, engine=None):
abs_path=MIGRATE_REPO_PATH,
version=version,
init_version=init_version)
except oslo_exception.DbMigrationError as exc:
except oslo_exception.DBMigrationError as exc:
raise exception.InvalidInput(reason=exc)

View File

@ -9,7 +9,7 @@ keystoneauth1>=2.21.0 # Apache-2.0
keystonemiddleware>=4.12.0 # Apache-2.0
microversion-parse>=0.1.2 # Apache-2.0
oslo.config!=4.3.0,!=4.4.0,>=4.0.0 # Apache-2.0
oslo.db>=4.23.0 # Apache-2.0
oslo.db>=4.27.0 # Apache-2.0
oslo.messaging!=5.25.0,>=5.24.2 # Apache-2.0
oslo.i18n!=3.15.2,>=2.1.0 # Apache-2.0
oslo.log>=3.22.0 # Apache-2.0