1930 Commits

Author SHA1 Message Date
Luong Anh Tuan
4b1ac84e3f Remove default=None when set value in Config
By default oslo.cfg sets the default values as None [1], There is
no need to explicitly do this.

[1] https://github.com/openstack/oslo.config/blob/master/oslo_config/cfg.py#L829

Change-Id: I032f1044ab96b04f0ea1f66762a832c305280522
2016-09-28 00:37:41 +00:00
ChangBo Guo(gcb)
ae365cb688 Use method fetch_current_thread_functor from oslo.utils
oslo.utils provides this method, just use it and don't
keep the version of oslo.messaging.

Change-Id: If71dde829382a46bb95897cf89377428097b18dd
2016-09-24 15:22:44 +08:00
Jenkins
f468fcd755 Merge "modify the home-page info with the developer documentation" 2016-09-23 15:16:27 +00:00
Jenkins
885904e9ae Merge "[zmq] Unify delimeters" 2016-09-21 14:53:15 +00:00
Jenkins
b1529e8236 Merge "[zmq] Fix fanout without PUB/SUB" 2016-09-21 14:51:48 +00:00
Jenkins
8c9e451b5c Merge "[zmq] Remove unnecessary subscriptions from SubConsumer" 2016-09-21 14:47:46 +00:00
avnish
4e38293972 modify the home-page info with the developer documentation
Change-Id: I9b049fe3e0dc68302d0f50cf9c4098a2cfccdac6
2016-09-20 16:31:07 +05:30
Gevorg Davoian
b3cb65a02c [zmq] Unify delimeters
This patch simply replaces all delimeters used for generating
internal identifiers like redis keys or socket identities
with slashes (since they are visually better for debugging than
dots, hyphens or underscores, which may also occur inside
topic or server names).

Change-Id: I8e8e80f467404a87a2526c80c8fae6cba5880c6d
2016-09-16 15:16:24 +03:00
Gevorg Davoian
c3df59e1ab [zmq] Fix fanout without PUB/SUB
This patch fix incorrect fanout behavior when use_pub_sub=False.
In addition it also makes dummy matchmaker behave similar to (already
fixed here) redis one in order to make future testing more realistic
(relevant tests were also fixed and refactored).

Change-Id: Ie131de189972250ea2d9b99fe65b5908b7144569
Closes-Bug: #1622968
2016-09-16 15:14:00 +03:00
Gevorg Davoian
a9814d4cb2 [zmq] Send immediate ack after message receiving
During rally tests it was discovered that the latency between
receiving message and dispatching it can reach up to 10 minutes.
This behaviour breaks the mechanism of acks and retries in zmq driver,
which causes test failures. This patch tries to fix these problems
by moving ack sending from rpc server's thread to zmq dealer
consumer's thread (immediately after message receiving).

Change-Id: If33d14006ffa947baf5c34c8b1f61f336432374f
2016-09-16 14:50:27 +03:00
Ayoub BOUSSELMI
afaa4d935d Corrects documentation typo
In oslo_messaging/_drivers/impl_rabbit.py, the documentation of
the Consumer class is the following: """Init the Publisher class
with the exchange_name, routing_key, type, durable auto_delete""".
This should be corrected by putting Consumer instead of Publisher.

Closes-Bug: 1623550

Change-Id: I77d09aeb1268ed79590a8b02ab5bf370f3b72caf
2016-09-14 18:22:00 +02:00
Gevorg Davoian
eaf433bf49 [zmq] Remove unnecessary subscriptions from SubConsumer
Change-Id: I86c0e3408382ee85b44f440e72fab7e468f7f7e1
2016-09-14 10:59:07 +03:00
Jenkins
09fa044777 Merge "Fixups to the inline documentation" 2016-09-12 18:48:01 +00:00
Jenkins
5bf96fe761 Merge "Fix consuming from unbound reply queue" 2016-09-12 17:01:34 +00:00
Kenneth Giusti
9bc9c0dc6a Fixups to the inline documentation
Rework the inline documentation for executors, RPC servers and
clients, notifiers and notification listeners for clarity and flow.

Change-Id: If4f1db853a7fc85340177fd2c9c43a479d72459d
2016-09-12 09:49:00 -04:00
kbespalov
3f4ce9470b Fix consuming from unbound reply queue
Consumer declaration consist of the next steps:
  1) declare an exchange
  2) declare a queue
  3) bind the queue to the exchange

