2234 Commits

Author SHA1 Message Date
OpenStack Proposal Bot
831cbf8ecd Updated from global requirements
Change-Id: Ic34a619440024e0f59f4e11fe6e248370995d5c7
2017-05-15 00:52:56 +00:00
Kenneth Giusti
8f5cfda664 Disable AMQP 1.0 SSL unit tests
Something broke in the way SSL certs are generated. Disable these
tests for now to unblock the gate.

Change-Id: I9764da7995c198597661ecbea27efba9f76e53e3
2017-05-12 11:11:50 -04:00
Jenkins
e569c92cd9 Merge "Fix notification tests not unmocking logging" 2017-05-03 20:29:40 +00:00
Jenkins
c8ee259bac Merge "Retry support for oslo_messaging_notifications driver" 2017-05-02 04:02:06 +00:00
Jenkins
8e5e5ab218 Merge "Remove use of mox stubs" 2017-04-28 17:47:53 +00:00
Dmitry Mescheryakov
eb4f5c4fa0 Fix notification tests not unmocking logging
Right now two tests mock logging module globally which leads to
another test failure (TestRoutingNotifier.test_notify_filtered)
on my env.

Change-Id: Ifa47ee96dae79ea44dbe17a2d125401589ff13dd
2017-04-28 19:17:50 +04:00
Jenkins
b3893c13bd Merge "Fix aliases deprecation" 2017-04-28 12:47:21 +00:00
Brant Knudson
4531490b05 Remove use of mox stubs
OpenStack projects should be using mock rather than mox.
oslo.messaging was using mox's stubs via oslotest rather than
mock.patch.object. The code is converted to use mock.patch.object
via fixtures.MockPatchObject.

Change-Id: I19490b4e8211c35b237ebfd38bf2f8b8b44cbf61
2017-04-28 18:31:46 +08:00
Jenkins
e2b5577266 Merge "tests: fix MultiStrOpt value" 2017-04-27 11:04:55 +00:00
Mehdi Abaakouk
7a6474662d Fix aliases deprecation
We log deprecation message even if application doesn't use it.
And we missing the parse method.

This change fixes that.

Change-Id: I476816cb14ac8218feb74e8459cfa5f18fdb6c61
2017-04-27 12:22:52 +02:00
Mehdi Abaakouk
4818fda46e tests: fix MultiStrOpt value
Last oslo.config was magically converting MultiStrOpt "messaging" to ["messaging"],
that was not expected, oslo.messaging have a test that use "messaging"
instead of a list.

This change fixes that.

Change-Id: I65b8cc551dde6f80d979640ba3db097572f3fe9b
2017-04-27 08:46:24 +02:00
Jenkins
03e040b610 Merge "Try to fix TestSerializer.test_call_serializer failed randomly" 2017-04-27 06:41:58 +00:00
Jenkins
eef025d619 Merge "[AMQP 1.0] Add default SASL realm setting" 2017-04-25 12:30:32 +00:00
Elancheran Subramanian
cc406e4edc Retry support for oslo_messaging_notifications driver
When the underlying RPC is configured with rabbit along
with oslo_messaging_notifications, currently the retry is
not supported. There are retry support specific to drivers,
it's better to have the support uniform across the drivers,
by adding configuration retry on the oslo_messaging_notifier.

Closes-bug: 1666364

Change-Id: I8d547ef2a9e8b086f94a1efca17735f3f3cdaac1
2017-04-18 11:53:19 -07:00
Jenkins
83e738c2fd Merge "Optimize the link address" 2017-04-17 18:43:33 +00:00
Jenkins
2461f0b4ed Merge "Remove usage of parameter enforce_type" 2017-04-15 15:12:36 +00:00
Kenneth Giusti
3b53605bad [AMQP 1.0] Add default SASL realm setting
Change-Id: I2ac680bb9b594f0493dfb6d52c3f40bf5282dec7
Closes-Bug: 1681927
2017-04-13 13:46:11 -04:00
Jenkins
094f5076f2 Merge "Deprecate username/password config options in favor of TRANSPORT_URL" 2017-04-13 14:43:58 +00:00
OpenStack Proposal Bot
c074efbaf7 Updated from global requirements
Change-Id: Idabf4c8204d6df8a13749151405ac338b38e32ba
2017-04-12 04:20:09 +00:00
ChangBo Guo(gcb)
4af9127cb6 Remove usage of parameter enforce_type
We deprecate and change parameter enforce_type's default value
to True[1], so don't need usage enforce_type.

