Commit Graph

976 Commits

Author SHA1 Message Date
Tony Breeds 0053017d18 Retire Packaging Deb project repos
This commit is part of a series to retire the Packaging Deb
project. Step 2 is to remove all content from the project
repos, replacing it with a README notification where to find
ongoing work, and how to recover the repo if needed at some
future point (as in
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project).

Change-Id: I452ed203c74dc83ca328116d6111a05cf7342c53
2017-09-12 16:05:48 -06:00
Jenkins 2af0348d26 Merge "Log an exception when reconnect-to-disconnected occurs" 2017-07-18 21:12:19 +00:00
Jenkins 5f9400d777 Merge "Don't access connection.info if connection is invalidated" 2017-07-17 22:22:16 +00:00
Mike Bayer 83563e0acc Log an exception when reconnect-to-disconnected occurs
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
2017-07-17 15:03:20 -04:00
Mike Bayer 7c5b7d3e03 Don't access connection.info if connection is invalidated
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
2017-07-14 16:15:01 -04:00
ChangBo Guo(gcb) 8501b2d59f Update URLs according to document migration
* update setup.cfg with right document links
* update HACKING.rst with latest link for hacking

Change-Id: I8eb294c1d734f9c76951e4b4b9ebb0f69183f8f3
2017-07-11 22:28:01 +08:00
Jenkins 3971a6f94d Merge "update the docs url in the readme" 2017-07-11 07:12:57 +00:00
Jenkins 23e431b0de Merge "Add 'save_and_reraise_exception' method when call 'session.rollback()'" 2017-07-05 11:32:54 +00:00
Dong Ma 5b7e486dcc update the docs url in the readme
Change-Id: I0f6b5e516813ffd6b90b7283eb893b0d5c3accd0
2017-07-04 17:01:34 +08:00
Dong Ma 0a035933c8 turn on warning-is-error in doc build
Change-Id: I0b64c644f40a2da3242274194d1a5d2858813c25
2017-07-03 11:28:14 +00:00
Dong Ma bd35a6e841 switch from oslosphinx to openstackdocstheme
Change-Id: I66319c2b4e4ec4c10133151f7a867bdca7a3afa8
2017-07-01 08:51:47 +08:00
Dong Ma fe64db1d45 rearrange content to fit the new standard layout
Change-Id: Idaa0dde5e4fd14213ae1611560897a27e9f72514
Depends-On: Ia750cb049c0f53a234ea70ce1f2bbbb7a2aa9454
2017-07-01 01:08:19 +08:00
OpenStack Proposal Bot d17be6e20c Updated from global requirements
Change-Id: Ib8b85d5867ca2f732a0c64af847fa77310b72948
2017-06-29 02:26:47 +00:00
Javier Pena 17db7e39d1 Fix compatibility with SQLAlchemy < 1.1.0
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
2017-06-28 14:31:35 +00:00
Jenkins 8c69759ce9 Merge "Enable MySQL Storage Engine selection" 2017-06-28 08:19:46 +00:00
oorgeron c5db636d4e Enable MySQL Storage Engine selection
Enables new functionality for selecting InnoDB or MySQL Cluster
as a DB storage backend in OpenStack services.

Closes-Bug: 1564110
Change-Id: I9f1fd2a87fdf75332de2339d3ff4f08ce9220dcf
2017-06-26 10:33:01 -06:00
Jenkins 661e77fb29 Merge "Using assertIsNone(xxx) instead of assertEqual(None, xxx)" 2017-06-16 06:58:59 +00:00
OpenStack Proposal Bot fb6d4a7c39 Updated from global requirements
Change-Id: I7d078fd50d41fa3f212109366693088673067a09
2017-06-15 16:32:48 +00:00
OpenStack Proposal Bot 0f03f32cda Updated from global requirements
Change-Id: I235056994f9fce034dca8cea5f800656f5f80f89
2017-06-10 13:35:18 +00:00
blue55 5da6884dbc Using assertIsNone(xxx) instead of assertEqual(None, xxx)
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
2017-06-06 15:18:24 +08:00
OpenStack Proposal Bot c530395730 Updated from global requirements
Change-Id: I60df9099961cb5cfd97499ecbdec556cdb1f6048
2017-06-02 22:05:11 +00:00
OpenStack Proposal Bot 516bb61947 Updated from global requirements
Change-Id: I753aa7c6c22707658ccd48e0bcc3337ab12c9951
2017-06-02 02:34:53 +00:00
Jenkins aac6276c69 Merge "Raise only DbMigrationError from migrate 'upgrade' method" 2017-05-30 14:00:31 +00:00
Jenkins 821f94c546 Merge "Updated from global requirements" 2017-05-27 03:40:51 +00:00
OpenStack Proposal Bot 952325532e Updated from global requirements
Change-Id: Ica64fbd70c8e9acbed1f74c102f2a84b214fc5ce
2017-05-26 17:27:26 +00:00
Doug Hellmann 1821897b0c add release note for new warning about missing driver
Change-Id: I7e48a45e392c57901d27389f5797c8ce34492861
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-05-26 08:39:00 -04:00
dineshbhor a6172924d5 Raise only DbMigrationError from migrate 'upgrade' method
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
2017-05-25 18:37:34 +05:30
Mike Bayer 2166490a05 Warn on URL without a drivername
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
2017-05-24 18:21:14 -04:00
OpenStack Proposal Bot c23e571ff5 Updated from global requirements
Change-Id: Iad13d017070007bb3c6eb3b23644b08aa701ebfb
2017-05-23 12:27:25 +00:00
Jenkins 6acc24f093 Merge "Move oslo.context to test-requirements" 2017-05-23 12:00:03 +00:00
OpenStack Proposal Bot 7ae3af7d1d Updated from global requirements
Change-Id: Icbdc156d1dd30c5524e38880a794e06b03634baf
2017-05-20 04:43:04 +00:00
D G Lee bee339d79c Add 'save_and_reraise_exception' method when call 'session.rollback()'
Maybe we need to know the original exception when exception occurs on 
method 'session.rollback()'.

