Commit Graph

78 Commits

Author SHA1 Message Date
Zuul 487539a570 Merge "reno: Update master for unmaintained/xena" 2024-03-12 14:53:00 +00:00
Zuul 0f130c5b04 Merge "reno: Update master for unmaintained/wallaby" 2024-03-12 14:31:26 +00:00
Zuul 977622ba6f Merge "reno: Update master for unmaintained/victoria" 2024-03-12 13:13:15 +00:00
OpenStack Release Bot 8953a43c8e Update master for stable/2024.1
Add file to the reno documentation build to show release notes for
stable/2024.1.

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

Sem-Ver: feature
Change-Id: I9a0eb82d1b495490e6af65a52397105d061ca4a2
2024-03-08 14:21:52 +00:00
OpenStack Release Bot 94e4e3cf49 reno: Update master for unmaintained/xena
Update the xena release notes configuration to build from
unmaintained/xena.

Change-Id: I1611c4d7ee5b11110d8a167954dd6452c9b27e0a
2024-03-07 14:24:46 +00:00
OpenStack Release Bot 69ebaef1d3 reno: Update master for unmaintained/wallaby
Update the wallaby release notes configuration to build from
unmaintained/wallaby.

Change-Id: I9450ff57d63cd1a91b18ac728e22ac93f040b483
2024-03-07 14:20:32 +00:00
OpenStack Release Bot 72b76b42f0 reno: Update master for unmaintained/victoria
Update the victoria release notes configuration to build from
unmaintained/victoria.

Change-Id: Ifc28ea00b23f39b5dc97760695e3416d450bde58
2024-03-07 14:14:48 +00:00
Zuul 4136a7107a Merge "Add support for Redis Sentinel backend" 2024-02-13 13:33:01 +00:00
Zuul 85b30d9061 Merge "Add native options for redis backend" 2024-02-13 13:33:00 +00:00
Zuul c4719afe75 Merge "Automate TLS certificates settings for redis backend" 2024-02-12 15:24:11 +00:00
OpenStack Release Bot ce6e4ba4a7 reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.

Change-Id: Ibd8aeb8074c60a644a2345d6cd8b48dff1736eb4
2024-02-06 14:27:15 +00:00
Takashi Kajinami 7bb43bbbd5 Add support for Redis Sentinel backend
This introduces support for Redis Sentinel backend. Users can now
use Redis Sentinel backend instead of Redis backend by configurations
like the example below.

[cache]
enabled = True
backend = dogpile.cache.redis_sentinel
redis_password = <password>
redis_sentinels = 192.0.2.1:26379,192.0.2.2:26379,192.0.2.3:26379

If tls_enabled option is set to True then all the tls settings are
applied for connections to Redis as well as connections to Redis
Sentinel.

Change-Id: Ic3b84fe6810e08337a884c68625ccfed11665269
2024-02-04 13:20:41 +00:00
Takashi Kajinami 28411250da Add native options for redis backend
This introduces a few new redis_* options to simplify the settings
required to use the redis backend. The main aim of this change is to
replace the requirement to inject url by backend_argument.

[cache]
backend=dogpile.cache.redis
redis_server=127.0.0.1:6379
redis_username=default
redis_password=a_big_secret
redis_socket_timeout=1.0

Closes-Bug: #2052351
Change-Id: Id72878f9cddaa99146eab5fb4ee76c8e6a633809
2024-02-04 13:20:18 +00:00
Takashi Kajinami 31201ce71c Automate TLS certificates settings for redis backend
This adds support for configuring certificate/key files used for TLS
connection with Redis using the existing tls_* options.

example)

[cache]
backend=dogpile.cache.backend.redis
backend_arguments=url:rediss://:a_big_secret@localhost:2679
tls_enabled=True
tls_cafile = /etc/pki/tls/certs/ca-bundle.crt

Change-Id: I2ab38b8c88274cb4908791eea8212a79e3d524a2
2024-02-03 20:17:22 +09:00
Hervé Beraud f438770767 Add a new option to enforce the OpenSSL FIPS mode
This option ``enforce_fips_mode`` allow us to enforce the FIPS mode
if supported by the version of python in use.

https://en.wikipedia.org/wiki/Federal_Information_Processing_Standards

Change-Id: I220012094d2be3c2c47a444260bc42fb53aaf6bc
2024-01-23 10:55:17 +01:00
OpenStack Release Bot cb109b023a Update master for stable/2023.2
Add file to the reno documentation build to show release notes for
stable/2023.2.

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

Sem-Ver: feature
Change-Id: I8adbe911c4bfd277c1229ba2c4351eb5a3fa879a
2023-09-07 09:35:52 +00:00
OpenStack Proposal Bot 06f76e582c Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I03e5a01dc4785470f07155e8cf923fd3f46b4cb8
2023-06-28 02:53:39 +00:00
OpenStack Proposal Bot 7a596b7295 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I1f6dda3418ed89921537539ac94db635acbae19d
2023-05-09 03:09:14 +00:00
Zuul e8da407874 Merge "Allow bmemcached to be optional for memcache_pool" 2023-02-27 13:25:26 +00:00
OpenStack Release Bot 0e9cd99df1 Update master for stable/2023.1
Add file to the reno documentation build to show release notes for
stable/2023.1.

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

