1824 Commits

Author SHA1 Message Date
Jenkins
a0336c8aa1 Merge "Move zmq driver options into its own group" 2016-08-05 19:28:50 +00:00
Oleksii Zamiatin
7c5d039fd3 Move zmq driver options into its own group
ZeroMQ driver options are current stored into the DEFAULT group.
This change makes the zmq configuration clearer by putting its
options into oslo_messaging_zmq group.

Change-Id: Ia00fda005b1664750d2646f8c82ebdf295b156fb
Closes-bug: #1417040
Co-Authored-By: Oleksii Zamiatin <ozamiatin@mirantis.com>
2016-08-05 11:36:50 +03:00
OpenStack Proposal Bot
51652c57d2 Updated from global requirements
Change-Id: I5b87131404d34b69dab22564eccb8f1e1a141761
2016-08-04 02:40:46 +00:00
OpenStack Proposal Bot
2003a52a16 Updated from global requirements
Change-Id: Ibdebbd59e62297de8ddd6fbec7743e3c66d1108f
2016-08-03 09:06:36 +00:00
Jenkins
b259f88b09 Merge "[zmq] Use zmq.IMMEDIATE option for round-robin" 2016-08-02 01:03:59 +00:00
Jenkins
3a87803db9 Merge "Fix pika functional tests" 2016-08-01 12:50:53 +00:00
Gevorg Davoian
d946fb1862 Fix pika functional tests
Change-Id: I05f2cbd914857da7a75ca068e99614156797d1ed
Closes-Bug: #1599777
Depends-On: Ic6acc5d006344e08c219724e488fc9222786d849
2016-08-01 11:03:45 +03:00
ozamiatin
9e61efa67d [zmq] Use zmq.IMMEDIATE option for round-robin
This options helps to prevent message loss by scheduling
messages only to a connected queue. If there is no connections
socket hangs waiting.

Change-Id: I87b97c8b77887f53599a28e0d05fc2c71c149499
Closes-Bug: #1606272
2016-07-31 14:50:10 +03:00
Jenkins
871754ff30 Merge "Remove discover from test-requirements" 2016-07-29 15:54:39 +00:00
Jenkins
474d26b34e Merge "Updated from global requirements" 2016-07-29 13:50:34 +00:00
maoshuai
7576497196 fix a typo in impl_rabbit.py
Change-Id: I75f99d7e3a6b193e30d8d9baad6a939fbdd0ca6d
2016-07-29 11:23:06 +08:00
OpenStack Proposal Bot
12886219a6 Updated from global requirements
Change-Id: Iae11896324f16164fd62a53c089ebd2948437098
2016-07-29 02:33:54 +00:00
Gregory Haynes
317641c42f Fix syntax error on notification listener docs
We are missing a list delimiter in our docs example for a notification
listener.

Change-Id: Ib8b9c35e7bff241bf8473a98a2ee188da7e194e4
2016-07-28 01:57:35 +00:00
Jenkins
bafe720867 Merge "Introduce TTL for idle connections" 2016-07-27 20:03:38 +00:00
Jenkins
2f810679f1 Merge "Delete fanout queues on gracefully shutdown" 2016-07-26 23:44:48 +00:00
Kirill Bespalov
a6f0aaed3f Delete fanout queues on gracefully shutdown
No reasons to kept fanout queues in case then
a rpc server is gracefully shutdown. The expiration
time of the fanout queue is too long (30 mins), so for
large scales it can accumulate a lot of messages before it be removed

Closes-Bug: 1606213
Change-Id: Ieaa35c454df542042f3a5424d70f87d486693024
2016-07-26 19:32:09 +03:00
Jenkins
f71838f4f3 Merge "Fix parameters of assertEqual are misplaced" 2016-07-26 12:43:21 +00:00
Jenkins
11bdf18ae7 Merge "[zmq] Let proxy serve on a static port numbers" 2016-07-25 16:44:51 +00:00
Gevorg Davoian
564e423d24 Properly cleanup listener and driver on simulator exit
Change-Id: Id04d4d1ce131bf7a4681273c438cbe6e58b44e78
Closes-Bug: #1584743
Co-Authored-By: Oleksii Zamiatin <ozamiatin@mirantis.com>
2016-07-24 19:23:39 +03:00
Oleksii Zamiatin
18c8bc933d [zmq] Let proxy serve on a static port numbers
Currently proxy binds to a random port from a port range
specified in zmq config and therefore needs to register in
redis to become visible to clients and servers.