[1] https://review.openstack.org/328692

Change-Id: Ib89cb9bc8afa13e13350e80ec9210ab9e878201f
2017-04-11 14:32:53 +08:00
Jenkins
058395bc5e Merge "[zmq] Prevent access to rpc_response_timeout" 2017-04-10 10:17:49 +00:00
loooosy
0f349f8185 Optimize the link address
Use https instead of http to ensure the safety without containing our
account/password information

Change-Id: I0ffb9e2270bbae844c187fdc17610e7805553d66
2017-04-08 22:39:02 +08:00
Jenkins
02cbb6d346 Merge "Use Sphinx 1.5 warning-is-error" 2017-04-06 12:58:37 +00:00
Jenkins
3444bbf028 Merge "tox: Build docs with Python 2.7" 2017-04-06 12:58:24 +00:00
Jenkins
9dc74599da Merge "Updated from global requirements" 2017-04-05 16:12:59 +00:00
Thomas Bechtold
f0b4baa707 Mock 'oslo_messaging.notify._impl_routing.LOG' in notifier tests
When running the tests with concurrency=1, 2 tests fail with:

  AttributeError: Mock object has no attribute 'debug'

and

  AssertionError: Expected 'notify' to be called once. Called 0 times

Mocking the LOG object solves the problem.

Change-Id: Ie7f4448a103fae448123a05bc92e961aac00d6ec
Closes-Bug: #1660393
2017-04-04 09:09:20 +02:00
OpenStack Proposal Bot
4993f011d2 Updated from global requirements
Change-Id: I7fe4a3b0d1d0e925834237866b478260e9313d05
2017-04-03 21:58:21 +00:00
Jenkins
e1f718d53a Merge "Add "ssl" option for amqp driver" 2017-04-03 17:52:21 +00:00
Jenkins
1b2c456383 Merge "remove all kombu<4.0.0 workarounds" 2017-04-03 16:25:53 +00:00
Jenkins
62a9370607 Merge "Break user credentials from host at the rightmost '@'" 2017-04-03 16:25:47 +00:00
Juan Antonio Osorio Robles
bf1cdafd03 Add "ssl" option for amqp driver
This uses the underlying x-ssl option that will attempt an SSL
connection to the server using the system's CA bundle.

Change-Id: I73f3b43b4ebc0c4ce4c0ba43b5a84361fb308686
2017-04-03 17:23:17 +03:00
ChangBo Guo(gcb)
06049ba602 Refactor logic of getting exector's executor_thread_pool_size
* add application scenario to help of config option
  'executor_thread_pool_size'
* Move eventlet patched checking to constructor

Change-Id: I9dc7c993c8947b51952365cc5e7b6f2daae6bb70
2017-04-03 05:16:27 +00:00
gord chung
631ade59bc remove all kombu<4.0.0 workarounds
we lower cap at kombu>=4.0.0 so no need to support kombu3 stuff

Change-Id: I4c3bc4de6026b089fffae7ae4d34f718d45cb972
2017-03-30 12:32:58 +00:00
Jenkins
093afc2455 Merge "Deprecate parameter aliases" 2017-03-30 11:43:32 +00:00
Jenkins
58e9e7b0e1 Merge "serializer: remove deprecated RequestContextSerializer" 2017-03-30 00:13:50 +00:00
Jenkins
6f73ccdcfc Merge "Fix simulator's use of Notifier - use 'topics' not 'topic'" 2017-03-29 17:22:31 +00:00
Jenkins
c16b308715 Merge "[zmq] pass a dummy TransportURL to register_opts" 2017-03-29 17:03:55 +00:00
Jenkins
3525e35d37 Merge "Trivial: Add executor 'threading' in docstring" 2017-03-29 12:18:21 +00:00
ChangBo Guo(gcb)
914b529000 serializer: remove deprecated RequestContextSerializer
We deprecated RequestContextSerializer in 404bebcca and
it's not used by any project, so we can remove it safely now.

