1389 Commits

Author SHA1 Message Date
Davanum Srinivas
3706263eef fix .gitreview - bad merge from pika branch
Change-Id: I5b2fcf6e610425d9bb6c2eca13a32cddb03d5e87
2016-01-13 14:53:53 +00:00
Jenkins
03b51034f4 Merge "[zmq] Added redis sentinel HA implementation to zmq driver" 2016-01-13 05:58:31 +00:00
Jenkins
6d9c4815de Merge "[zmq] Add TTL to redis records" 2016-01-13 05:55:21 +00:00
Alexi Yelistratov
6f6a0ae5bc [zmq] Added redis sentinel HA implementation to zmq driver
List of redis sentinel hosts is now supported in order to
use automatic failover when redis master goes down.

Change-Id: I5fad4c9b6c6aea4f8f382f7469899a7d05c068c1
Closes-Bug: #1518292
2016-01-11 12:31:38 +02:00
Jenkins
7265a82a4e Merge "rabbit: Missing to pass parameter timeout to next" 2016-01-11 01:59:20 +00:00
Oleksii Zamiatin
f99a459c27 [zmq] Add TTL to redis records
New option 'zmq_target_expire' added which defines the
TTL in seconds for each target key.

Consumers should periodically update their target records in
background.

Change-Id: Ic4f2fc46b55e324dd9b6ecb7436a00141a4cd881
Closes-Bug: #1524097
2016-01-08 23:40:47 +02:00
Jenkins
c4e9830a2d Merge "list_opts: update the notification options group" 2016-01-08 17:23:41 +00:00
Jenkins
6e95e8b891 Merge "Improvement of logging acorrding to oslo.i18n guideline" 2016-01-08 17:02:56 +00:00
Jenkins
5f6e831e54 Merge "make enforce_type=True in CONF.set_override" 2016-01-08 17:01:56 +00:00
Jenkins
31710c2914 Merge "Optimize sending of a reply in RPC server" 2016-01-08 13:18:56 +00:00
OpenStack Proposal Bot
9f41070ee2 Updated from global requirements
Change-Id: Icf768ad0d2df378594cfbc4c31a76ef0e2c59bac
2016-01-08 06:54:40 +00:00
Javeme
ca6c34ac71 make enforce_type=True in CONF.set_override
Each config option has limitation for type and value. If we use
method CONF.set_override without parameter enforce_type=True, we
may pass wrong type to config option.

This commit makes sure calling method CONF.set_override with
enforce_type=True.

Change-Id: I1430c93777d6e5d98086a8700663ab9f58c1e5ab
Closes-Bug: #1517839
2016-01-08 13:32:03 +08:00
Davanum Srinivas
2982b6a7ed Merge remote-tracking branch 'origin/feature/pika' into merge-branch
Change-Id: I570b3dbb3ecaa13d5a6b240a092de82ee0b39c50
2016-01-07 08:21:04 -05:00
Jenkins
771367ec38 Merge "Use assertTrue/False instead of assertEqual(T/F)" 2016-01-07 12:49:09 +00:00
Jenkins
7cb3314133 Merge "rabbit: fix unit conversion error of expiration" 2016-01-07 10:28:22 +00:00
Swapnil Kulkarni (coolsvap)
b7fee711b6 Use assertTrue/False instead of assertEqual(T/F)
The usage of assertEqual(True/False, ***) should be changed
to a meaningful format of assertTrue/False(***).

Change-Id: Idda812a34be8aa53654d6791eac47028339d3cb7
Closes-Bug:#1512207
2016-01-07 12:29:15 +05:30
ChangBo Guo(gcb)
6b20fa8597 Improvement of logging acorrding to oslo.i18n guideline
1. Use translation marker functions, their argument must just be a string
2. Any message with more than one variable should use named
   interpolation instead of positional to allow translators
   to move the variables around in the string to account for
   differences in grammar and writing direction.
3. String interpolation should be delayed to be handled by the logging
   code, rather than being done at the point of the logging call.
For more details, please refert to oslo.i18n guideline [1]

Note: this commit doesn't touch test code.

[1] http://docs.openstack.org/developer/oslo.i18n/guidelines.html

