Commit Graph

193 Commits

Author SHA1 Message Date
Zuul 98f4f81186 Merge "Bump bandit" 2024-01-23 13:23:08 +00:00
Jay Faulkner 800c58826e Utilize the new RequestContext redacted_copy method
We now expect context objects to support returning a redacted copy of
themselves.

As a related cleanup, removed the practice entirely of using
dictionaries to represent contexts in unit tests and the logging driver.

As part of developing this change, I discovered code in Glance (and
potentially other services) which explicitly pass {} in lieu of a
context when notifying; so we now properly handle dictionaries as
contexts.

To ensure we have the method required; require oslo.context 5.3.0 or
newer.

Change-Id: I894f38cc83c98d3e8d48b59864c0c7c2d27e7dcd
2024-01-16 12:08:20 -08:00
Stephen Finucane 03dcc3c79a Bump bandit
Use a more recent version because why not.

Change-Id: I41538fd85956780250e3b7440130381151991b9c
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2022-04-05 17:23:07 +01:00
Ching Kuo bdbb6d62ee Add Support For oslo.metrics
This commit added support to send rpc metrics to oslo.metrics.

Changes includes:
- Adding client wrapper for oslo.metrics to process metrics information
  and send to oslo.metrics socket
- Modify rpc client to send metric when certain rpc events happens

For more information on oslo.metrics
https://opendev.org/openstack/oslo.metrics

Change-Id: Idf8cc0e52ced1f697ac4048655eff4c956fd5c79
2021-06-08 22:22:37 +08:00
Ghanshyam Mann a21c96ec0e [goal] Migrate testing to ubuntu focal
As per victoria cycle testing runtime and community goal[1]
we need to migrate upstream CI/CD to Ubuntu Focal(20.04).

Fixing:
- bug#1886298
Bump the lower constraints for required deps which added python3.8 support
in their later version.

Story: #2007865
Task: #40207

Closes-Bug: #1886298

[1] https://governance.openstack.org/tc/goals/selected/victoria/migrate-ci-cd-jobs-to-ubuntu-focal.h>

Change-Id: Id6b499239fa8b6480c5f67d460215ab458677c6d
2020-09-10 00:46:55 +00:00
Andreas Jaeger e44c988306 Remove six usage
Remove six, the python 2/3 compatibility library. It's not needed
anymore since the repo is python3 only.

Remove a now unneeded hacking test.

Change-Id: I40522c4accb4aaf8115d11fee8b081e2d991cb4d
2020-05-11 10:21:58 +02:00
Sean McGinnis c1768401f7
Remove monotonic usage
The monotonic package was needed for monotonic time operations when
running under Python runtimes older than 3.3. Since we now only support
versions higher than this, this third party package requirement can now
be removed.

Change-Id: I598530b3f417964ff697b48e681b135bd119ae81
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-05-04 17:02:44 -05:00
John Eckersberg d873c0d8f5 Do not use threading.Event
Waiting on a threading.Event with eventlet can cause busy looping via
epoll_wait, see related bug for more details.

Change-Id: I007613058a2d21d1712c02fa6d1602b63705c1ab
Related-bug: #1518430
2019-12-18 13:11:41 +00:00
Eyal c8d6fed762 Make sure minimum amqp is 2.5.2
amqp fixed a bug in 2.5.2 that is needed
also update kombu to support amqp 2.5.2

see 
https://review.opendev.org/#/c/693704/
86cb254dce


Change-Id: I4b72d8feb85c2b9b4657510c356cd21e22fe40c2
Closes-bug: #1852058
2019-11-18 15:05:33 +00:00
Gabriele c50076b4ef
Implement mandatory flag for RabbitMQ driver
With this feature it is possible to use the mandatory RabbitMQ
mandatory flag.

Implements: blueprint transport-options (point 3)

The blueprint link is [1]

Please follow the link [2] to use and test the feature.

1- https://blueprints.launchpad.net/oslo.messaging/+spec/transport-options
2- https://github.com/Gsantomaggio/rabbitmq-utils/
tree/master/openstack/mandatory_test

Change-Id: Ie269fc08ba80c4b94a24a8207c1e86c19c3b3fcb
2019-07-01 21:38:32 +02:00
Hervé Beraud 4f385720d7 Remove log translation and i18n
Log messages are no longer being translated. This removes all use of
the _LE, _LI, and _LW translation markers to simplify logging and to
avoid confusion with new contributions.

