2536 Commits

Author SHA1 Message Date
Kenneth Giusti
a84c946767 No longer allow redundant calls to server start()
This has been deprecated since before Ocata.

Change-Id: I659cc690c0a5d4f82349c7c4882c34c9c82e8a8a
Closes-Bug: #1712397
2018-07-03 13:43:40 -04:00
Kenneth Giusti
ae9e673887 Fix the bandit security linter test
Add the bandit security linter test to the pep8 target

Change-Id: I9324b9d9df77fd05c2e10bb48d7ccf8b4c634525
2018-07-02 13:16:11 -04:00
Dougal Matthews
044e6f20e6 Replace 'raise StopIteration' with 'return'
With PEP 479, the behaviour of StopIteration is changing. Raising it to
stop a generator is considered incorrect and from Python 3.7 this will
cause a RuntimeError. The PEP recommends using the return statement.

More details: https://www.python.org/dev/peps/pep-0479/#examples-of-breakage

Change-Id: Ib27581fccbbf14c082fb919d8b6edea1ac83e3c0
2018-06-29 14:39:46 +01:00
Steve Kowalik
5de0494739 Remove fake_rabbit configuration option
The fake_rabbit configuration option has been deprecated since the
release of 1.5.0 in late 2014. Finally remove it, and its test.

Change-Id: I014c2012cca0f289de0d95b9bb35bbde7f61d2ee
2018-06-26 15:49:27 +10:00
melissaml
648ad56c86 Add release notes link to README
Change-Id: I082305a2e11e26115271322b49b3f9b2e79e3dd0
2018-06-21 13:16:36 +08:00
Kenneth Giusti
8cc258b93c Add ZeroMQ deprecation release note
Change-Id: I32d36c986567646d9e470ce417b3e04776197e94
2018-06-15 15:27:49 -04:00
Zuul
d666aa8f03 Merge "Fix oslo messaging gating" 6.5.0 2018-06-14 22:05:33 +00:00
Mehdi Abaakouk
0e2e50aad8 Fix oslo messaging gating
This change fixes the oslo.messaging gate for rabbit/amqp1/kafka.

Change-Id: I7c80b89231ca0a6a9e38aecc9e744da5d7227f00
2018-06-14 12:46:08 +02:00
Kenneth Giusti
684e3f0e41 Enable RPC call monitoring in AMQP 1.0 driver
The call monitoring feature was introduced in commit
b34ab8b1cc9f4d513a2927c102dbbe82031d9c2a for RabbitMQ.  This patch
enables the feature on the AMQP 1.0 driver - currently the only other
driver that supports RPC.

Change-Id: Ic787696852690b59779fb4716aec1e78c48bbe6a
2018-06-13 11:01:38 -04:00
Kenneth Giusti
42f0358d5d Mark the ZeroMQ driver deprecated
As per the Dublin 2018 PTG decision:

http://lists.openstack.org/pipermail/openstack-dev/2018-March/128055.html

Change-Id: I1cda5dffbc29aad5fea001a79562db7c144a339b
2018-06-11 15:11:31 -04:00
Zuul
e0835c5ba8 Merge "fix tox python3 overrides" 2018-06-08 13:59:07 +00:00
Doug Hellmann
87cafdf804 fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: I02ef155ef47a5eaddf9de902ad3608bee677fbcf
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-06-07 17:40:38 -04:00
Zuul
9180695784 Merge "Correct usage of transport_url in example" 2018-06-06 20:07:32 +00:00
TommyLike
7188835890 Add warning output if failed to rebuild exception when deserialize
In some specific cases, the middleware would fail to rebuild
the original exception, see bug [1] below. Adding this output
may help locate the root cause quickly.

[1]: https://bugs.launchpad.net/cinder/+bug/1728826

Change-Id: Ia9304bda4e515812b146885f830e70f28a285f2d
2018-06-06 14:04:40 +08:00
Steve Kowalik
93280347ab Correct usage of transport_url in example
The example usage of transport_url in ConfFixture was not corrected when
the rest of the code was switched to using 'fake:/' for transport_url.
Since other projects will refer to this example to review changes, it
should be correct.

Also change the transport URLs used in test_transport to correspond to
the correct way of specifying virtual hosts.

Change-Id: If8e0a869e02fda2d8d2c86d82ef83ffc3a4361e4
2018-06-06 10:48:45 +10:00
Steve Kowalik
7e4ca449a0 Add ConfFixture.transport_url
As the first step towards removing rpc_backend, we need all of the test
fixtures to stop setting/using it via ConfFixture.transport_driver. Add
ConfFixture.transport_url, and move the tests over to setting it rather
than transport_driver.

