| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Change-Id: I60df9099961cb5cfd97499ecbdec556cdb1f6048
|
|
|
|
| |
Change-Id: I753aa7c6c22707658ccd48e0bcc3337ab12c9951
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
All the exceptions which are raised from sqlalchemy-migrate upgrade
method are not more user friendly to the operator.
This patch proposes to convert all the exceptions which will be
raised by 'upgrade' method to an oslo_db specific 'DbMigrationError'
exception.
Related-Bug: #1546441
Change-Id: I28533bedba358281ce302b9b021744387a76c04a
|
|\ \ |
|
| | |
| | |
| | |
| | | |
Change-Id: Ica64fbd70c8e9acbed1f74c102f2a84b214fc5ce
|
|/ /
| |
| |
| |
| | |
Change-Id: I7e48a45e392c57901d27389f5797c8ce34492861
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
|
|/
|
|
|
|
|
|
|
|
| |
Older installations may still be running with
URLs of the form "mysql://user:pass@host/dbname",
which defaults to the native MySQL driver that is not supported
by eventlet. Warn that URLs should be qualified with an explicit
driver, and in the case of MySQL that PyMySQL should be used.
Change-Id: Ie973a43c8d056778d02703cf75bfc52a90027dea
|
|
|
|
| |
Change-Id: Iad13d017070007bb3c6eb3b23644b08aa701ebfb
|
|\ |
|
| |
| |
| |
| |
| |
| | |
It's actually only used in tests.
Change-Id: Idee419ab60b6395f5f5d0415711e3f02d992fa5f
|
| |
| |
| |
| | |
Change-Id: Icbdc156d1dd30c5524e38880a794e06b03634baf
|
|/
|
|
|
|
|
|
|
|
|
|
|
| |
Attaching a reference to the context to the session/connection
is useful for SQLAlchemy event handlers that only get access to
the session and need access to the context for additional details.
The use case driving this is the related bug where we want to pass
conditional update constraints set in the context via the HTTP API
down into an SQLAlchemy event listener.
Related-Bug: #1493714
Change-Id: I5c08e672782344e8778187e257e03c1a1d1b019a
|
|
|
|
| |
Change-Id: Ie5929cf12a5547694a1d1a846ab29ce320d3afc3
|
|
|
|
| |
Change-Id: I38d6365f853eadfc2f488eda92f6fdf8f21a7d88
|
|
|
|
| |
Change-Id: I8194aea148813d0165a4fdfe3f1fa6ee878c240c
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Log messages are no longer being translated. This removes all use of
the _LE, _LI, and _LW translation markers to simplify logging and to
avoid confusion with new contributions.
See:
http://lists.openstack.org/pipermail/openstack-i18n/2016-November/002574.html
http://lists.openstack.org/pipermail/openstack-dev/2017-March/113365.html
Closes-Bug: #1674577
Change-Id: I7553ae7c222f61b6796b72ac4a2b744d3e08fee6
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
We deprecated config options sqlite_db in July, 2016 [1], and
it shows up in many projects' config files but these projects
don't use it either, so it's confusing to our users. It's time
to remove it, just use config option connection or slave_connection
to connect to the database.
[1] https://review.openstack.org/#/c/338047/
Closes-Bug: #1329086
Change-Id: Id269d921e40edf95eb977b011f1753f633b79d18
|
| |
| |
| |
| | |
Change-Id: Ib0d90cbf6bfee38872e23ff2b8781009ad677d15
|
|/
|
|
|
|
|
| |
For more information about this automatic import see:
http://docs.openstack.org/developer/i18n/reviewing-translation-import.html
Change-Id: I4ef80c33244d1513c011cd8b5556d3047934ac3d
|
|
|
|
| |
Change-Id: Ie77d6c27e999b477bbe233e9d1486dabde05917f
|
|\ |
|
| |
| |
| |
| | |
Change-Id: I6e69c3198ef7c1dccd42655fbf10210d132b1eab
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
When a project has multiple migration repos and
oslo_db.sqlalchemy.migration.db_version() is called using the one
repo as the abs_path, it will attempt to put the repo under version
control. The next time it's called with the other abs_path, it would
fail rather than attempting to put the repo under version control
when using sqlalchemy-migrate. When using alembic, db_version would
attempt to put the new abs_path under version control.
This change makes it so that when sqlalchemy-migrate is used
db_version() will attempt to version control the new abs_path just
like when alembic is used.
Change-Id: If5e2ae1a72f9118c7aca34e925fdc5e3e8480275
|
| | |
| | |
| | |
| | | |
Change-Id: I2a9d0f4ced44c30c6443e613fea2e11b908c5025
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Since pbr already landed and the old version of hacking seems not
work very well with pbr>=2, we should update it to match global
requirement.
Change-Id: Id2d358ffdca998066b41c8178aac81d170f82d3c
Partial-Bug: #1668848
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
When converting existing session context manager code to
use enginefacade, normally a flush() is implicit on
a "subtransaction" when it closes. Enginefacade
has not maintained this behavior. Ideally, this should
have been on by default when enginefacade was first
released, but for now add this as a behavioral
option for projects that require it.
Co-authored-by: Mike Bayer <mike_mp@zzzcomputing.com>
Closes-Bug: #1664643
Change-Id: I6f4f439928588cff954e749dfa938425892e0931
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Fixed two issues in patch_engine() as used in test suites
where facade-level arguments would not be propagated to the
internal _TestTransactionFactory, and also if the parent
factory weren't "started" the patch operation would fail
as it assumes a started factory.
This removes the "synchronous_reader" argument from
_TestTransactionFactory as this is propagated from the parent
_TransactionFactory, where synchronous_reader defaults to True.
However, arbitrary keyword arguments are currently allowed to
allow for outside projects calling _TestTransactionFactory
(currently Neutron).
Change-Id: I15f85a0ebfd732c09d7cb92d885c1773c393aabd
|
| |/
|/|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The rollback_reader_sessions parameter on
_TransactionContext is unused; it is instead acquired from the
top level factory. Remove the parameter and also move the
documentation for it up to _TransactionFactory.configure_defaults.
As there was no documentation for parameters here, add docs
for all the other parameters too.
Change-Id: I30a2548ad038ae218933c5802c6a8b761705d834
|
| |
| |
| |
| | |
Change-Id: Icffd9bb89af60b9e5cdec619f285ea77c5b3f4ab
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
OFFSET is a terrible thing to use. It seems to work great when you
first use it because your table is only a few hundred rows. six months
later, everyone complains the app is incredibly slow - it's because the
database is being killed doing linear scans through millions of rows
because everyone's doing OFFSET. It not only causes slow and unusable
applications but hurts everyone by adding tons of meaningless work to
the DB load overall.
This pagination function already does the "right" way, which is to order
the rows and use WHERE criteria (See http://use-the-index-luke.com/no-offset).
This commit add docstring to explain why don't need offset.
Co-Authored-By: Mike Bayer <mike_mp@zzzcomputing.com>
Change-Id: I6fdb094085d133c8910415efea2eb44225a66216
|
|\ \ \ |
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Add simple script to setup mysql and postgresql databases, this script
can be run by users during testing and will be run by CI systems for
specific setup before running unit tests. This is exactly what is
currently done by OpenStack CI in project-config.
This allows to change in project-config the python-db jobs to
python-jobs since python-jobs will call this script initially.
See also
http://lists.openstack.org/pipermail/openstack-dev/2016-November/107784.html
Update CONTRIBUTING.rst for this.
Needed-By: Ia298e25f9b15a2dcfc4553ea058fc2c0f3705a8b
Change-Id: I825b72e3f645d02f7efdb3315a12825a8c937759
|
|\ \ \
| |/ /
|/| | |
|
| | |
| | |
| | |
| | | |
Change-Id: Ia791d1c6bba9329be4bd09ffa5f5dcd74eb0be5c
|
|/ /
| |
| |
| | |
Change-Id: I7a401a55826924858ddc396ce19530b8bda3bcf7
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Now that there exists only a gate job for Python 3.5 and not 3.4,
we should remove those references to the 3.4 that is untested.
Change-Id: Ic2e61f28bc82f64814a528d210d1dee8d79b49e5
|
|/ /
| |
| |
| |
| |
| |
| |
| | |
This will avoid a traceback resulting from using > or <
on a boolean value (example in bug report).
Change-Id: I4b90f18737e62bb35bacf75ad7a85603fb7b45cc
Closes-Bug: #1656947
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Sometimes people just do not need the ORM part and a Session at all.
Mention the fact, that it's possible to ask for a Connection in
enginefacade.
Change-Id: I7a135be7149cd3fa140e0268fea5a17f23f402b2
|
| | |
| | |
| | |
| | | |
Change-Id: I627b1fd01d01d79ed4a4fe131f5edec733703635
|
| | |
| | |
| | |
| | | |
Change-Id: I30a9d74d90479d8d335dd2e1f097b1fcefd53cf8
|
|\ \ \ |
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Adding constraints support to libraries is slightly more complex than
services as the libraries themselves are listed in upper-constraints.txt
which leads to errors that you can't install a specific version and a
constrained version.
This change adds constraints support by also adding a helper script to
edit the constraints to remove oslo.db.
Change-Id: I31febfe00698e36f4c2e0e41c3f7bf64acf47adf
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
In I484237c28a83783689bb8484152476de33f20e3a, we observed
MariaDB-specific error code 1927 as a new kind of disconnect situation.
In some failure-mode testing we are also observing with PyMySQL that
a stale connection, when it is attempted to be used for the initial
ping, does not return any error code but instead trips up
PyMySQL with packets sequence numbers (this is an internal value
used by the MySQL client/server protocol to track messages).
The connection is definitely not recoverable in this state so this also
needs to be a disconnect situation so that the ping listener refreshes
the connection pool.
Change-Id: Iee1c4533e2457acc30e2046b63145c2502012c5f
References: https://bugs.launchpad.net/tripleo/+bug/1642944
|