2880 Commits

Author SHA1 Message Date
Zuul
c058e79baf Merge "Do not un-patch threading" 2025-04-05 15:26:55 +00:00
Zuul
1d67be04bc Merge "Drop workaround for old oslotest version with six" 2025-04-01 11:21:52 +00:00
3a0b6cb981 Update master for stable/2025.1
Add file to the reno documentation build to show release notes for
stable/2025.1.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2025.1.

Sem-Ver: feature
Change-Id: Id2278102d62c048644203b2581bce999753ffad0
2025-03-14 17:59:15 +00:00
Takashi Kajinami
9d6f373bec Drop workaround for old oslotest version with six
We already removed usage of six globally so no longer need this
workaround.

Change-Id: I921dba57b291c9e551c8481032a56bae4453875e
2025-03-07 21:56:19 +09:00
Takashi Kajinami
e3ec37a360 Do not un-patch threading
Current un-patching causes conflict with a few other moduels such as
queue patched, which is causing undesired delays. Let's remove it to
use unpatched modules or patched modules consistently.

Co-Authored-By: Artem Vasilyev <artem.v.vasilyev@gmail.com>
Closes-Bug: #2098714
Change-Id: I3c5ce7cc399c76afcee57d92d6a3a0f2b680efce
2025-02-28 22:52:00 +09:00
Zuul
e91bb459c0 Merge "Fixed: use self.start_time in QManager shm" 16.1.0 2025-02-16 05:46:45 +00:00
Zuul
4ea8f2bf40 Merge "Skip installation to speed up pep8" 2025-02-15 15:59:15 +00:00
Takashi Kajinami
89f4ce95f2 Skip installation to speed up pep8
Change-Id: I4d3fd9e586b33d9deb87c1accf6fe00361259681
2025-02-15 15:20:48 +09:00
Arnaud Morin
d3a4eedb8a Fixed: use self.start_time in QManager shm
In a previous patch, start_time was introduced to take care of
containerized services.
Unfortunately, a bug has been introduced during this change.

The start_time written in /dev/shm was using the previous start_time
written in the file instead of the new one computed at boot of the
service.

Change-Id: I8a31c0c38b42f333bba92159332e7b3b79d70854
Signed-off-by: Arnaud Morin <arnaud.morin@ovhcloud.com>
2025-02-03 15:34:47 +01:00
Sharpz7
a9c328b18b Added Docs for Simulator
Added docs, and fixed a few issues, for the oslo messaging simulator.
Also added docs for adding your own configuration in.

Change-Id: I7ae4282ea6e06d9373c7f2c0453d2c6a6f76fb9f
2025-01-31 19:07:16 +00:00
Zuul
fe149aefb7 Merge "Add a kombu_reconnect_splay setting" 2025-01-25 20:57:23 +00:00
Takashi Kajinami
5c0b70beaa rabbit: validate input for retry options
Currently rabbit_retry_interval=0 is internally translated to
rabbit_retry_interval=1, which may hide wrong expectation by
operators. Add minimum boundary to make sure the given value is
valid and is used actually.

Also set the minimum boundary for backoff and max as well, to reject
too small values or even negative value which may cause malfunction.

Change-Id: Iaef2f3c52d6475742dd06c76dfeaebc1c7691d9a
2025-01-09 22:58:06 +09:00
Zuul
f3aec8e756 Merge "Remove deprecated aliases of notification options" 16.0.0 2025-01-08 11:47:23 +00:00
Zuul
60f7bc2012 Merge "Deprecate the Eventlet executor" 2024-12-20 09:30:35 +00:00
Hervé Beraud
27d833e374 Deprecate the Eventlet executor
The removal of Eventlet is planned[1].
Services should start migrating there RPC server
to the threading executor.
The Eventlet executor will be removed in G.

The executor parameter is now planned for removal.

[1] https://governance.openstack.org/tc//goals/proposed/remove-eventlet.html

Change-Id: I9dc3fe42931c84ad2aef35cb663ba019e3bf26b7
2024-12-19 16:01:28 +00:00
Takashi Kajinami
c0ffd6c686 Remove deprecated aliases of notification options
These were deprecated almost 10 years ago[1].

[1] 33c1010c3281804456a22b769c4bac5ac6a7cca1

