531 Commits

Author SHA1 Message Date
Mark McLoughlin
d020cb814a Add release notes for stable/icehouse 1.3.1 release
1.3.1 is a bugfix release from the stable/icehouse branch.

Change-Id: I1ec24b0aaccb67e4f3043d481cec13d82dec3c0d
2014-07-25 15:04:47 +01:00
Nejc Saje
1cc3e5d866 Fixes incorrect exchange lock in fake driver
The exchanges lock in the fake driver was being disregarded,
probably due to a typo.

Closes-Bug: #1342088
Change-Id: I45261fce501a867b9253112e1608b14ed5afea26
2014-07-15 12:20:16 +00:00
OpenStack Proposal Bot
39d1917644 Imported Translations from Transifex
Change-Id: Ib4e037ef996ad574eb116970272cf410823e0cdf
2014-07-14 06:09:10 +00:00
Jenkins
3d956f5f5f Merge "Synced jsonutils and its dependencies from oslo-incubator" 2014-07-09 21:46:55 +00:00
Mark McLoughlin
e718789a98 Add release notes for 1.4.0.0a2/a3
Change-Id: I9e2a229ffa5bd9b604118d12d54e2f7809b9d49a
2014-07-08 17:32:28 +01:00
Jenkins
67e4cc1194 Merge "Replaced 'e.g.' with 'for example'" 2014-07-08 14:59:13 +00:00
Victor Stinner
71588adbb5 Fix AMQPListener for polling with timeout
On timeout, poll() should return None, not raise an exception (Timeout).

Add also an unit test.

Change-Id: I1ed5ae2f093841111f0b691dddb879c16d218b73
2014-07-07 14:23:00 +00:00
Christian Berendt
59103984bb Replaced 'e.g.' with 'for example'
According to the IBM Style Guide the Latin abbreviation 'e.g.'
should be replace by 'for example'.

Change-Id: I694df5ed62213e29bdf35f781fd6f310b7df77a6
2014-07-06 20:56:11 +02:00
Jenkins
032639e677 Merge "fixed pep8 issue E265" 2014-07-04 15:58:33 +00:00
Jenkins
270e9cb00c Merge "Remove duplicate docs for MessageHandlingServer" 2014-07-01 09:57:37 +00:00
Jenkins
cb70f81b96 Merge "Add 'docs' tox environment" 2014-06-30 15:39:11 +00:00
YAMAMOTO Takashi
a704a3f1fc Use assertEqual instead of assertIs for strings
Checking identity of strings is not a great idea.
It might not work with different implementations. (eg. pypy)
Test usual equality instead.

Change-Id: Ib1a673a0ac116f2c80d066e94a8bd9a9ef8f518a
2014-06-30 11:18:13 +09:00
Jenkins
4db3cebe23 Merge "Fix structure of unit tests in oslo.messaging (part 3 last)" 2014-06-29 14:48:24 +00:00
Jenkins
3578338f3a Merge "Fix structure of unit tests in oslo.messaging (part 2)" 2014-06-29 14:43:38 +00:00
Jenkins
555eb7980b Merge "Fix the notifier example" 2014-06-28 18:05:15 +00:00
Jenkins
bfcf122a56 Merge "Fix slow notification listener tests" 2014-06-27 22:36:11 +00:00
Jenkins
944b947fb8 Merge "Fix formatting of TransportURL.parse() docs" 2014-06-27 22:36:04 +00:00
Boris Pavlovic
026cd1cfb9 Fix structure of unit tests in oslo.messaging (part 3 last)
Even in case of libraries and when they are not big like nova.
It is better to use next rules:
1) structure of tests directory is the same as a root of project
Tests directory will be well organized, and it will be simple to find
where to write tests
2) names for end modules should be test_<name_of_testing_module>.py

Change-Id: I75b4b3df4fffc8dfe389c547ae7a004d1b278ecc
2014-06-27 22:29:27 +00:00
Boris Pavlovic
ac0fc7f011 Fix structure of unit tests in oslo.messaging (part 2)
Even in case of libraries and when they are not big like nova.
It is better to use next rules:
1) structure of tests directory is the same as a root of project
Tests directory will be well organized, and it will be simple to find
where to write tests
2) names for end modules should be test_<name_of_testing_module>.py

Change-Id: I069121c5f32bbe51c6795e51c23ff3630fcd43e2
2014-06-27 22:29:22 +00:00
Jenkins
8d71fe2498 Merge "Fix info method of ListenerSetupMixin" 2014-06-27 07:25:18 +00:00
Mark McLoughlin
a7f01d9683 Fix slow notification listener tests
The notification listener tests have a listener endpoint that will stop
the listener thread when a certain number of messages have been
received. If this doesn't work, the main thread will time out its
join() after 5 seconds and the only way sign of this is that the test
took over 5 seconds.