Change-Id: I0300f5d2aaa85d515c0437e0e69399b9f5bad09a
2017-03-29 16:21:17 +08:00
ChangBo Guo(gcb)
8253617168 Try to fix TestSerializer.test_call_serializer failed randomly
dict doesn't seem always keep order on Python. we have two separate part
to prepare test data[1], calling 'for k, v in self.args.items()' and
'for arg in self.args:' may get data in different order.

This commit makes we collect test data in same order.

Change-Id: I49f0d1b9aed110ad1e59140fd70760682e944d74
Related-Bug: #1677151
2017-03-29 16:13:35 +08:00
Jenkins
2cc4c29577 Merge "Add HACKING.rst" 2017-03-29 07:55:33 +00:00
OpenStack Proposal Bot
71ce6929cf Updated from global requirements
Change-Id: I20b3921d23894962a3b7f83b843c326647b418ec
2017-03-28 21:36:21 +00:00
ChangBo Guo(gcb)
878d9583d9 Deprecate username/password config options in favor of TRANSPORT_URL
The transport_url configuration value provides the username and
password, making the AMQP 1.0 driver's configuration instances of
username and password redundant.

Change-Id: If87d3efe616847625c5ab1329c61f1ad4c421a16
Closes-Bug: #1663721
2017-03-24 17:01:30 +08:00
ZhongShengping
160b85aeef Add HACKING.rst
Change-Id: Ia5a34927c997ec75562a4db45d99ef8f0016e191
2017-03-24 10:22:41 +08:00
Kenneth Giusti
d7775859b4 Break user credentials from host at the rightmost '@'
The rightmost '@' in a url netloc field separates the user:password
from the hostname:port.  Using the first may cause the separation to
occur in the username or password field (if unencoded).

Change-Id: I7b02d8e0cbdf875ea80a55065ce98fa73696e05f
Closes-Bug: 1675423
2017-03-23 15:36:27 -04:00
Kenneth Giusti
34e326f5aa [zmq] Prevent access to rpc_response_timeout
rpc_response_timeout is not present when sending notifications. All
RPC call requests have a timeout attribute - use that.  In the case
where there is no timeout, use retry value if present.

Change-Id: I27a3dd0962a06f15e85e9c9c8c24aa7786c71056
Closes-Bug: 1675510
2017-03-23 13:47:33 -04:00
Kenneth Giusti
e12edd9887 [zmq] pass a dummy TransportURL to register_opts
zmq_options.register_opts() requires a TransportURL in the parameter
list.  This patch creates an empty TransportURL and passes it since
there is no actual URL available.

Change-Id: I5954e430eedc5904594ee3be49d460de4b99d89a
Closes-Bug: #1675425
2017-03-23 10:15:50 -04:00
Kenneth Giusti
7ebf500ec5 Fix simulator's use of Notifier - use 'topics' not 'topic'
Change-Id: Id315418fcf517734b8136f8177c82951658fe794
Closes-Bug: 1673890
2017-03-20 11:25:17 -04:00
ChangBo Guo(gcb)
abc269b7e5 Trivial: Add executor 'threading' in docstring
oslo.messaging supports three types of executors: blocking, eventlet
and threading, so it's good to list all of them in docstring.

Change-Id: Ief14d54b5f029cf3e9c79334e405dca5cf2dc13d
2017-03-20 17:24:32 +08:00
ChangBo Guo(gcb)
5a7dcadc94 Deprecate parameter aliases
oslo.messaging deprecated transport aliases[1] since 5.2.0+
that is the minimal version supported for stable/newton.
This commit deprecates aliases kwargs of TransportURL() and
get_transport(), then we can remove the parameter aliases
in the future version.

Related-Bug: #1424728

[1]I314cefa5fb1803fa7e21e3e34300e5ced31bba89

Change-Id: I0c96979dacd9eb05b4215c687b5e34e7b3475ddb
2017-03-20 17:01:01 +08:00