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 5eac8fea0d Use multiprocessing.Event to ensure services have started
ServiceRestartTest.test_terminate_sigterm would often fail in my Jenkins
instance. It turns out that sometimes the test case would manage to send
its SIGTERM after the signal handler is put in place, but before we
enter the "try: except" block in _wait_for_exit_or_signal. This meant
that the SignalExit exception isn't caught and makes the process
terminate with non-zero exit code. To verify this, you can add a
time.sleep(3) right after self.handle_signal().

To avoid this race condition, we add a ready_callback argument to
Service.wait() that gets called when entering the try-catch block.
In the test, we pass an Event object and wait for it to be set before
proceeding. This also gets rid of the questionable call to "ps".

This patch uses the port 9001 instead of 9000 for the test_pool test. It
looks like something is running on the 9000 port on the gate and is
preventing this test to succeed. This test, as the others in this test
suite, are meant to test the server live, hence the listen method is not
being mocked out.

This test doesn't exist on master anymore, so this is a stable/havana
thing only. Also, this change can't be done in a separate patch because
it depends on the change done in `test_service` to succeed.

Change-Id: I598e8bc889b6c2627a62271627d17b44e01acbe4
(cherry picked from commit 3110c0f66f)
2014-03-24 12:32:41 +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 Use multiprocessing.Event to ensure services have started 2014-03-24 12:32:41 +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