Change-Id: Ifa387d9be6125e900eaaf6814319756ef39a463a
2024-12-16 15:09:32 +00:00
Zuul
9e34e23810 Merge "kafka: Remove unused connection pool options" 2024-12-16 14:33:51 +00:00
Zuul
e1f1d0a927 Merge "Remove remaining functional test code for AMQP1 driver" 2024-12-16 14:31:04 +00:00
Zuul
7aba48c4ae Merge "rabbit: Clean up deprecated options" 2024-12-16 14:31:03 +00:00
Zuul
7672b196dc Merge "rabbit: Fix wrong section to render connection pool options" 2024-12-16 14:31:02 +00:00
Zuul
edfc862a24 Merge "Fix outdated job description" 2024-12-16 14:31:00 +00:00
Takashi Kajinami
7ff09ff626 Remove remaining functional test code for AMQP1 driver
... because the driver was already removed.

Change-Id: Ia435111e26c63668fd2376addf5644c56888ea3a
2024-12-12 05:21:54 +00:00
Takashi Kajinami
82d7993cb1 Fix outdated job description
Currently the oslo.messaging-src-dsvm-full-kafka-hybrid job uses
rabbitmq driver, instead of AMQP1 driver, for messaging.

Change-Id: I71d28ca95d3af8d114c1670dc3ad27a237019b11
2024-12-12 11:19:29 +09:00
Takashi Kajinami
7f7d804808 rabbit: Clean up deprecated options
Drop old aliases of oslo_messaging_rabbit options which were deprecated
but have been kept for long time.

Change-Id: Ia84d3619c59a974757cfe188869ff39184590465
2024-12-11 16:45:25 +00:00
Takashi Kajinami
5f92d68e94 rabbit: Fix wrong section to render connection pool options
These options are looked up from the [oslo_messaging_rabbit] section.
Fix the wrong section ([DEFAULT]) used when rendering these options by
oslo-config-generator.

Because these options are now specific to RabbitMQ driver, migrate
the definition from base to rabbitmq driver module.

Change-Id: I29db03a775b17dfd11737225b41c7d408727fe88
2024-12-12 01:20:32 +09:00
Takashi Kajinami
be7d74b334 kafka: Remove unused connection pool options
These options were deprecated 7 years ago[1] and have been unused since
then.

[1] 1ccdccddaa838a4715fd21e8eb67e207d172c240

Change-Id: I75f85cf25e4fc3cb027386d479f2da4765e5bb8b
2024-12-12 01:17:56 +09:00
Daniel Bengtsson
43381453cd Remove pyngus from dependencies
The `pyngus` library was introduced as a dependency for the AMQP 1.0 driver.
Since the AMQP 1.0 driver has been removed from the project, this library is
no longer needed. This patch cleans up the dependencies by removing `pyngus`
from the requirements.

A dependency check (`pipdeptree`) confirms that `pyngus` is not used directly
or indirectly in the project.

Change-Id: Idf94ceaa96005a74e60fafc0124df659a8854ea5
2024-12-10 11:23:22 +01:00
Guillaume Espanel
5c5f17d755 Add a kombu_reconnect_splay setting
oslo.messaging will now add a random interval comprised between
0 and kombu_reconnect_splay to the Kombu reconnection delay
in case of consumer close errors.

Change-Id: Ibd689270caf3f622e6b2a5a92eceec6fa09eb7be
2024-12-02 20:52:28 +01:00
Zuul
0deb682868 Merge "Revert "Remove explicit pbr dependency"" 2024-11-25 18:29:53 +00:00
Takashi Kajinami
8d04fa328f Revert "Remove explicit pbr dependency"
This reverts commit ff8b6d4c074c7afb6b8c2eceb007a6f63037c451.

Reason for revert:
pbr is actually imported by oslo_messaging.version .

Change-Id: I7a56e967f43493e3da7f3010a44fed30fa01a264
2024-11-25 15:04:32 +00:00
c39c0bca1c reno: Update master for unmaintained/2023.1
Update the 2023.1 release notes configuration to build from
unmaintained/2023.1.

Change-Id: I5a5b6e026e13200f48997f4e492ee053df226407
2024-11-21 18:30:03 +00:00
Daniel Bengtsson
7997a199ac Remove deprecated AMQP1 driver
The AMQP1 driver has been deprecated for several years, since 14.4.0 and
is no longer maintained or widely used. This commit removes the AMQP1
driver from the code base.

References:
- Original deprecation commit: 0f63c227f5

Change-Id: Iaeb52791008a7a6736c99459f66d2bdbb2dea17b
15.0.0
2024-11-16 22:59:49 +09:00
Zuul
a9c03bdf1e Merge "Run pyupgrade to clean up Python 2 syntaxes" 2024-10-31 21:55:19 +00:00
Takashi Kajinami
ff8b6d4c07 Remove explicit pbr dependency
pbr is not use at runtime but is used during installation. It should
be pulled by setuptools automatically.