That could be done much simpler by using a static port(s) for
proxy. Moreover zmq handles reconnect to a socket if restarted
service uses the same port number as it had before restart.

Change-Id: I088792fd08a4161d08e9160830fc3ec4d560cca4
2016-07-22 19:00:48 +03:00
Kirill Bespalov
162f6e987b Introduce TTL for idle connections
We can reduce a workload of rabbitmq through implementation
of expiration mechanism for idle connections in the pool with
next properties:

 conn_pool_ttl (default 20 min)
 conn_pool_min_size: the pool size limit for expire() (default 2)

The problem is timeless idle connections in the pool, which can be created
via some single huge workload of RPCServer. One SEND connection is heartbeat
thread + some network activity every n second. So, we can reduce it.

Here is two ways to implement an expiration:

 [1] Create a separated thread for checking expire date of connections
 [2] Make call expire() on pool.get() or pool.put()

The [1] has some threading overhead, but probably insignificant
because the thread can sleep 99% time and wake up every 20 mins (by default).
Anyway current implementation is [2].

Change-Id: Ie8781d10549a044656824ceb78b2fe2e4f7f8b43
2016-07-22 13:03:04 +03:00
Jenkins
0ecc25509f Merge "Fix misstyping issue" 2016-07-21 16:34:50 +00:00
yan.haifeng
9ed95bbdc9 Fix parameters of assertEqual are misplaced
Many assertEqual sentences don't follow assertEqual(expected, actual),
These misplaces have 2 impacts:
1, giving confusing messages when some tests failed.
2, mislead other developers, new test modules may follow these wrong pattern.

This patch fix all of them.

Change-Id: Icc6e404dd02fe47b76c7366d31d91c8d8e464f54
Closes-Bug: #1604213
2016-07-21 10:32:59 +08:00
Edu Alcaniz
95d0402874 Fix misstyping issue
Change-Id: I5f6ed9e021c2f218046ea6fed55e58018b595392
2016-07-19 18:14:25 +00:00
OpenStack Proposal Bot
d1cbca851b Updated from global requirements
Change-Id: I7e0a79888c46869c6b7deeda7e7aaeb877c8873d
2016-07-19 15:19:58 +00:00
Jenkins
74fa4d096b Merge "Add deprecated relnote for max_retries rabbit configuration option" 2016-07-19 11:03:27 +00:00
Jenkins
94c958ca86 Merge "notify: add a CLI tool to manually send notifications" 2016-07-18 21:32:47 +00:00
OpenStack Proposal Bot
73b3286eee Updated from global requirements
Change-Id: Ib89194bdf72da24309f398016b73ee9d67885c39
2016-07-15 03:46:40 +00:00
Julien Danjou
ff9b4bb938 notify: add a CLI tool to manually send notifications
Change-Id: I01ebd8402e322c5c27dc2fc4c61fb5beb2dddae8
2016-07-13 17:30:56 +02:00
Jenkins
cf7961ddac Merge "[zmq] Merge publishers" 2016-07-13 13:09:32 +00:00
Jenkins
7479689e72 Merge "[zmq] Add py34 configuration for functional tests" 2016-07-13 13:09:16 +00:00
Joshua Harlow
538c84b300 Add deprecated relnote for max_retries rabbit configuration option
Change-Id: I3e7fbededc972c5c785c037e2abd7ccff0aae267
2016-07-12 17:40:01 -07:00
Oleksii Zamiatin
ae1123e438 [zmq] Add py34 configuration for functional tests
Change-Id: I6bd94323d88ce9123776b1359696fbc2e31933de
Closes-Bug: #1602234
2016-07-12 17:01:39 +00:00
Gevorg Davoian
07187f9bac [zmq] Merge publishers
This patch merges small logically related publishers supporting
only some messaging patterns into bigger ones supporting all
messaging patterns at once.