Change-Id: I5f013d65b20396bbe0e5a2cceaed2a33fad1af23
2016-01-07 13:26:55 +08:00
OpenStack Proposal Bot
91273fed79 Updated from global requirements
Change-Id: I264917bf050e20343c31e6063571781933f7399d
2016-01-06 23:18:35 +00:00
Jenkins
e1e8badbe7 Merge "Optimize simulator.py for better throughput" 2016-01-06 15:32:22 +00:00
Jenkins
9ed56f8a1a Merge "[zmq] Switch notifications to PUB/SUB pattern" 2016-01-06 14:51:34 +00:00
Javeme
d49ddc3b98 rabbit: fix unit conversion error of expiration
kombu has already made a conversion from seconds to milliseconds,
so we do not need to do it again.

Closes-Bug: #1531148
Change-Id: Ia4478f15f1980a93a53f7e1e6570f68aeec75c69
2016-01-06 18:54:15 +08:00
Gauvain Pocentek
87e06d97be list_opts: update the notification options group
The group is still DEFAULT at the moment, but the correct group is
oslo_messaging_notifications. Sample configurations files generated with
the oslo.config tools are invalid due to this incorrect group.

Change-Id: Idc6c52f4b15dfff6e8d6b4a2ef9f5598bb3468cd
Closes-Bug: #1531219
2016-01-05 21:00:33 +01:00
Javeme
3d4babe900 rabbit: Missing to pass parameter timeout to next
Missing to pass parameter 'timeout' to the method '_ensure_publishing'
when publishing a message.

That will cause RPCClient.call unable to pass timeout to the underlying.

Change-Id: I1abc7e9c6f5204fa336f29a94114c18d8b982fcb
2016-01-05 19:43:37 +08:00
Clint Byrum
817cb0c8ab Fix formatting of code blocks in zmq docs
They were mostly missing the preceding :: to make them appear as raw
text in generated docs.

Change-Id: I00ac461b13b75c4eef9961e7350fcd90394cdb77
2016-01-04 16:01:22 -08:00
Dmitriy Ukhlov
83a08d4b7e Adds unit tests for pika_poll module
Change-Id: I69cc0e0302382ab45ba464bb5993300d44679106
2016-01-04 14:49:55 -05:00
OpenStack Proposal Bot
7c723afd0a Updated from global requirements
Change-Id: Ic15d42cb0f0ce44a62e197e11f209619015ea425
2016-01-01 20:32:09 +00:00
Oleksii Zamiatin
7e6470aaf5 [zmq] Switch notifications to PUB/SUB pattern
In this change PUB/SUB pattern was used for notifications.
Reduced useless split to direct/fanout notifications.
All notifications are fanout by default.

Change-Id: I232c093af76757dc6fc5e942d47f0473877f9efa
Closes-Bug: #1529845
2015-12-29 16:03:56 +02:00
Konstantin Kalin
e0a9b0c055 Optimize sending of a reply in RPC server
RPC server uses direct_send method to send replies.
 The method sets "passive" flag on an exchange.
 Thus auto_declare doesn't bring any good there, but it costs
 an additional "exchange.declare" call to RabbitMQ.
 simulator.py RPC tests shows that a perfomance gain is ~7%

Change-Id: Ia9f5f9f52c6cb324eca4ca6a63e80d604ddefa23
2015-12-28 10:42:28 -08:00
Konstantin Kalin
2251966c99 Optimize simulator.py for better throughput
* Avoid string concatenation during logging, especially
  when logging level is disabled.
* Initialize the Randomized strings we will be using
  as payloads *before* we start sending the messages
  as the string creation takes time and reduces
  throughput

Change-Id: I546229fe7ade95572e11bcda95a587228d84bc28
2015-12-25 10:27:54 -08:00
Jenkins
3de5b6f52e Merge "Fix wrong bugs report URL in CONTRIBUTING" 2015-12-24 04:40:33 +00:00
ChangBo Guo(gcb)
54d0d59476 Remove stale directory synced from oslo-incubator
Change-Id: Icba41b5f68c24e9ffdc29ad77d3fbd12db810718
2015-12-23 16:14:59 +08:00
ChangBo Guo(gcb)
f342573a93 Fix wrong bugs report URL in CONTRIBUTING
Change-Id: Ieca103bd3e0e375b765c04bf41337d66b0a884ed
2015-12-23 15:16:51 +08:00
ChangBo Guo(gcb)
e8703dc802 zmq: Don't log error when can't import zmq module
Method import_zmq returns None if can't import zmq module.
For runtime code, an ImportError is raised, and for tests,
a skip message "zmq not available" is sent, so it's unnecessary
to log error which shows up in other projects' unit test logs.

