summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Add new foreign key utility function to utils"4.28.0Jenkins2017-09-252-8/+219
|\
| * Add new foreign key utility function to utilsoorgeron2017-09-222-8/+219
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds two new functions: - get_foreign_key_constraint_name() - common function used in subprojects which retrieves the name of a foreign key constraint given table name / column name - suspend_fk_constraints_for_col_alter() - given table name and column name, locates matching foreign key constraints, drops them, yields context, then recreates them as they were. By default only runs for NDB thus avoiding expensive constraint regeneration on other backends. Co-authored-by: Mike Bayer <mike_mp@zzzcomputing.com> Co-authored-by: Paul Bourke <paul.bourke@oracle.com> Change-Id: I76c0d82fddf38add0ca05be270264b6e2d043f7f
* | Updated from global requirementsOpenStack Proposal Bot2017-09-201-4/+4
|/ | | | Change-Id: Iad5cb53a0ff45e86b1dafa863fab904f34516a75
* Merge "Throw DBMigrationError instead of DbMigrationError."4.27.0Jenkins2017-09-152-4/+4
|\
| * Throw DBMigrationError instead of DbMigrationError.Yaguo Zhou2017-09-082-4/+4
| | | | | | | | | | | | | | | | | | | | Stop throwing the deprecated DbMigrationError exception, Use the new DBMigrationError exception instead, so that the consumers can catch the new exception. DbMigrationError will not be removed until no consumers still use it. Change-Id: Iab0566cf9f4552e91fa417e64472fa106e8bc86d
* | Updated from global requirementsOpenStack Proposal Bot2017-09-112-6/+6
| | | | | | | | Change-Id: I92f8c0cdffb512d154d0c1371a48c25dd2a3d44c
* | Merge "Update the documentation link"Jenkins2017-09-083-5/+5
|\ \
| * | Update the documentation linkloooosy2017-08-233-5/+5
| |/ | | | | | | | | | | | | This patch is proposed according to the Direction 10 of doc migration(https://etherpad.openstack.org/p/doc-migration-tracking). Change-Id: I6904da7a5f2bd12cf44d047e4b865389e44fb56b
* | Merge "Remove AutoString* in ndb.py"Jenkins2017-09-052-37/+0
|\ \
| * | Remove AutoString* in ndb.pyzhangyangyang2017-09-042-37/+0
| |/ | | | | | | | | | | | | | | Remove AutoString* in ndb.py including AutoStringTinyText,AutoStringText,AutoStringSize. Change-Id: I707d69facb8f4542550243c1b5eff051264f3204 Closes-Bug:#1714913
* | Merge "Remove method provisioned_engine in class Backend"Jenkins2017-09-051-11/+0
|\ \
| * | Remove method provisioned_engine in class Backendzhangyangyang2017-09-031-11/+0
| |/ | | | | | | | | | | | | | | This method is useless in class Backend. So this method is deprecated for removal. Change-Id: I4f2aa180e5506172776ffc6f5e2a0111dacc5594 Closes-Bug:#1714776
* | Merge "Remove class TransactionResource"Jenkins2017-09-051-21/+0
|\ \
| * | Remove class TransactionResourcezhangyangyang2017-09-031-21/+0
| |/ | | | | | | | | | | | | | | | | This class in new edition is useless. So class TransactionResource is deprecated for removal. Change-Id: Ie4155736732a04238f8458aec9ae0d9a0f709ad2 Closes-Bug:#1714765
* | Remove class InsertFromSelectzhangyangyang2017-09-042-158/+0
|/ | | | | | | | | This class in new edtion is useless. So class InsertFromSelect is deprecated for removal. Change-Id: I200486a5a88e78b5223b9364fbea5901048d5cb9 Closes-Bug:#1714768
* Merge "Replace six.iteritems() with .items()"4.26.0Jenkins2017-08-212-5/+4
|\
| * Replace six.iteritems() with .items()liuyamin2017-07-192-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | 1.As mentioned in [1], we should avoid using six.iteritems to achieve iterators. We can use dict.items instead, as it will return iterators in PY3 as well. And dict.items/keys will more readable. 2.In py2, the performance about list should be negligible, see the link [2]. [1] https://wiki.openstack.org/wiki/Python3 [2] http://lists.openstack.org/pipermail/openstack-dev/2015-June/066391.html Change-Id: If76115f706e9e100a1780471af0f9c5d92d3bc9f
* | Merge "Rename idle_timeout to connection_recycle_time"Jenkins2017-08-217-20/+59
|\ \
| * | Rename idle_timeout to connection_recycle_timeMike Bayer2017-08-157-20/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The "idle_timeout" name and documentation are misleading to users. Rename the option to connection_recycle_time to more closely match that of the underlying SQLAlchemy argument name "pool_recycle", which refers to a time period for which a connection present in the pool for longer than that number of seconds will be closed and replaced with a new one *upon checkout*, to prevent usage of stale connections that may have been closed by server-side reapers. Change-Id: I5e39d5ac81eaa8d85b1dfb18862fe27695ab8b96
* | | Updated from global requirementsOpenStack Proposal Bot2017-08-181-2/+2
| | | | | | | | | | | | Change-Id: I91e770e8ca54bdf8d8da40d4815ef860f12121be
* | | Workaround non-compatible type.adapt() for SQLAlchemy < 1.1Mike Bayer2017-08-102-2/+27
|/ / | | | | | | | | | | | | | | | | The ndb change that makes use of String.adapt() to produce a new object breaks on SQLAlchemy < 1.1 because adapt() there does not allow for kwargs to override those already present in the type. Change-Id: I8cc79dc9bebcb3cb3accf76559bc969c2dae7ed9
* | Merge "Replace ndb "auto" types with unified String"Jenkins2017-08-103-62/+119
|\ \
| * | Replace ndb "auto" types with unified StringMike Bayer2017-07-283-62/+119
| |/ | | | | | | | | | | | | | | | | This simplifies the ndb "AutoStringXYZ" series of classes into a single oslo_db.sqlalchemy.types.String type which features all necessary behaviors via two new flags, mysql_ndb_length and mysql_ndb_type. Change-Id: I7f9c830073bf9a30abce0aa4bb55b5c9cf661afe
* | Merge "Let others listen to SQLAlchemy errors"Jenkins2017-08-042-2/+35
|\ \
| * | Let others listen to SQLAlchemy errorsIlya Shakhat2017-08-032-2/+35
| |/ | | | | | | | | | | | | | | | | | | | | | | | | SQLAlchemy has 2 options of implementing error event listener. It can either raise exception directly or it can return exception into chain. With the first option all other handlers are ignored (ref: http://docs.sqlalchemy.org/en/latest/core/events.html?highlight=context#sqlalchemy.events.ConnectionEvents.handle_error) OSProfiler is interested to subscribe to SQLAlchemy error events. However with the current approach only Oslo.DB gets the events. Change-Id: Ia6bccd5af5f2e38f4333f1cc435f6bb9c12bc09f Related-Bug: 1706299
* | Update reno for stable/pikeOpenStack Release Bot2017-07-282-0/+7
| | | | | | | | Change-Id: Id334c7c2a25b81cedcbcf30863d180f78b0c9512
* | Updated from global requirementsOpenStack Proposal Bot2017-07-271-1/+1
| | | | | | | | Change-Id: I7f3f9700f02f4d38b18f6d75f2fd33299451e5cb
* | Remove deprecation warning when loading tests/sqlalchemySam Betts2017-07-251-2/+2
|/ | | | | | | | | /home/sam/Work/ironic/.tox/py27/local/lib/python2.7/site-packages/oslo_db/tests/sqlalchemy/__init__.py:20: DeprecationWarning: Function 'oslo_db.sqlalchemy.test_base.optimize_db_test_loader()' has moved to 'oslo_db.sqlalchemy.test_fixtures.optimize_package_test_loader()' Change-Id: I7fb4e776cedb8adcf97c9a43210049c60f796873
* Merge "Log an exception when reconnect-to-disconnected occurs"Jenkins2017-07-181-0/+2
|\
| * Log an exception when reconnect-to-disconnected occursMike Bayer2017-07-171-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The scenario where an existing database connection that's present in the pool is found to be not connected to the database should normally not be occurring; the idle_timeout setting (aka pool_recycle) should be less than the effective "idle timeout" set up on the server and/or HAProxy such that a stale connection in the pool should already have been recycled. As a system with a mis-configured idle_timeout can experience latency due to this error hook, it should be reported that this is an avoidable situation which is occurring. Right now there's no easy way to see if a performance test is spending lots of time hitting this condition or not. Change-Id: I3e9613cbb982c727762247201c5c4972e21da725
* | Merge "Don't access connection.info if connection is invalidated"4.25.0Jenkins2017-07-172-2/+59
|\ \
| * | Don't access connection.info if connection is invalidatedMike Bayer2017-07-142-2/+59
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | The connection.info dictionary comes from the underlying pooled connection, which in a disconnection situation is not there; trying to access it makes it try to reconnect. Inside of rollback(), SQLAlchemy doesn't allow us to reconnect yet because we haven't finished removing the transctional state that corresponds to the now-discarded connection. Therefore we have to check connection.invalidated inside of our rollback handlers before trying to add/remove tokens from connection.info. Change-Id: Icd10ada68d6d53410ac88eca3577f04c5e30087e Resolves-bug: #1704474
* | Update URLs according to document migrationChangBo Guo(gcb)2017-07-112-2/+2
|/ | | | | | | * update setup.cfg with right document links * update HACKING.rst with latest link for hacking Change-Id: I8eb294c1d734f9c76951e4b4b9ebb0f69183f8f3
* Merge "update the docs url in the readme"Jenkins2017-07-111-3/+3
|\
| * update the docs url in the readmeDong Ma2017-07-041-3/+3
| | | | | | | | Change-Id: I0f6b5e516813ffd6b90b7283eb893b0d5c3accd0
* | Merge "Add 'save_and_reraise_exception' method when call 'session.rollback()'"4.24.1Jenkins2017-07-052-6/+29
|\ \ | |/ |/|
| * Add 'save_and_reraise_exception' method when call 'session.rollback()'D G Lee2017-05-192-6/+29
| | | | | | | | | | | | | | | | Maybe we need to know the original exception when exception occurs on method 'session.rollback()'. Change-Id: Iccda37a3279d6f24de69cfccef3e29787f1ac694 Closes-Bug: #1684329
* | turn on warning-is-error in doc buildDong Ma2017-07-034-8/+8
| | | | | | | | Change-Id: I0b64c644f40a2da3242274194d1a5d2858813c25
* | switch from oslosphinx to openstackdocsthemeDong Ma2017-07-013-6/+17
| | | | | | | | Change-Id: I66319c2b4e4ec4c10133151f7a867bdca7a3afa8
* | rearrange content to fit the new standard layout4.24.0Dong Ma2017-07-0112-16/+35
| | | | | | | | | | Change-Id: Idaa0dde5e4fd14213ae1611560897a27e9f72514 Depends-On: Ia750cb049c0f53a234ea70ce1f2bbbb7a2aa9454
* | Updated from global requirementsOpenStack Proposal Bot2017-06-291-1/+1
| | | | | | | | Change-Id: Ib8b85d5867ca2f732a0c64af847fa77310b72948
* | Fix compatibility with SQLAlchemy < 1.1.0Javier Pena2017-06-281-1/+1
| | | | | | | | | | | | | | | | https://review.openstack.org/427970 broke compatibility with SQLAlchemy versions <1.1.0 by using sqlalchemy.dialects.mysql.types in test_ndb.py. Change-Id: I773e0931d4f9f345f8095559eff2eb35e0730027
* | Merge "Enable MySQL Storage Engine selection"Jenkins2017-06-289-0/+371
|\ \
| * | Enable MySQL Storage Engine selectionoorgeron2017-06-269-0/+371
| |/ | | | | | | | | | | | | | | Enables new functionality for selecting InnoDB or MySQL Cluster as a DB storage backend in OpenStack services. Closes-Bug: 1564110 Change-Id: I9f1fd2a87fdf75332de2339d3ff4f08ce9220dcf
* | Merge "Using assertIsNone(xxx) instead of assertEqual(None, xxx)"Jenkins2017-06-161-1/+1
|\ \
| * | Using assertIsNone(xxx) instead of assertEqual(None, xxx)blue552017-06-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Following OpenStack Style Guidelines: [1] https://docs.openstack.org/developer/hacking/#unit-tests-and-assertraises [H203] Unit test assertions tend to give better messages for more specific assertions. As a result, assertIsNone(xxx) is preferred over assertEqual(None, xxx) and assertIs(xxx, None) Change-Id: Id0e54ddeb461e56fbc8ec3a4bbc8a581f11430df
* | | Updated from global requirementsOpenStack Proposal Bot2017-06-151-1/+1
| | | | | | | | | | | | Change-Id: I7d078fd50d41fa3f212109366693088673067a09
* | | Updated from global requirementsOpenStack Proposal Bot2017-06-101-1/+1
| | | | | | | | | | | | Change-Id: I235056994f9fce034dca8cea5f800656f5f80f89
* | | Updated from global requirements4.23.0OpenStack Proposal Bot2017-06-021-1/+1
|/ / | | | | | | Change-Id: I60df9099961cb5cfd97499ecbdec556cdb1f6048
* | Updated from global requirementsOpenStack Proposal Bot2017-06-021-1/+1
| | | | | | | | Change-Id: I753aa7c6c22707658ccd48e0bcc3337ab12c9951