1812 Commits

Author SHA1 Message Date
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
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
OpenStack Proposal Bot
6945323b34 Updated from global requirements
Change-Id: Ie47c04a5c439bd6303e50794909c2a81bc64e4d1
2016-06-30 18:48:25 +00:00
Mehdi Abaakouk
861a3aceb2 Remove rabbitmq max_retries
It was never clear was the purpose of this option.

For the RPC API point of view raising MessageDeliveryFailure is kind
of unexpected. For the Notification API, this is weird that when
application put retry=-1, the lib stop to retry only with rabbit.

So this change deprecates this option for removal.

Change-Id: I4ac3a062426418276c96e1745d1c96a8525c36da
2016-06-29 16:26:25 +02:00
ChangBo Guo(gcb)
61aae0ffac Config: no need to set default=None
By default oslo.cfg sets the default value as None. There is no
need to explicitly do this.

TrivialFix

Change-Id: I57fa9651ea56a180a910d6cbf7b7f385da8af239
2016-06-28 15:47:39 +08:00
Jenkins
5dfb1d8ef9 Merge "Improve the impl_rabbit logging" 2016-06-23 14:14:27 +00:00
Jenkins
7a0f9334db Merge "[zmq] Fix message sending when using proxy and not using PUB/SUB" 2016-06-21 19:23:59 +00:00
Jenkins
60f9fc4f93 Merge "AMQP 1.0 - create only one Cyrus SASL configuration for the tests" 2016-06-20 13:57:45 +00:00
Gevorg Davoian
dfd5c791c9 [zmq] Fix message sending when using proxy and not using PUB/SUB
This patch fixes the problem of sending messages in the following
configuration: use_router_proxy=True and use_pub_sub=False. Right
now we have incorrect both cast and fanout messages: cast acts as
fanout (instead of round-robin) and fanout duplicate each message
twice.

Change-Id: I2b039aa462ddde300fd50b3754e4fe66abf6e635
2016-06-18 08:48:10 +03:00
Jenkins
47de68fb93 Merge "[zmq] Remove redundant Envelope class" 2016-06-16 03:18:36 +00:00
Jenkins
cca3091ba4 Merge "[zmq] Properly stop ZmqServer" 2016-06-15 23:40:18 +00:00
Jenkins
f3894c879f Merge "[zmq] Fix backend router port for proxy." 2016-06-15 23:39:19 +00:00
Kenneth Giusti
3316edb2ea AMQP 1.0 - create only one Cyrus SASL configuration for the tests
The Cyrus SASL library can only be initialized once per process. And
the configuration must remain available until all the tests have run.

Change-Id: I2810ecf53956fc5d4fcdc944f8e06237ca985e6a
Closes-Bug: #1591211
2016-06-15 16:00:58 -04:00
OpenStack Proposal Bot
5afb60512a Updated from global requirements
Change-Id: I0cc8324da21fa246c936685048782ad2c2a94368
2016-06-14 21:09:44 +00:00