Co-Authored-By: Oleksii Zamiatin <ozamiatin@mirantis.com>
Change-Id: Iebf15042f45da56eb633a0a70822c487dc72c884
Closes-Bug: #1528415
2015-12-22 09:16:09 +00:00
Jenkins
c9fe899d2a Merge "assertIsNone(val) instead of assertEqual(None,val)" 2015-12-22 06:32:28 +00:00
Jenkins
3490c6fa62 Merge "Revert "serializer: deprecate RequestContextSerializer"" 2015-12-21 17:38:13 +00:00
Javeme
417f079c2b assertIsNone(val) instead of assertEqual(None,val)
use assertIsNone(val) instead of assertEqual(None, val).

Change-Id: Ib395d3805b9affca06477ffeca7d7cad070ebb7e
2015-12-21 19:07:43 +08:00
Dmitriy Ukhlov
5149461fd2 Adds tests for pika_message.py
Also small mistakes were fixed,
msg_id, unique_id and reply_q fields were
moved to corresponding AMQP properties

Change-Id: I5147c35c1a2ce0205e08ca81db164a3cc879fb0a
2015-12-19 18:42:10 -05:00
Oleksii Zamiatin
1a03d7b447 [zmq] PUB-SUB pipeline
In this change PUB-SUB pipeline was added
and used for CAST-Fanout pattern.

Added 2 new options:

* use_pub_sub - configures the driver to use
PUB/SUB if True, fallbacks to DEALER/ROUTER implementation
otherwise.

PUB/SUB implementation is assumed to be always used with proxy.

* direct_over_proxy - specifies to use proxy with direct patterns
(CALL,CAST). This option is in replace of zmq_use_broker.
Latter is meaningless in context of PUB/SUB architecture,
so renamed.

Change-Id: I7c02d4d62632293941bc0d9d947e5362a5317db6
Closes-Bug: #1515185
2015-12-18 10:15:32 +00:00
Jenkins
a4f83d97b9 Merge "Removes MANIFEST.in as it is not needed explicitely by PBR" 2015-12-17 18:02:25 +00:00
OpenStack Proposal Bot
b1039db1b3 Updated from global requirements
Change-Id: I6f0f02b4633f9b2817b3e19fadcbb2c3e5b5c46d
2015-12-15 18:59:11 +00:00
Dmitriy Ukhlov
3976a2ff81 Fixes conflicts after merging master
Change-Id: I0d75c19e3002a3aad2dd35bbaea203fa9ba0c0ea
2015-12-14 18:49:50 +02:00
Davanum Srinivas
cc0f8cc8a9 Merge remote-tracking branch 'origin/master' into merge-branch
Change-Id: Ice6dcc3867dff6b7fea5647a3b79d1c765bf9d73
2015-12-14 16:21:42 +02:00
Jenkins
0b7ffdf1dc Merge "Updated from global requirements" 2015-12-12 21:00:47 +00:00
Jenkins
def1b841cb Merge "Move to debug a too verbose log" 2015-12-12 07:37:30 +00:00
OpenStack Proposal Bot
a5d7889174 Updated from global requirements
Change-Id: Ifd78016c067740477a82dbe06d74d5944ba91893
2015-12-11 15:24:05 +00:00
Mehdi Abaakouk
17ccb2306d Move to debug a too verbose log
When a client is gone (died/restart) and somes replies cannot be sent because
the the exchange of this client will never comeback. We log one message per
reply every 0.25 messages during 60 seconds. When the only useful log
is the one where we decide to drop this replies.

This change moves the less important message to debug level.

Change-Id: I508787c0db4dcec2c0027b89eb4e65c4f98022b9
Related-bug: #1524418
2015-12-11 10:59:54 +01:00
Davanum Srinivas
46daf85814 Cleanup parameter docstrings
Change-Id: I301fdd51446bf0c0a6dd0d05b26da0556db8367d
2015-12-11 11:04:13 +03:00
Jenkins
0a0e6d0d50 Merge "notif: Check the driver features in dispatcher" 2015-12-11 04:17:21 +00:00
Jenkins
213176657d Merge "batch notification listener" 2015-12-11 04:16:57 +00:00
Jenkins
4b6144a3db Merge "creates a dispatcher abstraction" 2015-12-10 11:15:48 +00:00