704 Commits

Author SHA1 Message Date
Jenkins
d9b919ff67 Merge "Allows to overriding oslotest environ var" 2014-11-19 13:26:58 +00:00
Mehdi Abaakouk
d9d04fb74b Allows to overriding oslotest environ var
This patch allows to override the oslotest environ variables
in the testr configuration

Change-Id: Ifec93f20446038f0af2ee9bae62b2aa6e97194a5
2014-11-19 11:28:02 +01:00
Elena Ezhova
0d49793e34 Create ZeroMQ Context per socket
ZeroMQ Context is a singleton and thus is created only once. This leads
to problems when there is more than one process working with it.
For example, while Neutron server starts, it firstly loads core
plugin and service plugins, which start message handling server,
and only then forks to create api-workers. As a result, all child
processes get the same copy of the context.

Creating new Context for each socket will prevent such situations
from happening and will guarantee that each process works with its
own Context.

Change-Id: I56912e39b119c20f6f23311fc2c7c4b9e9e480d0
Closes-Bug: #1364814
2014-11-18 18:18:07 +03:00
Mehdi Abaakouk
7306680bfa Remove unuseful param of the ConnectionContext
The ConnectionContext depends on the ConnectionPool.
A ConnectionPool already known the connection classes,
the configuration object and the url needed to create a new connection.

But we pass again thoses informations when we create a ConnectionContext.
This is unuseful, we can reuse thoses in the connection pool even we
want a not pooled connection.

This change removes the unuseful ConnectionContext parameters,
this also ensures that connection created with or without the pool
are created in the same ways and only at one place (the create method
of the connection pool).

Change-Id: I4bd43d202fa2774ad5dcb0f8dd05e58ba60c6009
2014-11-18 13:58:33 +01:00
OpenStack Proposal Bot
442d8b9e77 Updated from global requirements
Change-Id: I9d04f270038ba647a4a0ad849270aca2ea879874
2014-11-18 11:36:17 +00:00
James Page
5aadc56b66 Add basic tests for 0mq matchmakers
Basic unit tests for in-memory (localhost), ring and Redis based
matchmakers.

Redis tests are opportunitic based on a redis-server being installed
and running.

Test are currently skipped under py3 due to direct dependency on
eventlet.

Co-Authored-By: Kapil Thangavelu <kapil.thangavelu@canonical.com>
Change-Id: I59c4d095033370ab94f645af0d50e2502530f816
Partial-bug: #1302941
2014-11-17 21:34:29 -06:00
Mehdi Abaakouk
30e0aea877 Notification listener pools
We can now set the pool name of a notification listener
to create multiple groups/pools of listeners consuming notifications
and that each group/pool only receives one copy of each notification.

The AMQP implementation of that is to set queue_name with the pool name.

Implements blueprint notification-listener-pools
Closes-bug: #1356226

Change-Id: I8dc0549f5550f684a261c78c58737b798fcdd656
2014-11-14 10:20:18 +01:00
Jenkins
6eb0d2ff80 Merge "Updated from global requirements" 2014-11-14 00:47:18 +00:00
Jenkins
33870feb41 Merge "Activate pep8 check that _ is imported" 2014-11-13 23:50:14 +00:00
OpenStack Proposal Bot
7ea4147b17 Updated from global requirements
Change-Id: I6c7256a412154915603bea4541383bf6fe3bfc5c
2014-11-13 22:34:20 +00:00
Clint Byrum
37e5e2a888 Fix tiny typo in server.py
Missing the word 'to'

Change-Id: I6d1cc923b4085f0451a3a4b2d4b716b2c7ac5e96
2014-11-13 10:44:45 -08:00
Julien Danjou
10eb1202b3 Switch to oslo.middleware
Change-Id: I35f76724768c163b57728914f0ed700f1bc13e29
2014-11-08 18:08:37 +01:00
OpenStack Proposal Bot
a3ca0e5d70 Updated from global requirements
Change-Id: I19c88980d8f12d9725a80e05cbb5418470e6bf37
2014-11-05 08:34:59 +00:00
James Carey
6f76039fa2 Activate pep8 check that _ is imported
Remove the specification in tox.ini that _ is a builtin so that
it will no longer assume that _ does not need to be imported.