Change-Id: I9ddb6595fc52e46ed8844e39d2fa71029c90b65c
Closes-Bug: #1674567
2019-04-24 11:55:38 +02:00
mb 64f74cd2cc Bump amqp requirement version to >=2.4.1
Bumping the version of amqp in requirements.txt and
lower-constraints.txt from 2.4.0 to 2.4.1 to mitigate issues with
MessagingTimeouts when using TLS due to a amqp bug that was fixed in
2.4.1

Change-Id: I0b094f32dec24c70f95ccd509164a14a71fcfc7d
Closes-Bug: #1800957
2019-02-18 18:29:26 +01:00
Kenneth Giusti 0a784d2604 Bump amqp requirement version to >= 2.4.0
See http://lists.openstack.org/pipermail/openstack-discuss/2019-January/001998.html

Closes-Bug: #1813029

Change-Id: I4ef3d1184fd593f4acd090395579d91e093dd82c
2019-01-24 16:28:43 -05:00
Andy Smith 252844879d Don't use monotonic with Python >=3.3
A change to the global-requirements has limited use of monotonic
library to Python versions earlier than 3.3 (later versions have
built-in support for a monotonic clock), so limit it in
requirements.txt.

Note: this patch updates kafka driver (due to deprecated exception
in library) in order to pass unit tests

Change-Id: Id6b0814e05a0e548a8c2a5359daf1a6878cf6859
2018-12-03 14:52:49 -05:00
Andy Smith f2fd8d4375 Remove the deprecated ZeroMQ driver
Users of the oslo.messaging RPC communications service must use
the rabbit ("rabbit://...") or AMQP 1.0 ("amqp://...") drivers.

Change-Id: If3474142f1fe99d41d7b4466061ed0e23ca38549
Closes-Bug: 1789259
2018-08-28 16:00:50 -04:00
Daniel Alvarez 7dc7684311 Bump py-amqp to >= 2.3.0
Due to the bug below we want to have py-amqp>=2.3.0 so that connecting
to rabbit endpoints don't timeout when relying on /etc/hosts entries.
Closes-Bug: 1780992

Change-Id: Ia2c1114cb0f8d480695197714f7c6293751430dd
2018-07-11 15:22:21 +02: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
OpenStack Proposal Bot 008f58335a Updated from global requirements
Change-Id: I9500a0d27953881cfad24d5542356c539353d6a7
2018-03-15 07:49:08 +00:00
OpenStack Proposal Bot 95e98a98f1 Updated from global requirements
Change-Id: Ieee5fa811e69e7ae4f597ce361319758d8030bde
2018-01-24 02:16:24 +00:00
OpenStack Proposal Bot 0b42cfda14 Updated from global requirements
Change-Id: I5bc6a1ba5214d5f73fc61fd8b656d3c00b0ca193
2017-12-19 01:38:48 +00:00
OpenStack Proposal Bot 5d99ea8f05 Updated from global requirements
Change-Id: I370881ada05c29399f1351444544eaf28150c4d1
2017-11-29 09:15:12 +00:00
OpenStack Proposal Bot 709ee7989d Updated from global requirements
Change-Id: Id5276f0b18005af895cad852bedfdc7d8eb9b8e8
2017-11-16 11:21:28 +00:00
OpenStack Proposal Bot 8c129459a7 Updated from global requirements
Change-Id: Iea65ddb73a626c048411d85af2669a2e01819f66
2017-11-15 11:58:20 +00:00
OpenStack Proposal Bot d1e5cf2a77 Updated from global requirements
Change-Id: If146ea28a75593f6ef07a9088b87431881721c12
2017-11-13 10:26:39 +00:00
OpenStack Proposal Bot c2338ee325 Updated from global requirements
Change-Id: I1315cfd256afa17aaa3be3ae4a3a3f6ee5cbb564
2017-09-20 16:23:04 +00:00
OpenStack Proposal Bot 4226badc83 Updated from global requirements
Change-Id: I674e086307ef8785244a14fd4e83ffaedc927eb9
2017-09-11 21:47:08 +00:00
OpenStack Proposal Bot 501862b1d2 Updated from global requirements
Change-Id: I8b670cf0164078be22d16786c903b05013af5e77
2017-08-24 05:58:36 +00:00
OpenStack Proposal Bot 38d8bdcd19 Updated from global requirements
Change-Id: Ida4133ebeb4cc0cbfbd0e8ee62a52236dc4a0256
2017-08-18 11:40:06 +00:00
OpenStack Proposal Bot a931af6fd5 Updated from global requirements
Change-Id: I7b81c8def55f702b95204d727b95d879c441167e
2017-07-18 01:54:53 +00:00
OpenStack Proposal Bot 2fb4a216cc Updated from global requirements
Change-Id: Ib872e230f563ca2e1e3e67f9dabe13250735c9e7
2017-06-15 16:32:57 +00:00
OpenStack Proposal Bot d46f3cfdf9 Updated from global requirements
Change-Id: I1a4a507ba4077b8a8e2e4f1c4e7ac93158918b48
2017-06-02 02:35:03 +00:00
OpenStack Proposal Bot aa931f4fe7 Updated from global requirements
Change-Id: I65c767b4562d31cde8f77243eef018f8a4dbd769
2017-05-26 01:55:22 +00:00
OpenStack Proposal Bot dad5796cea Updated from global requirements
Change-Id: Ia57edf8d331b729072025c5622f8fd93295996a1
2017-05-23 11:58:01 +00:00
OpenStack Proposal Bot c074efbaf7 Updated from global requirements
Change-Id: Idabf4c8204d6df8a13749151405ac338b38e32ba
2017-04-12 04:20:09 +00:00
OpenStack Proposal Bot 4993f011d2 Updated from global requirements
Change-Id: I7fe4a3b0d1d0e925834237866b478260e9313d05
2017-04-03 21:58:21 +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
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
OpenStack Proposal Bot 71ce6929cf Updated from global requirements
Change-Id: I20b3921d23894962a3b7f83b843c326647b418ec
2017-03-28 21:36:21 +00:00
OpenStack Proposal Bot 7bfbac5621 Updated from global requirements
Change-Id: If91d1a8a4ff9a120704360705b81b0d4422cae10
2017-03-04 01:51:17 +00:00
OpenStack Proposal Bot 3e727ea715 Updated from global requirements
Change-Id: I1a5882d3fe0189ab3e651155681a1410c37d8a82
2017-02-16 23:17:36 +00:00
gord chung 5bacea1f42 support kombu4
- kombu4 wraps recoverable errors as OperationalErrors rather than
raising amqp errors
- also, raise a recoverable error and redeclare if for some reason a
message is double acknowledged... previously, this was hidden.
- ensure socket is not none
- use connect method to ensure connection

