2212 Commits

Author SHA1 Message Date
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
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
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
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
Stephen Finucane
1251c0fef1 Use Sphinx 1.5 warning-is-error
With pbr 2.0 and Sphinx 1.5, the setting for treat sphinx warnings as
errors is setting warning-is-error in build_sphinx section. Migrate
the setting from the old warnerrors one.

The history document is removed because some of the commit messages used
in ChangeLog were being identified as invalid markup and there doesn't
appear to be anyway to edit there retroactively nor disable warnings on
a specific file.

Change-Id: I79e7ac56d5af1151865686761f3d40a11efbf472
2017-03-16 15:22:18 +00:00
Stephen Finucane
06c993d550 tox: Build docs with Python 2.7
The 'list-modules' directive used in some docs does not appear to be
Python 3 compatible, yielding the following error:

  TypeError: unorderable types: NoneType() < str()

Simply use Python 2.7 until such a time as someone wants to investigate
why this happens.

Change-Id: I0be19b056e1c2272df3666626fbd17ec78017bce
2017-03-16 15:14:31 +00:00
Jenkins
2ee6a2a480 Merge "Remove self.mox" 2017-03-07 10:24:34 +00:00
Jenkins
d28b5ddf0b Merge "Updated from global requirements" 2017-03-07 08:58:24 +00:00
OpenStack Proposal Bot
3fce2e0171 Updated from global requirements
Change-Id: Ia0139a39a0328725f57c1364fcd9c8bd4a1a5d0c
2017-03-07 05:51:52 +00:00
Brant Knudson
1fb3956f44 Remove self.mox
No tests use this property.

Change-Id: Ifa740e59207a87890bb100cc035ec6088ac03dca
2017-03-07 03:41:16 +00:00
ChangBo Guo(gcb)
8cbca30afd Move decorator updated_kwarg_default_value to right place
debtcollector's decorator updated_kwarg_default_value is used to indicate
default value will be changed in future version. We introduced parameter
access_policy and add itfor constructor method of RPCDispatcher in
d3a8f280ebd6fd12865fd20c4d772774e39aefa2. Other services usually call
get_rpc_server method instead of calling constructor method of
RPCDispatcher. get_rpc_server method constructs RPCDispatcher instance
in [1], then FutureWarning will be generated even we set parameter
access_policy explicitly. Need move the decorator updated_kwarg_default_value
to method get_rec_server to avoid the case.

Closes-Bug: #1661572

[1] f1efaf1b6e/oslo_messaging/rpc/server.py (L200).

Change-Id: I3214045856d0bbd05a0000eeafb769e4697cd34c
2017-03-07 03:39:30 +00:00
Jenkins
7f990bfe5f Merge "Remove mox3 from test-requirements.txt" 2017-03-07 03:33:06 +00:00
Jenkins
4f7198597e Merge "Allow checking if notifier is enabled" 2017-03-06 18:30:03 +00:00
Jenkins
370acf1e40 Merge "[Fix gate]Update test requirement" 2017-03-06 15:40:04 +00:00
Matt Riedemann
afd4ecfb42 Remove old messaging notify driver alias
15cd99050c6d2714b90059e0faad9f9e3409eaaa added this alias
to workaround an issue with neutron using the internal
path in liberty. That was fixed in neutron in mitaka:

225663888e71d44e9732951f515da925b8799b74

The alias was left for liberty, but liberty is end of life
now so we can remove this.

Change-Id: I145921b98d48e03df38ebcbaebc1a4375911f9ff
2017-03-05 17:33:21 -05:00
Jenkins
8d42484e6f Merge "Validate the transport url query string" 2017-03-04 18:21:09 +00:00
ricolin
84faac2040 [Fix gate]Update test requirement
Since pbr already landed and the old version of hacking seems not
work very well with pbr>=2, we should update it to match global
requirement.
Partial-Bug: #1668848

Change-Id: I29b64d2f8d6e3305d052562f160050fdd05c2a55
2017-03-04 14:10:30 +00:00
OpenStack Proposal Bot
7bfbac5621 Updated from global requirements
Change-Id: If91d1a8a4ff9a120704360705b81b0d4422cae10
2017-03-04 01:51:17 +00:00
Jenkins
fa579b2adb Merge "RabbitMQ: Standardize SSL parameter names" 2017-03-04 00:12:05 +00:00
Balazs Gibizer
ed149bae81 Allow checking if notifier is enabled
Generating the payload of a notificatiton might be expensive due
to database access. This expensive step is unnecessary if the
notification driver is set to noop because it means that the
generated payload will not be sent.

This patch makes it possible for the user of the notifier to check
if the notifier will emit any notification before the payload
is generated.

Cinder already implemented similar behavior in
I77f655d3ef90088ce71304da5d4ea7b543991e90 and nova also plans
to do it in I3e6741d59df49e1e58409314008c2ed609fdedc1

Change-Id: Ib992f5c20fef85224fb00823e1d8d9c6cff19bec
2017-03-03 17:47:52 +01:00
Jenkins
104c1da138 Merge "rabbit: make ack/requeue thread-safe" 2017-03-01 17:21:49 +00:00
Jenkins
6c3cbf8091 Merge "Fix releasenotes" 2017-03-01 12:43:12 +00:00
Jenkins
6ba32511cf Merge "drivers: use common.ConfigOptsProxy everywhere" 2017-02-28 01:01:33 +00:00
Juan Antonio Osorio Robles
0c369cbcf6 RabbitMQ: Standardize SSL parameter names
This makes the SSL-related parameters to be similar to the ones used by
the AMQP and pika drivers. This will enable easier configuration of
these parameters if the transport URL is used. And easier migration from
one driver to the other when needed.

Change-Id: Ic32b2cb253fa0dc43aad7226b24919b7e588faa9
2017-02-27 16:00:10 +00:00
gord chung
94c818dc98 drop topic keyword from Notifier
we marked it for removal >=5.0.0

Change-Id: I4634c082c2383569c4aa8a6d9a8a560de7e3c12f
2017-02-27 14:13:11 +00:00
Mehdi Abaakouk
037dee19ed Validate the transport url query string
When driver load we allow to override option unrelated to the driver and
to set option useless for the driver.

This change validates the query string when the driver load to report as
soon as possible invalid options. And allow to override only option
of the driver option group (ie: [oslo_messaging_<driver_name>].

Related-bug: #1666903

Change-Id: Iaf23f773279c10bf37d545883ada7c2f6a9ffbbf
2017-02-27 13:10:31 +01:00