Change-Id: Ic47e4d89166dd14f8a67101e666dc780a1ccb2a8
2016-07-12 18:42:45 +03:00
Jenkins
d224034ce7 Merge "Replace assertEqual(None, *) with assertIsNone in tests" 2016-07-12 15:32:31 +00:00
ChangBo Guo(gcb)
8e778658e5 Add Python 3.5 classifier and venv
Now that there is a passing gate job, we can claim support for
Python 3.5 in the classifier. This patch also adds the convenience
py35 venv.

Change-Id: I8871f4e17ab806c00661d0c960a216d0a3fc5449
2016-07-12 16:35:36 +08:00
weiweigu
689ba08173 Replace assertEqual(None, *) with assertIsNone in tests
Replace assertEqual(None, *) with assertIsNone in tests to have more
clear messages in case of failure.

Change-Id: Idb0376964ecc65d04e5b79753efd8f6a0b822bf8
Closes-Bug: #1280522
2016-07-12 12:06:59 +08:00
OpenStack Proposal Bot
c6c70aba2d Updated from global requirements
Change-Id: I3d565fabb11b45c6420ed80c81504886b53b99c7
2016-07-09 19:25:54 +00:00
Jenkins
afd5f8233c Merge "Add Python 3.4 functional tests for AMQP 1.0 driver" 2016-07-08 18:33:38 +00:00
Gevorg Davoian
66ded1f914 [zmq] Use json/msgpack instead of pickle
Change-Id: Ia4a08b6f2d932ad0642d64f55bcdadef814e4350
Closes-Bug: #1582207
Closes-Bug: #1584763
Depends-On: I90df59d61af2b40b516a5151c67c184fcc91e366
2016-07-08 12:50:58 +00:00
Gevorg Davoian
ac484f6b26 [zmq] Refactor publishers
This patch refactors publishers by separating responsibilities and
introducing senders and waiters within publishers.

Change-Id: I90df59d61af2b40b516a5151c67c184fcc91e366
Co-Authored-By: Oleksii Zamiatin <ozamiatin@mirantis.com>
2016-07-07 13:45:39 +03:00
Jenkins
58ad758dc2 Merge "Remove rabbitmq max_retries" 2016-07-06 17:39:40 +00:00
Kenneth Giusti
96438a3e1f Add Python 3.4 functional tests for AMQP 1.0 driver
Change-Id: Ieead11641df3e711555420517e9668258a79410b
Closes-Bug: #1598209
2016-07-06 09:50:57 -04:00
Jenkins
68556b36ee Merge "[zmq] Additional configurations for f-tests" 2016-07-05 16:04:39 +00:00
Mehdi Abaakouk
35146383d0 tests: allow to override the functionnal tests suite args
Change-Id: Ia958b3812be7c51a07734081542f14452c5de658
2016-07-04 17:54:35 +00:00
Jenkins
eef2bd058a Merge "tests: rabbitmq failover tests" 2016-07-04 10:55:23 +00:00
Oleksii Zamiatin
2b50ea5a30 [zmq] Additional configurations for f-tests
Extend functional testing to cover all zmq deployment configurations.

Change-Id: I03a1bb27a4cca429405a19e9de3ba593bbf1db63
2016-07-04 12:44:44 +03:00
Thomas Bechtold
6967bd717d Remove discover from test-requirements
It's only needed for python < 2.7 which is not supported

Change-Id: Ic899f5f03e847c53c22dbe0b7ee02313648e4be8
2016-07-04 08:59:30 +02:00
Mehdi Abaakouk
865bfec975 tests: rabbitmq failover tests
This leverages the pifpaf library to exercice
rabbitmq failover.

Change-Id: Ic6acc5d006344e08c219724e488fc9222786d849
2016-07-04 00:24:13 +00:00
OpenStack Proposal Bot
df9a0097a6 Imported Translations from Zanata
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I344d2a0c432927d6dde0208dc0682c36c8a85655
2016-07-01 07:58:08 +00:00