5b7e61c82f
When a disconnect happens (e.g. when VIP moves to another node), all existing connections in the pool become invalid. There is no sense to check every single connection in the pool, as this may take a long time (e.g. when python-mysqldb driver is used with eventlet green threads, there is no context switch on db IO, so the whole process is blocked until socket read times out). Dispose all connections in the pool when disconnect is detected, they will be recreated on demand then. Closes-Bug: #1288438 Change-Id: Ia357da2b3092d306a86b6d1787bab374a335f28c |
||
---|---|---|
doc/source | ||
etc | ||
openstack | ||
pypi | ||
tests | ||
tools | ||
.coveragerc | ||
.gitignore | ||
.gitreview | ||
.mailmap | ||
.testr.conf | ||
HACKING.rst | ||
LICENSE | ||
MAINTAINERS | ||
MANIFEST.in | ||
README.rst | ||
TESTING.rst | ||
requirements-py3.txt | ||
requirements.txt | ||
run_tests.sh | ||
setup.cfg | ||
setup.py | ||
test-requirements-py3.txt | ||
test-requirements.txt | ||
tox.ini | ||
update.py | ||
update.sh |
README.rst
The Oslo Incubator
The Oslo program produces a set of python libraries containing infrastructure code shared by OpenStack projects. The APIs provided by these libraries should be high quality, stable, consistent and generally useful.
The process of developing a new Oslo API usually begins by taking code which is common to some OpenStack projects and moving it into this repository. Incubation shouldn't be seen as a long term option for any API - it is merely a stepping stone to inclusion into a published Oslo library.
For more information, see our wiki page:
Running Tests
To run tests in virtualenvs (preferred):
sudo pip install tox tox
To run tests in the current environment:
sudo pip install -r requirements.txt nosetests
To run tests using MySQL or PostgreSQL as a DB backend do:
OS_TEST_DBAPI_ADMIN_CONNECTION=mysql://user:password@host/database tox -e py27
Note, that your DB user must have permissions to create and drop databases.