Let's make stop_listener() return a boolean indicating whether the the
thread has stopped or we timed out, and assert that the thread has
stopped.

Fix a few cases where the thread hasn't stopped. In the 'two exchanges'
case, we send three messages but only two are to the exchanges we are
listening on. In the tests using the HANDLED return value, the info()
handler which stops the thread was never been called because that
endpoint was last in the endpoints list.

Change-Id: Iea2486f23cee073c3891188d7aabb22ae945900d
2014-06-27 06:56:47 +01:00
Paul Michali
0cfafac246 encoding error in file
There is a non-printable character (c2a0) in a comment line, which
in a new Neutron test case causes a StringException. There are
three issues here.

1) Encoding issue in the file.
2) No detection of encoding issues in files.
3) Neutron tests mask the failure detail

This addresses the first issue. Bug 1334798 in Neutron was created
for the last issue. Oslo team is aware of the second issue.

Related-Bug: #1334798

Change-Id: I8cfa6c93085a26666a8b4bee06dcd52709d04a95
2014-06-26 18:53:35 +00:00
Jenkins
9c3c717799 Merge "Replace usage of str() with six.text_type" 2014-06-26 15:54:58 +00:00
Thomas Herve
13fc9f251a Fix info method of ListenerSetupMixin
The listener of ListenerSetupMixin had an incorrect info implementation
that couldn't be called properly. This patch fixes the method signature.

Change-Id: I33153f04ce23474cfaffaa1db20b8582befa324d
2014-06-26 17:23:20 +02:00
Mark McLoughlin
89ed1295b5 Add release notes for 1.4.0.0a1
Change-Id: Iaf4ee85100533746ec8b6faa7983a17261eb5392
2014-06-26 10:34:25 +01:00
Mark McLoughlin
da2abaaa06 Fix formatting of TransportURL.parse() docs
Change-Id: I0b2cf7b1e76bd9151957ddaaaaca8d9e11cf1ed5
2014-06-26 06:53:32 +01:00
Mark McLoughlin
32d5129b37 Remove duplicate docs for MessageHandlingServer
We're currently including these docs under the RPC server and
notification listener sections causing sphinx to have a minor panic
attack.

  WARNING: duplicate object description of oslo.messaging.MessageHandlingServer

Change-Id: I76a4d9a7f55f7b65bcdd2bdb814904dc55bd1068
2014-06-26 06:53:20 +01:00
Mark McLoughlin
8babb0d1bd Add 'docs' tox environment
To make it easy to build docs with 'tox -e docs'.

Change-Id: Idd47c617196b25539b6b1fc88fac0a45b7fc0911
2014-06-26 06:52:25 +01:00
Aaron Rosen
0102aa96e6 Replace usage of str() with six.text_type
Replace using of str with six.text_type as it's able to
handle unicode data.

Change-Id: I38e4378c490d1dad8020312308dd3b6dad8772c0
2014-06-25 20:08:51 +00:00
Boris Pavlovic
3f9fc44bc6 Fix structure of unit tests in oslo.messaging (part 1)
Even in case of libraries and when they are not big like nova.
It is better to use next rules:

1) structure of tests directory is the same as a root of project
Tests directory will be well organized, and it will be simple to find
where to write tests

2) names for end modules should be test_<name_of_testing_module>.py

Change-Id: Ie13d1b709e863f6a9babaaa2bf1e042ef9251671
2014-06-25 12:20:36 +04:00
Jenkins
68f8857f30 Merge "RPC server doc: use the blocking executor" 2014-06-24 15:09:37 +00:00
Ihar Hrachyshka
503b48a6b8 Synced jsonutils and its dependencies from oslo-incubator
The sync includes change that makes sure we get unicode-only dicts from
jsonutils no matter which json module implementation is selected.

The latest commit in oslo-incubator:
- 2e1214b74b5448825d3db26e1308a51b468d3d5c

Included commits:
* gettextutils.py:
  - de4adbc4: pep8: fixed multiple violations
  - 9912e5df: Add API for creating translation functions
  - 6cc96d05: Fix test_gettextutils on Python 3
  - fd33d1ea: Fix gettextutil.Message handling of deep copy failures
  - 047b2e4e: Change lazy translation to retain complete dict
  - 6d55e26a: Add support for translating log levels separately