Due to reply exchanges are auto-delete, at the
step 3 the exchange can be removed and consumer.declare()
will raise `queue.bind 404 Exchange not found`.

So, in this case the queue is exist and AMQPListener
just call consumer.consume() on the queue and go to
drain_events() despite on the fact that the queue is
unbound.

This change tries to redeclare queue/exchange proactively
each times channel change and just before consuming messages.

Co-Authored-By: Mehdi Abaakouk <sileht@redhat.com>
Closes-Bug: #1609766
Change-Id: Id8b48df3d26675d72955d417ce7622b1e8aa6195
2016-09-12 13:25:37 +03:00
Jenkins
995bea4e62 Merge "Add configurable serialization to pika" 2016-09-11 07:39:05 +00:00
Gevorg Davoian
9bd4bbeb2d Add configurable serialization to pika
This patch makes message serialization in the pika driver
configurable.

Change-Id: Ib86cb91110aa89663a54afdd9932d60f6f45f585
Depends-On: Idb12666255a990dfc8f8ff6b43e941b3481b9c1c
2016-09-10 12:28:25 +00:00
Jenkins
445b11cc0b Merge "[AMQP 1.0] Update setup test environment dispatch router backend" 2016-09-10 10:37:14 +00:00
Jenkins
6bbe8d1ac6 Merge "[zmq] Remove ZmqSocket.close_linger attribute" 2016-09-09 18:40:22 +00:00
Jenkins
f302253315 Merge "Add Documentation String for PikaDriver" 2016-09-09 14:10:27 +00:00
Gevorg Davoian
16ce974d97 [zmq] Remove ZmqSocket.close_linger attribute
This patch removes unused close_linger attribute. Even if this value
will be ever needed, it can always be obtained via getsockopt.

Change-Id: I30a6f0876836d77d7cbf700a8035d9341810b959
2016-09-09 00:07:30 +03:00
Jenkins
adf8add040 Merge "[zmq] Make ZMQ TCP keepalive options configurable" 2016-09-08 09:12:31 +00:00
Jenkins
7cac918e73 Merge "[AMQP 1.0] Make the default settlement behavior configurable" 2016-09-07 22:03:28 +00:00
Jenkins
a3f1a0a685 Merge "[zmq] Make ThreadingPoller work with ZmqSocket" 2016-09-07 14:26:15 +00:00
Jenkins
a4c6bac930 Merge "[zmq] Fix TestZmqAckManager periodic failure" 2016-09-07 13:58:56 +00:00
Gevorg Davoian
b5c82e97d7 [zmq] Make ZMQ TCP keepalive options configurable
Change-Id: Ib59c63b5dbbf74963b9c14dbabef03f35a42880c
2016-09-07 11:45:43 +00:00
Jenkins
4169807bf3 Merge "[zmq] Rename rpc_cast_timeout option" 2016-09-07 05:56:35 +00:00
Gevorg Davoian
09816f0451 [zmq] Fix TestZmqAckManager periodic failure
Change-Id: I011b80ae2db094cd34615b80e71a6545833d8ace
Closes-Bug: #1617560
2016-09-06 17:53:05 +03:00
Gevorg Davoian
3aa59828f9 [zmq] Make ThreadingPoller work with ZmqSocket
This patch makes zmq-driver-pollers work only with
zmq-driver-sockets since the lower-level zmq-socket class
have to be used only as an underlying implementation
for the higher-level zmq-driver-socket class.

Change-Id: Icb6fe89a3af7af6760b724a313ad2a7fb2a106c7
Closes-Bug: #1620543
2016-09-06 15:20:19 +03:00
Jenkins
0706361141 Merge "Fix notify filter when data item is None" 2016-09-05 06:29:42 +00:00
tengqm
3cdfe15897 Fix notify filter when data item is None
When data[k] is None during match check, we are getting annoying
TypeError exceptions like: "TypeError: expected string or buffer".
This patch adds a check that data[k] is something the regex can do
matching.

Change-Id: I75c8f602a59a90aeb5a6973f2e9e25708194ad78
2016-09-03 14:45:44 +00:00
Gevorg Davoian
c2e5645e8c [zmq] Rename rpc_cast_timeout option
This patch renames the rpc_cast_timeout option, because it is
missleading and actually is only used as zmq.LINGER socket option.