Partial-Bug: #1712399
Change-Id: I6e2ae2b511fdc52790d5755a9aecaf2f427ab706
2018-06-01 11:45:12 +10:00
Zuul
fe6e031be3 Merge "Convert legacy zuul jobs to v3" 2018-05-18 09:06:10 +00:00
Kenneth Giusti
037abd3210 Convert legacy zuul jobs to v3
This patch converts the devstack tempest-based jobs to Zuulv3.

Change-Id: Ic20b7632ee314b51e12f37480476a6bdd72006bf
Partial-Bug: #1768049
2018-05-11 09:38:50 -04:00
Dan Smith
b34ab8b1cc [rabbitmq] Implement active call monitoring
This adds an optional call_monitor_timeout parameter to the RPC client,
which if specified, will enable heartbeating of long-running calls by
the server. This enables the user to increase the regular timeout to
a much larger value, allowing calls to take a very long time, but
with heartbeating to indicate that they are still running on the server
side. If the server stops heartbeating, then the call_monitor_timeout
takes over and we fail with the usual MessagingTimeout instead of waiting
for the longer overall timeout to expire.

Change-Id: I60334aaf019f177a984583528b71d00859d31f84
2018-05-09 10:08:37 -07:00
Dan Smith
d38ad3e465 Make oslo.messaging-devstack-amqp1 job non-voting
Change-Id: I9011017e818da0d01f6c58b9dc402e81584c83ba
2018-05-09 10:08:37 -07:00
Zuul
8214e924fc Merge "Remove stale pip-missing-reqs tox test." 2018-05-01 18:30:28 +00:00
Zuul
4d03b16334 Merge "Add heartbeat() method to RpcIncomingMessage" 2018-05-01 16:49:07 +00:00
Kenneth Giusti
f08cd5534f Remove stale pip-missing-reqs tox test.
pip_check_reqs tool is no longer maintained and has broken with
release 10 of pip

Change-Id: Ic4b42ed54d4d276c65ad2fa37f316c43d9c71ffb
2018-04-30 11:55:12 -04:00
James E. Blair
2b55d6c160 Add a skeleton for a v3-native devstack job
Change-Id: Ib0b12cdc8b59c77b06d527268194d4599b24e71a
Depends-On: https://review.openstack.org/549252
2018-04-25 06:57:33 -07:00
Zuul
201aba52e6 Merge "Add kafka for python 3 functional test" 2018-04-25 04:18:56 +00:00
Dan Smith
930e6189e2 Add heartbeat() method to RpcIncomingMessage
This adds a heartbeat() method to RpcIncomingMessage to be used by a
subsequent patch implementation of active-call heartbeating. This is
unimplemented in all drivers for the moment.

Change-Id: If8ab0dc16e3bef69d5a826c31c0fe35e403ac6a1
2018-04-24 07:35:56 -07:00
Tovin Seven
d1f241a410 Trivial: Update pypi url to new url
Pypi url changed from [1] to [2]

[1] https://pypi.python.org/pypi/<package>
[2] https://pypi.org/project/<package>

Change-Id: I1cee400bc9dce4f02235e519833b05bb0f4e500d
2018-04-20 17:12:43 +07:00
Andrew Smith
5f4755b92b Add kafka for python 3 functional test
Change-Id: I743cd09e3450fac215ff65db37c3fe53e2e43601
2018-04-17 14:05:20 -04:00
Zuul
3503cf687e Merge "Update kafka and dsvm jobs" 2018-04-16 20:17:51 +00:00
Kenneth Giusti
1231c4cbf2 Move requirements for the optional drivers (amqp1, kafka)
Move the requirements for the optional drivers to
test-requirements.txt and setup.cfg.  The default rabbitmq driver's
dependencies should be the only hard requirements for the base
package.

Leaving ZeroMQ deps unchanged for now as it will be removed in Stein

Change-Id: I19dd699ccf87e43202ccefb99258fbaa9ea17b7e
2018-04-16 10:38:07 -04:00
Kenneth Giusti
629d449bbb set default python to python3
Set the default python to python3 except for the py27 specific test
environments. Set Python 2.7 as the python version to use for these
tests.

Temporarily ignore optional driver requirements for now. This will be
addressed in a later update.

Change-Id: Iea8e48b72234bb9a580f2345396cf60fe2022618
2018-04-13 11:02:23 -04:00
Doug Hellmann
e67bafd526 fix lower constraints and uncap eventlet
Fix the lower constraints to match the expected values.

We will manage the eventlet version using constraints now. See the
thread starting at
http://lists.openstack.org/pipermail/openstack-dev/2018-April/129096.html
for more details.