* importutils.py:
  - 1173e469: Remove ValueError when accessing sys.modules
  - 885828af: Deleted duplicated method in cliutils.
* jsonutils.py:
  - 0d7296f6: Add kwargs to jsonutils.load(s) functions
  - 18f2bc1b: Enforce unicode json output for jsonutils.load[s]()
  - 9e5a3938: jsonutils.load() accepts file pointer, not string
* timeutils.py:
  - 250cd88c: Fixed a new pep8 error and a small typo

The sync adds new module: strutils.

Disabled pep8 import checks for gettextutils to avoid raising 'H302:
import only modules.'

Change-Id: Ic815ca3df94c33edec9104172048b2cd94b92e3f
Closes-Bug: 1314129
2014-06-24 14:14:02 +02:00
Jenkins
1a0a3dd4b9 Merge "Ensures listener queues exist in fake driver" 2014-06-23 16:04:24 +00:00
Jenkins
889bf73021 Merge "Handle unused allowed_remote_exmods in _multi_send" 2014-06-23 09:33:30 +00:00
Mehdi Abaakouk
e582da68f4 Ensures listener queues exist in fake driver
The fanout queues of the fake driver are created at the first executor
poll, but if we use eventlet executor and the fake driver, when the sender
delivers a fanout message before the first poll, the message goes to the
topic queue instead of the server fanout queue.

The changes fixes that by ensuring the all queues exists when the
listener is created.

Closes bug #1331453

Change-Id: I92e7c01dd87d634b741bbcaea92f48730fdd555e
2014-06-23 09:10:21 +02:00
Gauvain Pocentek
221144600a RPC server doc: use the blocking executor
The eventlet executor need additional code to make the RPC server sample
work. Using the blocking executor makes things easier to setup for a
newcomer.

Change-Id: I56dfa54a178962d4ced34e2f15eaf9312b7087cc
2014-06-22 09:48:33 +02:00
Gauvain Pocentek
244a90278b Fix the notifier example
The notifier should be instantiated using messaging.Notifier, not
notifier.Notifier.

Change-Id: Id1930df6b758b292a7591e2e4cba2ef5a313a3cb
2014-06-22 09:47:02 +02:00
ChangBo Guo(gcb)
821ee096a6 Removes the use of mutables as default args
Passing mutable objects as default args is a known Python pitfall.
We'd better avoid this.

Change-Id: I67cc0774a65886ef9fce0b72e52157b622248a85
Closes-Bug: #1327473
2014-06-21 11:41:36 +08:00
Jenkins
e0730983ee Merge "Set correct group for matchmaker_redis options" 2014-06-20 20:08:34 +00:00
Jenkins
a64692689a Merge "Add an optional timeout parameter to Listener.poll" 2014-06-20 18:50:16 +00:00
Ihar Hrachyshka
38c1f26102 Set correct group for matchmaker_redis options
Before the change, config generator put those options into DEFAULT
section.

Change-Id: I1e8e746cde4627ddf79632ce8255e268de8bd3c3
Closes-Bug: 1332588
2014-06-20 19:03:35 +02:00
Jenkins
830b00d11c Merge "replace string format arguments with function parameters" 2014-06-20 15:51:58 +00:00
Jenkins
023e5e43f6 Merge "Explicitly name subscription queue for responses" 2014-06-20 15:31:32 +00:00
Christian Berendt
409108c74f replace string format arguments with function parameters
There are files containing string format arguments inside
logging messages. Using logging function parameters should
be preferred.

Change-Id: I4a7ce6916aefb2f2d445f0ebd977c824b1c51e24
Partial-Bug: #1321274
2014-06-20 14:18:40 +01:00
Jenkins
99afe32345 Merge "Removes contextlib.nested" 2014-06-20 12:47:24 +00:00
Jenkins
88800137b4 Merge "Transport reconnection retries for notification" 2014-06-20 10:20:24 +00:00
Jenkins
03e13b5878 Merge "Disable connection pool in qpid interfaces tests" 2014-06-20 10:20:18 +00:00
Jenkins
1b4d7ad6f2 Merge "Cleaned up references to executor specific RPCServer types" 2014-06-19 19:14:36 +00:00
Jenkins
b8009466ce Merge "Add an example usage of RPCClient retry parameter" 2014-06-19 18:53:40 +00:00
Mehdi Abaakouk
9a079d816a Removes contextlib.nested
This change removes usage of contextlib.nested that is not
python 3 compatible

Change-Id: Id69b4112a1bbfe06a53dd68ed94f15fd1d58ba74
2014-06-18 18:41:33 +02:00