This helps ensure that the _ from i18n is used.

Activating this check did not flag any violations.

Change-Id: I077b9b2060e618823ef6dd6f95ce9fe7dcc52a06
2014-10-31 20:29:28 +00:00
Jenkins
c7211d125c Merge "zmq: Remove dead code" 2014-10-31 19:20:15 +00:00
Kenneth Giusti
f43fe66be0 Enable user authentication in the AMQP 1.0 driver
The TransportHost class allows user credentials to be supplied as part
of the URL that identifies the host.  Prior to this patch, these
credentials - username and password - were ignored by the AMQP 1.0
driver.  This prevents connections to a message broker that has been
configured to use SASL PLAIN authentication.

Closes-Bug: #1385445
Change-Id: Ib9279ed40b0f4cff62e1c742069c8f49f5625659
2014-10-31 11:46:24 -04:00
Oleksii Zamiatin
f74014a7db Documentation anomaly in TransportURL parse classmethod
The documentation for the classmethod `parse` states that

    The last parsed username and password will be propagated to the rest
    of hosts specified::
    user:pass@host1:port1,host2:port2
    [
    {"username": "user", "password": "pass", "host": "host1:port1"},
    {"username": "user", "password": "pass", "host": "host2:port2"}
    ]

However, in practice one needs to specify the usernames and passwords
individually with every host.

DocImpact: Documentation needs to be changed due anomaly in TransportURL
parse classmethod.

Change-Id: I1a9e07e0380a0d6f7d00731df93c9ba01ae20e0e
Closes-Bug: #1355684
2014-10-31 12:14:17 +02:00
Jenkins
6dc19e0b93 Merge "Add driver independent functional tests" 2014-10-29 09:44:29 +00:00
Jenkins
604407d6ab Merge "Don't put the message payload into warning log" 2014-10-28 20:59:10 +00:00
Jenkins
e267ba9c01 Merge "qpid: Always auto-delete queue of DirectConsumer" 2014-10-28 20:51:56 +00:00
Jenkins
5df5458259 Merge "Add pbr to installation requirements" 2014-10-28 20:39:54 +00:00
Mehdi Abaakouk
f61f7c570f Don't put the message payload into warning log
When a caller msg doesn't exists anymore but a reply is ready for it.
amqp driver drop the whole message into a logging.warn. That can be a
bit huge in some case.

This change just writes the message id to the WARN level and put the queues
and the messages into the debug level.

Change-Id: Ibcc6b066171cdea48f102ca1bd85f81c639fbbb5
2014-10-28 11:38:14 +01:00
OpenStack Proposal Bot
70910e0c9b Updated from global requirements
Change-Id: I893b7ffbd5ef589a10608c9f705b152c5c910e9a
2014-10-27 12:21:03 +00:00
Doug Hellmann
6857db11f2 Add pbr to installation requirements
Add pbr to the list of installation requirements so that it is installed
via pip before this library is installed, instead of with easy_install.
This avoids issues like Bug #1384919, and ensures that projects that use
this library as a dependency are properly installed.

Change-Id: I6c155370dbd01fe4748d5137bdf288e8d3e1a67e
2014-10-24 09:28:13 -04:00
Jenkins
8c03f193c7 Merge "Updated from global requirements" 2014-10-24 09:05:45 +00:00
Jenkins
0af2bbd39c Merge "Imported Translations from Transifex" 2014-10-23 00:39:33 +00:00
Jenkins
9de00b7f22 Merge "Add missing deprecated group amqp1" 2014-10-23 00:21:49 +00:00
OpenStack Proposal Bot
0088ac9b27 Updated from global requirements
Change-Id: Ide39cf1435d22ff55ed92b6b6d24979077a526cd
2014-10-22 19:16:42 +00:00
Gordon Sim
f1afac446c Add driver independent functional tests
Add driver independent functional tests of the messaging API

The url used to select (and configure) the driver is specified as an
environment variable named TRANSPORT_URL.