Depends-On: I9f980b51901ac31599b9651633956ad2eea6a1ac
Change-Id: I73958c8057353a2eefe1baaa7a41148193d507f7
2017-02-10 13:21:22 +00:00
Mehdi Abaakouk 31db9516c2 eventlet is no more a hard dependency
Change-Id: Ie386dea5cc4b9ff02dc2b638d2d6908c3cdad883
2017-01-04 08:10:56 +01:00
OpenStack Proposal Bot 64914790f4 Updated from global requirements
Change-Id: I6375d299c56fb3789c9d37276dc0a6adb6ec4de8
2016-12-28 09:15:07 +00:00
OpenStack Proposal Bot ea61a81014 Updated from global requirements
Change-Id: I35e0f9e78c31a7c68746401dcf289f8648ef7e6a
2016-12-17 20:48:42 +00:00
OpenStack Proposal Bot 2c3ae0af3c Updated from global requirements
Change-Id: Icdcb2a730f2e01d7c4aad42bf4cb1cc3e7876eff
2016-12-08 20:11:30 +00:00
OpenStack Proposal Bot 8efe0bea31 Updated from global requirements
Change-Id: Ib8c1fa32298caf654d706a839a23f605989e0a48
2016-11-09 23:03:04 +00:00
OpenStack Proposal Bot c961ba9295 Updated from global requirements
Change-Id: I195d860b550aeff473c1779fb83ed0cfc650cdf6
2016-11-06 02:05:50 +00:00
Gevorg Davoian 90125aa885 Replace retrying with tenacity
This patch replaces the legacy retrying library with the newer
and more convenient tenacity one, taking into account that:
1) retrying uses milliseconds for wait times, but tenacity uses seconds;
2) retrying has a lot of numeric arguments for specifying behaviour
of decorated functions, while tenacity has a few of them, which are
specialized objects, thus making the retry-decorator more flexible.

Change-Id: Ib6ecffe5d1cf292badbb9eb6db6260f17460f343
Closes-Bug: #1635399
2016-11-03 12:36:57 +00:00
OpenStack Proposal Bot b1b3677a75 Updated from global requirements
Change-Id: I1358feb2f87821e8a18ac8b77461df57fa2a6168
2016-11-02 22:00:00 +00:00