Change-Id: Ia7b6fc1213280e93940b34b087ce0e3672d50304
2016-09-03 11:28:27 +00:00
Jenkins
dbcd48a8ea Merge "Update reno for stable/newton" 2016-09-01 05:40:39 +00:00
Jenkins
d6f206c246 Merge "[AMQP 1.0] Add Acknowledgement and Batch Notification Topics" 2016-08-31 19:34:57 +00:00
Andrew Smith
c5d142b441 [AMQP 1.0] Update setup test environment dispatch router backend
This commit updates the setup environment for the driver functional
tests to support either a qpidd (broker) or qdrouterd (router)
backend.

This patch:
* configures and runs either qpidd or qdrouterd backend
* removes support of older qpidd versions
* skips batch notification test for qdrouterd backend

Change-Id: Ifcdc187bae4a28dd29c1faa73e239d7e4d77015d
2016-08-31 13:14:36 -04:00
Jenkins
5cb675a2c6 Merge "[zmq] Proxy has to skip broken multi-part message" 2016-08-31 16:31:45 +00:00
Jenkins
4723011f20 Merge "Allow dispatcher to restrict endpoint methods." 2016-08-31 10:16:12 +00:00
Jenkins
d8c6bf7b7c Merge "[kafka] invoke TypeError exception when 'listen()' method of KafkaDriver is called" 2016-08-31 08:51:26 +00:00
Paul Vinciguerra
d3a8f280eb Allow dispatcher to restrict endpoint methods.
Implements access_policy for dispatcher to restrict endpoint methods.

Implements the following access policies:
* LegacyRPCAccessPolicy
* DefaultRPCAccessPolicy
* ExplicitRPCAccessPolicy

* Implement decorator @rpc.expose for use with the
 ExplicitRPCAccessPolicy

* Modify get_rpc_server to allow optional access_policy argument
* Set default access_policy to LegacyRPCAccessPolicy (Nova exposes
 _associate_floating_ip in tempest tests). Added debtcollector
 notification.
* Add test cases for access_policy=None
* Clarify documentation

Change-Id: I42239e6c8a8be158ddf5c3b1773463b7dc93e881
Closes-Bug: 1194279
Closes-Bug: 1555845
2016-08-30 20:32:35 -04:00
Jenkins
fcf114294b Merge "[zmq] Add --log-file option to zmq-proxy" 2016-08-30 15:59:02 +00:00
Andrew Smith
e451a9e79d [AMQP 1.0] Add Acknowledgement and Batch Notification Topics
Explain difference in message acknowledgement for intermediary
types and relationship to use of batch notification.

Change-Id: I5877d143c55ae6ac23bf79856fef94e7b14cb722
2016-08-30 10:50:39 -04:00
Jenkins
4d914c1b5e Merge "[zmq] Update ZMQ-driver documentation" 2016-08-30 02:46:43 +00:00
Doug Hellmann
e4f22c91f0 Update reno for stable/newton
Change-Id: I7761e3025cc312c72a26d53c0bf0519ed0245cdf
2016-08-29 16:07:34 -04:00
Hiroyasu.OHYAMA
204dfa7d84 [kafka] invoke TypeError exception when 'listen()' method of KafkaDriver
is called

The interface of BaseDriver which is a super-class of each underlying
transport driver has been changed.
But the interface of kafka driver doens't follow up this change. So if a
user chose it as a transport driver, an exception of TypeError would be
occurred.
This change corrects the interface in kafka's driver along with the
BaseDriver's one.

Change-Id: Iedd069b7f083e2cbf377f4148411f77ad758f979
Closes-Bug: #1616755
2016-08-29 16:02:33 +09:00
Jenkins
661b12604f Merge "Avoid sending cast after server shutdown in functional test" 2016-08-28 19:12:43 +00:00
ozamiatin
68669484bf [zmq] Proxy has to skip broken multi-part message
If received message is malformed all it's parts should be skipped
at once, so we will not receive them on next iterations.

Change-Id: I5d95a46696ea3190a58c89c3b78eaf57911baa9e
Closes-Bug: #1617566
2016-08-28 11:22:12 +03:00
Haifeng.Yan
799bd0e103 Add Documentation String for PikaDriver
In this patch add documentation string for PikaDriver to let users
understand pika driver better.

Change-Id: I00293cf671ba74e8707abb2d4e47fa7a3f45a891
Implements: bp rabbit-pika
2016-08-26 04:53:46 +08:00
Jenkins
41564c40bd Merge "[zmq] Implement retries for unacknowledged CALLs" 2016-08-25 13:35:14 +00:00
Jenkins
ec5fbe8225 Merge "[zmq] Eliminate GreenPool from GreenPoller" 2016-08-25 02:35:28 +00:00