Change-Id: I867001a15ffaca06ae831cfd0240ed3397bf6503
2014-10-22 17:07:45 +02:00
OpenStack Proposal Bot
a476b2e3d3 Imported Translations from Transifex
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: Ieabf26f52f89031b4e9b3b812a7c2c40d4fd01a1
2014-10-22 06:17:51 +00:00
Mehdi Abaakouk
db2709ec83 zmq: Remove dead code
This remove dead code inherit from the old oslo-rpc API

Change-Id: I2792dc47608db0c3210586bd4aecc13e574c034e
2014-10-17 15:06:03 +02:00
Jenkins
a1489a252d Merge "Track the attempted method when raising UnsupportedVersion" 2014-10-15 14:05:44 +00:00
Jenkins
2e77446da2 Merge "Finish transition to oslo.i18n" 2014-10-14 14:04:59 +00:00
OpenStack Proposal Bot
a87aa3ef00 Updated from global requirements
Change-Id: I69d69ae9153769414d76b63ccb59fdd8ff06d01b
2014-10-13 18:50:26 +00:00
Julien Danjou
3dd6a23271 Finish transition to oslo.i18n
Change-Id: Ia0c8c15ba95b1fac6c815b86ccd8771b3ca24327
2014-10-06 13:28:05 +02:00
Jenkins
0aa3312b46 Merge "Enable oslo.i18n for oslo.messaging" 2014-10-04 02:10:02 +00:00
OpenStack Proposal Bot
969847d3f0 Imported Translations from Transifex
Change-Id: I081352535004988c4020265994ecbf17b602dde0
2014-10-03 06:17:54 +00:00
Jenkins
6199e0f92f Merge "Imported Translations from Transifex" 2014-10-01 13:03:46 +00:00
Jenkins
a2f719f0fc Merge "Cleanup listener after stopping rpc server" 2014-10-01 08:43:03 +00:00
OpenStack Proposal Bot
63a5f1c456 Imported Translations from Transifex
Change-Id: I4924b3a25c134a43e12e0b07f6c28944f602e2f7
2014-10-01 06:09:23 +00:00
Mehdi Abaakouk
1640cc1703 qpid: Always auto-delete queue of DirectConsumer
In case of the call()er die, the queue used to reply must be
automatically deleted, otherwise they will never been deleted.

This is done in the same way as the rabbit drivers does,
by enabling auto-delete on this queue.

Change-Id: Ib01981d704b8849e0115791ff90fbb74cbac421f
Closes-Bug: #1374519
2014-09-29 15:18:10 +02:00
Jenkins
055e305016 Merge "Updated from global requirements" 2014-09-28 05:34:46 +00:00
Jenkins
dc51213f12 Merge "Add documentation explaining how to use the AMQP 1.0 driver" 2014-09-28 04:38:06 +00:00
OpenStack Proposal Bot
6b405b9fa6 Updated from global requirements
Change-Id: I3ca1464ef5a1dadcc8f030caf7e62135492d05a2
2014-09-26 03:59:04 +00:00
OpenStack Proposal Bot
d4e64d879f Imported Translations from Transifex
Change-Id: I2488afc8064ccfdc7ea7218aa32d0b17b3e0fa2a
2014-09-25 06:24:50 +00:00
Davanum Srinivas
487bbf5b13 Enable oslo.i18n for oslo.messaging
Change-Id: Ic8e05ae4ffe3eb871ae64243c41a9955f47cbe2a
2014-09-24 22:18:50 -04:00
Julien Danjou
8d242bd7ab Switch to oslo.serialization
Change-Id: I24be947cfc2d9ce60e65054e6562e544b1e21195
2014-09-23 14:54:30 +02:00
Abhijeet Malawade
f37800943e Cleanup listener after stopping rpc server
If you don't close the AMQP connection, then the connection
remains open and the next time when the messages are sent on
the listening topic, then some of the messages will not be processed
as there is no dispatcher running to process the message.

Closes-Bug: #1335086
Change-Id: I1f39eedf1500b6b6209ae0222f32e08e304895e0
2014-09-23 03:35:43 -07:00
Jenkins
2b6e24f81b Merge "fix memory leak for function _safe_log" 2014-09-22 05:58:25 +00:00
Jenkins
c364afa9c9 Merge "Stop using intersphinx" 2014-09-21 21:57:37 +00:00