Sem-Ver: feature
Change-Id: Icd12ddc09eddea187a439ee075fa42476b0e576a
2023-02-24 15:15:42 +00:00
Corey Bryant edd10f7a9c Allow bmemcached to be optional for memcache_pool
This allows oslo_cache.memcache_pool to be used without the
python-binary-memcached package being installed, as it is
only required if sasl_enabled is set to True.

Closes-Bug: #1991250
Change-Id: I7e6cc83864be68e946d86b1f4b44847b95ea8b05
2023-02-23 14:55:12 +00:00
OpenStack Proposal Bot 9c2d9786bd Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I01f0de6a9303fad64baec87f31baa90fd8600e51
2023-02-18 03:36:46 +00:00
OpenStack Proposal Bot 2bf1bfc5d2 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ie9e19b79744834e7e4a57545d641fb42f02ef0db
2022-09-10 02:39:14 +00:00
OpenStack Release Bot df7cd210ef Update master for stable/zed
Add file to the reno documentation build to show release notes for
stable/zed.

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

Sem-Ver: feature
Change-Id: I9c1d2e63db945d8b3a7523741ed99260f6c04453
2022-09-09 09:15:54 +00:00
Zuul 7fb06bc203 Merge "Support SASL protocol for memcached" 2022-08-03 12:31:42 +00:00
OpenStack Proposal Bot 79945c1ab2 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I41cfe5824865714d70e1a739029c8a592f1b9f0c
2022-06-21 03:41:55 +00:00
dengzhaosen d229d3edb7 Support SASL protocol for memcached
Add the SASL protocol for memcached, to improve the security of authority.
SASL(Simple Authentication and Security Layer): is a memchanism used to
extend the verification ability of C/S mode. SASL is only the
authentication process, which integrates the application layer and the
system authentication mechanism. However, the current memcached hasn't
any authenticaction mechanism to protect the user's data cached in
memcached server.

Depends-On: 7828bed0febabfa11a0a8f6960f4c7cc8acec841

Implements: blueprint enable-sasl-protocol

Change-Id: I40b9f4eac518f34a3dfb710b5c4ab3a76da7c00c
2022-05-03 10:58:53 +08:00
songwenping 2d610d0abc Remove unnecessary unicode prefixes
All strings are unicode by default in Python 3. No need to mark them as such.

Change-Id: If2b75ca342bf613d9c1bc3f34f6afcf51a22d640
2022-04-19 15:07:53 +08:00
OpenStack Release Bot f7f3c2b4df Update master for stable/yoga
Add file to the reno documentation build to show release notes for
stable/yoga.

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

Sem-Ver: feature
Change-Id: Ie68e869acbf2ee66c1070acb2d8de72124320f07
2022-03-04 17:17:18 +00:00
Hervé Beraud cb118d04ce Expose pymemcache's HashClient public params
This patch expose a couple of pymemcache's HashClient public
params that can be useful to configure HA and failover for
clustered memcached servers.

These options can be used in addition of the previously added
retrying mechanismes.

This patch rely on recent changes [1] of dogpile.cache that
aim to expose these options too.

[1] https://gerrit.sqlalchemy.org/c/sqlalchemy/dogpile.cache/+/3528

Change-Id: I24fc853db4237c08b87871ddff1b3ced27cc7fce
2022-01-21 08:54:13 +01:00
Hervé Beraud 42bf82d550 Add retry mechanisms to oslo.cache
This patch specifies a set of options required to setup a retry
context.  The context built from those options can later on be
passed to any of the oslo.cache backends that supports pymemcache's
retry mechanisms.

This patch also sets up the retry mechanisms context based on
the configuration option passed via oslo.config and adds it
as an argument to be passed to the selected oslo.cache backend.

Change-Id: I6c1a4872d7cf19e3a55c676ef4b4200f18e08f2c
2022-01-07 11:58:28 +01:00
Hervé Beraud f4fa6aa6fa Add socket keepalive options to oslo.cache
This patch specifies a set of options required to setup the
socket keepalive of the dogpile.cache's pymemcache
backend [1][2]. This setup from those options can later on
be passed to this backend.

This patch also sets up the socket keepalive object based on
the configuration options passed via oslo.config and adds it
as an argument to be passed to the selected oslo.cache backend.

Dogpile.cache will be used as an interface between oslo.cache and
pymemcache [3].

[1] https://github.com/sqlalchemy/dogpile.cache/pull/205
[2]
b289c87bb8
[3]
https://dogpilecache.sqlalchemy.org/en/latest/api.html?highlight=keepalive#dogpile.cache.backends.memcached.PyMemcacheBackend.params.socket_keepalive

Change-Id: I501100e1a48cdd4e094c08046e2150405dcf371e
2022-01-07 11:58:28 +01:00
OpenStack Release Bot aaae2438ec Update master for stable/xena
Add file to the reno documentation build to show release notes for
stable/xena.

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