Change-Id: Iccda37a3279d6f24de69cfccef3e29787f1ac694
Closes-Bug: #1684329
2017-05-19 02:44:27 +00:00
Julien Danjou 2c53ccd943 Move oslo.context to test-requirements
It's actually only used in tests.

Change-Id: Idee419ab60b6395f5f5d0415711e3f02d992fa5f
2017-05-18 23:52:51 +02:00
Kevin Benton 7c0106b579 Attach context being used to session/connection info
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
2017-05-18 11:32:11 -07:00
OpenStack Proposal Bot 311e8b8441 Updated from global requirements
Change-Id: Ie5929cf12a5547694a1d1a846ab29ce320d3afc3
2017-05-15 00:52:47 +00:00
OpenStack Proposal Bot d5f1f288a4 Updated from global requirements
Change-Id: I38d6365f853eadfc2f488eda92f6fdf8f21a7d88
2017-04-12 04:20:01 +00:00
OpenStack Proposal Bot aa5657ae15 Updated from global requirements
Change-Id: I8194aea148813d0165a4fdfe3f1fa6ee878c240c
2017-04-05 21:09:54 +00:00
Jenkins 4033db1960 Merge "Remove log translations" 2017-03-30 06:27:06 +00:00
chenlx 443b3e3262 Remove log translations
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
2017-03-30 08:42:42 +08:00
Jenkins 6eda25859f Merge "Remove deprecated config option sqlite_db" 2017-03-24 21:28:08 +00:00
OpenStack Proposal Bot ec13f13bc8 Updated from global requirements
Change-Id: Ib0d90cbf6bfee38872e23ff2b8781009ad677d15
2017-03-24 16:34:51 +00:00
ChangBo Guo(gcb) cc64f70105 Remove deprecated config option sqlite_db
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
2017-03-24 16:04:32 +08:00
OpenStack Proposal Bot 876bf2e530 Imported Translations from Zanata
For more information about this automatic import see:
http://docs.openstack.org/developer/i18n/reviewing-translation-import.html

Change-Id: I4ef80c33244d1513c011cd8b5556d3047934ac3d
2017-03-24 07:13:44 +00:00
OpenStack Proposal Bot 231913a153 Updated from global requirements
Change-Id: Ie77d6c27e999b477bbe233e9d1486dabde05917f
2017-03-13 19:39:53 +00:00
Jenkins 5ab8e6944c Merge "Remove unused logging import" 2017-03-03 05:01:18 +00:00
Jenkins 92f787cffc Merge "Fix db_version checking for sqlalchemy-migrate" 2017-03-03 04:52:33 +00:00
OpenStack Proposal Bot 06871c69d4 Updated from global requirements
Change-Id: I2a9d0f4ced44c30c6443e613fea2e11b908c5025
2017-03-03 00:03:00 +00:00
Roman Podoliaka 220ddc2f30 Update test requirement
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
2017-03-02 19:35:05 +02:00
Kevin Benton b430b5858a Establish flush() for "sub" facade contexts
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
2017-02-18 20:45:01 +00:00
Anh Tran 2eba4ead0b Remove unused logging import
Change-Id: I6e69c3198ef7c1dccd42655fbf10210d132b1eab
2017-02-17 13:37:28 +07:00