Change-Id: I61d5680182c53774713ee83808b1f6e7a4fba9ff
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-04-12 10:46:33 -04:00
Zuul
b0776c515d Merge "Add restart() method to DecayingTimer" 6.1.0 2018-04-04 00:12:43 +00:00
Zuul
cb80475c3d Merge "update configuration for qdrouter v1.0.0" 2018-04-04 00:12:42 +00:00
Wonil Choi
e0e8a1ea68 Revert "rabbit: Don't prefetch when batch_size is set"
This reverts commit c881baed29db49c5710795496cb07907e35ceaba.

Eventhough batch_size is set, rabbitMQ prefetch count is not changed
at the first time of connection creation. It works only connection reset
cases(i.e. rabbitMQ restart). So this patch can not fix original issue
  https://bugs.launchpad.net/ceilometer/+bug/1551667

Moreover, it makes another bug that messages of sameple queues are not
consumed properly. So revert it.

Change-Id: Ia8ebee8e2a670e46b6a68859bc30e717bd56ed7e
Signed-off-by: Wonil Choi <wonil22.choi@samsung.com>
Closes-bug: 1759755
2018-04-02 10:36:33 +00:00
Andrew Smith
865ab522cb Update kafka and dsvm jobs
Depends-On: I3232378790cff0a956db204e99e34337bbe019ff
Change-Id: I913dde81a83937b355019abc428d21d44882a98f
2018-03-30 08:45:24 -04:00
Zuul
f7c8e7bfc1 Merge "Updated from global requirements" 2018-03-29 07:01:59 +00:00
Zuul
6cac4c3fad Merge "add lower-constraints job" 2018-03-29 06:45:42 +00:00
Zuul
415e9b991b Merge "remove zmq tests" 2018-03-27 19:35:04 +00:00
Zuul
ba9630707c Merge "Restore devstack project name in amqp1 test" 2018-03-27 17:58:34 +00:00
Doug Hellmann
7326192b96 add lower-constraints job
Create a tox environment for running the unit tests against the lower
bounds of the dependencies.

Create a lower-constraints.txt to be used to enforce the lower bounds
in those tests.

Add openstack-tox-lower-constraints job to the zuul configuration.

See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.

Change-Id: I8991c2ab1c880c401fd807e38565258403af05e8
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-26 11:36:11 -04:00
Doug Hellmann
fca263c43c remove zmq tests
At the Rocky PTG the Oslo team decided to once again deprecate and
remove the ZMQ driver. This is the first part of doing that, which
removes the unit tests and extra functional test jobs, which are
failing.

Change-Id: Ia02adf122d2d4ff281e7c9fd3dff8894da241925
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-26 11:36:10 -04:00
OpenStack Proposal Bot
9e5ddb2fe4 Updated from global requirements
Change-Id: Ie79d1e4a364ec17c7a2524a095c852677e562c7f
2018-03-25 22:32:26 +00:00
Kenneth Giusti
222a939361 Remove the deprecated Pika driver
It is recommended that all users of the Pika driver transition to
using the Rabbit driver instead.  Typically this is done by changing
the prefix of the transport_url configuration option from "pika://..."
to "rabbit://...".  There are no changes required to the RabbitMQ
server configuration.

Change-Id: I52ea5ccb7e7c247abd95e2d8d50dac4c4ad11246
Closes-Bug: #1744741
2018-03-21 10:58:23 -04:00
Kenneth Giusti
0608fe2d5b update configuration for qdrouter v1.0.0
Change-Id: I20637c51d5ae4a96f1de9ea6e2a50891adaca52a
2018-03-20 16:42:32 -04:00
Zuul
dec178257b Merge "Modify grammatical errors" 2018-03-19 05:30:16 +00:00
OpenStack Proposal Bot
008f58335a Updated from global requirements
Change-Id: I9500a0d27953881cfad24d5542356c539353d6a7
2018-03-15 07:49:08 +00:00
Dan Smith
68c48ad0bb Add restart() method to DecayingTimer
This merely provides a restart() method that passes through to the existing
restart() method on the StopWatch used as the internal for DecayingTimer so
that we can reset it.

Change-Id: Ie6b607ec588db94e2c768bd22ae736a05ab484c1
2018-03-07 10:24:52 -08:00
OpenStack Proposal Bot
31fbe5bf59 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: If6a1cb9165815aa705f1939ec68bd375d157df55
2018-03-01 06:24:40 +00:00
Zuul
5d65ee6675 Merge "Add kafka config options for security (ssl/sasl)" 2018-02-25 19:12:12 +00:00