Sem-Ver: feature
Change-Id: Id8135c3dd81fb1cd04d296c791e2305ee3b309a0
2021-09-10 14:33:43 +00:00
OpenStack Release Bot 83a443f4d8 Update master for stable/wallaby
Add file to the reno documentation build to show release notes for
stable/wallaby.

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

Sem-Ver: feature
Change-Id: I8f52ed98d7a9e9c78a564888d8807d7cfe424b6e
2021-03-18 11:11:56 +00:00
Zuul eed7c03dd6 Merge "Add bug comment and fix nits" 2021-02-08 15:14:36 +00:00
Hervé Beraud e5d0b2019e Add bug comment and fix nits
Change-Id: Icb2b62d7d51cac652f9958ee094fef78a8ac9574
2021-02-05 14:35:18 +01:00
Zuul 062d29b256 Merge "Do not hardcode flush_on_reconnect, move to oslo.cache config" 2021-02-03 12:27:25 +00:00
Moisés Guimarães de Medeiros b00b3b23b4 Add dogpile.cache.pymemcache backend
Depends-On: https://review.opendev.org/c/openstack/requirements/+/772684
Change-Id: Ibdc6015ac1a9812976c4f3d8a737f7245599553e
Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
2021-01-27 15:11:27 +01:00
Michal Arbet a437b219ac Do not hardcode flush_on_reconnect, move to oslo.cache config
Param flush_on_reconnect is very risky to use on production
deployments. It can cause exponential raising of connections
to memcached servers. Moreover this option makes sense only
in keystone's oslo.cache config.

This patch is moving flush_on_reconnect from code to oslo.cache
config block to be configurable.

Co-Authored-By: Hervé Beraud <hberaud@redhat.com>
Change-Id: I8e6826bfb2c85e7ceed03e1667bd6a06b3dff469
Closes-Bug: #1888394
2021-01-18 13:59:55 +01:00
OpenStack Proposal Bot bd1a841c86 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Id2b501272aacbba7b82f09edea7987bfa1d68247
2020-10-04 07:41:52 +00:00
OpenStack Release Bot 7c01c2de03 Update master for stable/victoria
Add file to the reno documentation build to show release notes for
stable/victoria.

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

Change-Id: I16fb16ec74f6f651b2e2ab339f40d3d4b51b092a
Sem-Ver: feature
2020-09-11 20:55:51 +00:00
melissaml 18e76738e7 Fix pygments style
New theme of docs respects pygments_style.

more info: http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: I48e1636ea38c51aa71ca60fcf8387b7a0c9c4d8e
2020-06-04 14:26:08 +08:00
Andreas Jaeger 49b4d42c58 Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.0 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

openstackdocstheme renames some variables, so follow the renames. A
couple of variables are also not needed anymore, remove them.

Set openstackdocs_auto_name to use project as name.

Fix wrong indent in index.rst that lead to a grey bar on the left of the
toc.

Depends-On: https://review.opendev.org/728938
Change-Id: If82be6fbfb12cedd8f9dcfb4468415e085d1c821
2020-05-18 21:08:45 +02:00
OpenStack Proposal Bot e4ba09ea37 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Iae4ccfd7a4d531c43d3dc7db3659956e4900e06e
2020-04-16 06:11:27 +00:00
OpenStack Release Bot 70be98f190 Update master for stable/ussuri
Add file to the reno documentation build to show release notes for
stable/ussuri.

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

Change-Id: Ie5d97dbcb0ec576ddce9a823e6cda1533c1a803b
Sem-Ver: feature
2020-04-14 10:12:51 +00:00
Zuul 9e66640fd4 Merge "Revert "Switch from python-memcached to pymemcache."" 2020-03-25 11:49:00 +00:00
Radosław Piliszek cec9b8801c Revert "Switch from python-memcached to pymemcache."
pymemcache turned out to be far from drop-in replacement.
It will be reintroduced as another backend. See [1].

Closes-bug: #1866008
Related-bug: #1812935

This reverts commit 8a8248d764.

[1] https://review.opendev.org/711220

Co-Authored-By: Hervé Beraud <hberaud@redhat.com>
Change-Id: Ia3b8d42435b0eac1c87b866449b08a1d11818986
2020-03-24 18:03:05 +00:00
Jonathan Rosser 9a7e70f397 Fix pymemcache release note python package name
The name is pymemcache not pymemcached.

Change-Id: I98bee7f4f485f35dfd3fe49bf66cfe0a8702e5e2
2020-03-05 10:44:16 +00:00
Hervé Beraud 8a8248d764 Switch from python-memcached to pymemcache.
Switch memcachepool to use pymemcache.

This change switches from python-memcached to pymemcached for
the memcachepool backend fixing an issue due to the
__new__ attribute reassign.

Change-Id: Icaa6b252145685d1b5667b883e3bf693920b5b93
Closes-Bug: #1812935
2020-02-25 17:17:01 +01:00
Andreas Jaeger 791b9952d5 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Change-Id: Ie8e737cfde8b2587ef60cd25ab746e6b04936390
2020-02-03 13:44:20 +01:00