RETIRED, Part of OpenStack's Oslo project. New Oslo APIs go through an incubation phase in this repository before being released as part of a proper Python library.
Go to file
Flavio Percoco ad4dfa7171 User a more accurate max_delay for reconnects
In an HA deployment, a 60 seconds delay between reconnects can be quite
problematic. This patch changes the delay calculation by setting the max
delay to 5s and by changing the way it is increased.

Unfortunately, this is one of the places where both our main drivers are
not consistent. Rabbit's driver uses configuration parameters for this
whereas qpid's driver has never had one. However, I would prefer not
adding configuration paremeters to qpid's driver for the following
reasons:

    1. Most of OpenStack services depend on the messaging layer, hence
    they need it to be available. A 5s delay seems to be reasonable and
    I could argue the need of tune it further. Although so frequent
    reconnects can add load to the network, that wouldn't be the main
    issue if one of the brokers go down.
    2. We're trying to move away from configuration options towards using
    transport URL. This path is still not clear and I would
    prefer avoiding adding new options until we clear it out.

Closes-bug: #1281148

Change-Id: I537015f452eb770acba41fdedfe221628f52a920
(cherry picked from commit 8b628d1e02)
2014-03-24 12:32:54 +01:00
contrib Copy Nova's workaround for RHEL6 eventlet issue 2013-05-08 06:48:20 +01:00
doc/source Convert unicode strings for python3 portability 2013-05-07 11:55:56 -05:00
etc/oslo Remove unused etc/openstack-common.conf.test 2013-01-21 13:10:53 +00:00
openstack User a more accurate max_delay for reconnects 2014-03-24 12:32:54 +01:00
pypi Update references with new Mailing List location 2013-07-29 08:56:33 -07:00
tests Use multiprocessing.Event to ensure services have started 2014-03-24 12:32:41 +01:00
tools Make run_tests.sh identify requirements correctly 2013-09-20 09:11:02 +01:00
.coveragerc Update .coveragerc 2013-02-06 16:47:06 +02:00
.gitignore Add eclipse project files to .gitignore 2013-07-18 22:45:38 +00:00
.gitreview Open stable/havana 2013-10-17 17:37:12 +02:00
.mailmap Update .mailmap 2013-08-13 23:24:03 +08:00
.testr.conf Update requirements 2013-08-21 09:59:25 +02:00
HACKING.rst Clean up and make HACKING.rst point to openstack-dev/hacking 2013-07-08 18:23:45 +01:00
LICENSE Add missing LICENSE file 2013-04-23 16:31:36 -04:00
MAINTAINERS Adam Young as alternate Policy maintainer 2013-09-23 22:04:12 -04:00
MANIFEST.in Don't include versioninfo in manifest. 2013-01-14 03:17:32 -08:00
README.rst Rename requires files to standard names. 2013-06-04 14:11:38 +08:00
TESTING.rst Creates a new file TESTING.rst. 2013-06-20 20:44:43 -04:00
requirements.txt Require oslo.config 1.2.0 final 2013-09-24 21:56:44 +01:00
run_tests.sh Move `./run_tests.sh` to Oslo 2013-08-13 18:06:11 +03:00
setup.cfg Open stable/havana 2013-10-17 17:37:12 +02:00
setup.py Update requirements 2013-08-21 09:59:25 +02:00
test-requirements.txt Pin sphinx to <1.2 2013-12-14 19:06:31 -08:00
tox.ini Have tox install via setup.py develop 2013-12-15 17:38:24 +00:00
update.py Fix issues syncing sample generator in update.py 2013-07-22 20:37:35 +09:00
update.sh readd update.sh to address bootstrapping issue 2013-02-20 08:45:12 -05:00

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:

https://wiki.openstack.org/wiki/Oslo

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