Change-Id: I22b79168358f2716c7a5d970bdcb6dc0581bfd06
2024-10-31 10:40:16 +09:00
Takashi Kajinami
5c8629d2ff Add note about requirements lower bounds
Since lower constraints job was removed the bounds are not actually
tested. Add a note to explain the bounds are maintained on best effort
basis.

Change-Id: I6fbfe08e0cdabeaaa016d16c4e261a04a0c57d53
2024-10-31 09:51:43 +09:00
Zuul
5994f3ca95 Merge "Skip grenade job on doc updates" 2024-10-24 07:43:16 +00:00
Zuul
244c0eecca Merge "Skip functional tests on pre-commit config update" 2024-10-24 05:40:28 +00:00
Takashi Kajinami
3b2bbcb6f4 Skip grenade job on doc updates
Import a few more irrelevant files from base grenade job definition
to avoid triggering grenade jobs on non-functional update.

Change-Id: I6955d9c9ea7be11932c6f1ff9ce6e931b91e1399
2024-10-24 13:22:15 +09:00
Takashi Kajinami
1dcf07c17a Skip functional tests on pre-commit config update
This file is used only in code style checks.

Change-Id: I0c1d6593417757c65bbb0b7ee7e503a3d3cedf12
2024-10-24 01:46:01 +00:00
Zuul
c7c726ca4a Merge "pre-commit: Bump versions" 2024-10-23 20:41:04 +00:00
Zuul
f68a516c27 Merge "Remove Python 3.8 support" 2024-10-23 15:48:46 +00:00
Takashi Kajinami
34fd61bdc2 Run pyupgrade to clean up Python 2 syntaxes
Update all .py source files by
 $ pyupgrade --py3-only $(git ls-files | grep ".py$")
to modernize the code according to Python 3 syntaxes.

pep8 errors are fixed by
 $ autopep8 --select=E127,E128,E501 --max-line-length 79 -r \
    --in-place oslo_messaging
and a few manual adjustments.

Also add the pyupgrade hook to pre-commit to avoid merging additional
Python 2 syntaxes.

Change-Id: I8115b7f8c5d27ce935e4422c351add4bb72e354f
2024-10-21 19:58:14 +09:00
Takashi Kajinami
7f52894bbe pre-commit: Bump versions
... and use native hooks for bandit and hacking

Change-Id: I2fcd2cf1bb2cfa23071cdbda14535e9e72884726
2024-10-21 19:55:43 +09:00
Zuul
39c43cd704 Merge "Add a note about quorum and stream queues" 2024-10-16 08:30:00 +00:00
Takashi Kajinami
fab94df630 Remove Python 3.8 support
Python 3.8 is no longer part of the tested runtimes for 2024.2[1]
because its EOL is coming soon.

[1] https://governance.openstack.org/tc/reference/runtimes/2024.2.html

Change-Id: If4e5bfdd746603463ab13e4decdb3a703ae34348
2024-10-16 10:21:07 +09:00
Vladimir Kozhukalov
930d97599c [rabbit] Ignore stream offset header when stream queue is not used
Consumer callback should look for x-stream-offset header only if
the stream mode is used. Otherwise the message headers attribute could
be None and the error appears when using get method.

Closes-Bug: #2084168
Change-Id: I7f9c742f8f557d9faae2cd749d34dcb15d8005c0
2024-10-14 15:43:22 +09:00
Zuul
b3d7270b3a Merge "Use more sensible "default" for [oslo_messaging_rabbit] processname" 2024-10-10 10:05:01 +00:00
Zuul
991686940f Merge "Use oslo.utils implementation to parse/escape server address" 2024-10-10 09:45:04 +00:00
Takashi Kajinami
34931863f5 Declare Python 3.12 support
Now Python 3.12 unit tests job is voting. So we can safely say this
is tested with Python 3.12 .

Change-Id: I4e4dd9e024334860eac4fb128fcc7d55af48d304
2024-10-09 22:42:38 +09:00
Takashi Kajinami
3ed01f4845 Use oslo.utils implementation to parse/escape server address
oslo.utils have provided a few useful utility methods to parse or
escape server addresses. Replace the own logic by these methods to
reduce amount of own logic.

Change-Id: I7807314e891e202e47254bf7f98aca4c99005079
2024-10-06 01:11:08 +09:00