glance/glance
Victor Sergeyev 99f4ad8172 Sync common db code from Oslo
This sync contains commit ``ce69e7f Don't store engine instances in oslo.db ``
which removed global engine from oslo.db code. So, added code
for work with sqla engines and sessions to Glance - get_engine()
and get_session() functions in glance.db.sqlalchemy.api module.

Also this remove database slave connection and tpool features, because
they was removed from oslo code and seeps to be unused in Glance.

Full list of changes:

7959826 db: move all options into database group
dda24eb Introduce mysql_sql_mode option, remove old warning
0b5af67 Introduce a method to set any MySQL session SQL mode
8dccc7b Handle ibm_db_sa DBDuplicateEntry integrity errors
0f24d82 Fix migration.db_version when no tables
ac84a40 Update log translation domains
c0d357b Add model_query() to db.sqlalchemy.utils module
84254fc Fix a small typo in api.py
b8a676c Remove CONF.database.connection default value
86707cd Remove None for dict.get()
0545121 Fix duplicating of SQL queries in logs
fcf517d Update oslo log messages with translation domains
fa05b7c Restore the ability to load the DB backend lazily
630d395 Don't use cfg.CONF in oslo.db
ce69e7f Don't store engine instances in oslo.db
35dc1d7 py3kcompat: remove
b4f72b2 Don't raise MySQL 2013 'Lost connection' errors
271adfb Format sql in db.sqlalchemy.session docstring
0334cb3 Handle exception messages with six.text_type
eff69ce Drop dependency on log from oslo db code
7a11a04 Automatic retry db.api query if db connection lost
11f2add Clean up docstring in db.sqlalchemy.session
1b5147f Only enable MySQL TRADITIONAL mode if we're running against MySQL
39e1c5c Move db tests base.py to common code
986dafd Fix parsing of UC errors in sqlite 3.7.16+/3.8.2+
9a203e6 Use dialect rather than a particular DB API driver
1779029 Move helper DB functions to db.sqlalchemy.utils
bcf6d5e Small edits on help strings
ae01e9a Transition from migrate to alembic
70ebb19 Fix mocking of utcnow() for model datetime cols
7aa94df Add a db check for CHARSET=utf8
aff0171 Remove "vim: tabstop=4 shiftwidth=4 softtabstop=4" from headers
fa0f36f Fix database connection string is secret
8575d87 Removed copyright from empty files
d08d27f Fix the obsolete exception message
8b2b0b7 Use hacking import_exceptions for gettextutils._
9bc593e Add docstring for exception handlers of session
855644a Removal of _REPOSITORY global variable.
ea6caf9 Remove string.lowercase usage
a33989e Remove eventlet tpool from common db.api
e40903b Database hook enabling traditional mode at MySQL
f2115a0 Replace xrange in for loop with range
c802fa6 SQLAlchemy error patterns improved
1c1f199 Remove unused import
97d8cf4 Remove lazy loading of database backend

Co-authored-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>

Related to blueprint db-use-oslo-common-code

Change-Id: Ia73abba8309ccc2ad10a0f636b410984c6b6e5d8
2014-02-27 14:14:21 +02:00
..
api Merge "Keep py3.X compatibility for urllib" 2014-02-25 15:02:57 +00:00
cmd Sync common db code from Oslo 2014-02-27 14:14:21 +02:00
common Merge "Keep py3.X compatibility for urllib" 2014-02-25 15:02:57 +00:00
db Sync common db code from Oslo 2014-02-27 14:14:21 +02:00
domain Merge "Add support for PartialTask list" 2014-02-22 12:10:27 +00:00
image_cache Merge "Added undescore function to some strings" 2014-02-22 12:06:31 +00:00
locale Imported Translations from Transifex 2014-01-31 06:02:06 +00:00
openstack Sync common db code from Oslo 2014-02-27 14:14:21 +02:00
quota Enable F841 check 2014-02-13 16:54:12 +04:00
registry Enable F841 check 2014-02-13 16:54:12 +04:00
store Merge "Keep py3.X compatibility for urllib" 2014-02-25 15:02:57 +00:00
tests Sync common db code from Oslo 2014-02-27 14:14:21 +02:00
__init__.py Empty files shouldn't contain copyright nor license 2013-12-24 22:39:05 -06:00
context.py Fix logging context to include user_identity 2014-02-21 17:19:31 +01:00
gateway.py Use common Oslo database session 2014-01-03 05:37:41 +04:00
notifier.py Merge "Add support for PartialTask list" 2014-02-22 12:10:27 +00:00
schema.py fixes use the fact that empty sequences are false 2013-03-18 14:39:38 +08:00
scrubber.py Merge "Enable F841 check" 2014-02-18 08:08:14 +00:00
version.py Remove vim header 2014-01-14 16:03:28 +00:00