* Update oslo.cache from branch 'master'
to 487539a57087a2d871c50d86bccebb242091f2ff
- Merge "reno: Update master for unmaintained/xena"
- reno: Update master for unmaintained/xena
Update the xena release notes configuration to build from
unmaintained/xena.
Change-Id: I1611c4d7ee5b11110d8a167954dd6452c9b27e0a
* Update oslo.cache from branch 'master'
to 0f130c5b04343dd685c7981cfab9039d832876ab
- Merge "reno: Update master for unmaintained/wallaby"
- reno: Update master for unmaintained/wallaby
Update the wallaby release notes configuration to build from
unmaintained/wallaby.
Change-Id: I9450ff57d63cd1a91b18ac728e22ac93f040b483
* Update oslo.cache from branch 'master'
to 977622ba6fea651912f9c65aa539fe9dad531108
- Merge "reno: Update master for unmaintained/victoria"
- reno: Update master for unmaintained/victoria
Update the victoria release notes configuration to build from
unmaintained/victoria.
Change-Id: Ifc28ea00b23f39b5dc97760695e3416d450bde58
* Update oslo.cache from branch 'master'
to 8953a43c8edacb34d887e67b707f4fe2cecf3773
- 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
* Update oslo.cache from branch 'master'
to e8de6c9ea59a0d3000c9baca1bca1d342d93759f
- Fix incomplete exception message
This is follow-up of 76d414e58d1edd416cb96f0f054dc4b7f0bc1dcf and fixes
the incomplete construction of an exception message. This also removes
the translation according to the other messages.
Change-Id: Ie2ed619b06d9d6340eb81fc1fac4dbd21702de19
* Update oslo.cache from branch 'master'
to 8aba3853abcd96c9ba7fc99979d04bdc4c1870bf
- Merge "redis: Add functional tests"
- redis: Add functional tests
This adds functional tests with redis and redis sentinel, to ensure
the current implementation can initialize clients properly.
Change-Id: I6318f6ad00d5b0ee3db1be5e8671a4c346b9daff
* Update oslo.cache from branch 'master'
to 98e8de2ec9ffa08e4aa8c0f576ce45c8315c3000
- Merge "config: Document backends supporting specific options"
- config: Document backends supporting specific options
... and shows the backend actually picked up in logs.
Change-Id: Ib19fdd289444a8db5ebc682e7cb5723b994ae9dc
* Update oslo.cache from branch 'master'
to 44285d9a4cb14bcb4a57db5eb712760701555577
- Merge "Prevent potential ReDoS attack"
- Prevent potential ReDoS attack
Although the logic is used to parse a config value, it'd be better to
eliminate a risk.
Change-Id: I9ef3fedf9d23f8ca8f87a63a55f1f90e5b07d2f1
* Update oslo.cache from branch 'master'
to 882e2c5414df92f16fe026e2bb1aa5e7a8544b2e
- Merge "Ensure requirements are capped by upper constraints"
- Ensure requirements are capped by upper constraints
Closes-Bug: #1965512
Change-Id: Iff6643f97346862573500d3dce706c3120bea64a
* Update oslo.cache from branch 'master'
to 4136a7107a235f8ff206ce118576a1f3da228c8d
- Merge "Add support for Redis Sentinel backend"
- 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
* Update oslo.cache from branch 'master'
to 85b30d90619ccba99431f516283956b1cf1e94cf
- Merge "Add native options for redis backend"
- 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
* Update oslo.cache from branch 'master'
to 50345eb5b6fd8bc4f8ea93231fe4b3551d009c73
- Merge "memcache: Remove "default" username and password"
- memcache: Remove "default" username and password
Because these are not intentional default. This also adds a validation
logic to catch the case where SASL is requested but username or
password is not given.
Change-Id: Ia98bfc5f9a42c13acfdb2192bb1fa11773f6ccf8
* Update oslo.cache from branch 'master'
to c4719afe757d2ca17f751bdf0cc23f7467ef5a42
- Merge "Automate TLS certificates settings for redis backend"
- 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
* Update oslo.cache from branch 'master'
to 38220921dd9d854f3372fe648fe928c447216d9d
- Merge "Fail if tls_enabled is True but backend does not support it"
- Fail if tls_enabled is True but backend does not support it
The tls_enabled option works properly only for the following backends.
- oslo_cache.memcache_pool
- dogpile.cache.bmemcache
- dogpile.cache.pymemcache
Currently the tls options are all ignored in case a different backend
is used, but this does not allow users to notice that TLS is not
enabled contrary to their expectations.
This introduces the validation to ensure an appropriate backend is used
when tls is enabled.
NOTE:
The oslo_cache.memcache_pool bakcend supports tls_enabled only when
sasl_enabled is true, which can be fixed separately.
Change-Id: Ib967bf8cb21fb97fff94a6d6cb5983374e4798eb
* Update oslo.cache from branch 'master'
to 6f108bae2feefe9f45d01a676e42543518d0dfc6
- Merge "Display coverage report"
- Display coverage report
... for easy reference. Also make sure old data is purged.
Change-Id: I615044add4f4ceaf73f6b57c0450918343273cae
* Update oslo.cache from branch 'master'
to ce6e4ba4a7cb0cb1e90fcf018e9d14a1a54c62a9
- reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.
Change-Id: Ibd8aeb8074c60a644a2345d6cd8b48dff1736eb4
* Update oslo.cache from branch 'master'
to 33244f6aae01fbace89bf8a84b45b668f317d218
- Merge "pre-commit: Integrate bandit"
- pre-commit: Integrate bandit
We also remove these unnecessary linter dependencies from
test-requirements.txt.
Co-Authored-By: Stephen Finucane <sfinucan@redhat.com>
Change-Id: I2955b4a99c6963977272e6946058fe8134dfc45a
* Update oslo.cache from branch 'master'
to 542c9c0088963d8c86b648e7ac5b425fd11b0592
- Merge "pre-commit: Bump versions"
- pre-commit: Bump versions
hacking now has a native hook.
Co-Authored-By: Stephen Finucane <sfinucan@redhat.com>
Change-Id: I7b6fbbcbfc5d7af03d4e2c26718d7eff57ac5221
* Update oslo.cache from branch 'master'
to af77d1da80fe63681f247d142df0feb65f6a1b8f
- Fix minor typos in parameter help texts
Change-Id: I38755167fb67b0b78f6e8ea69e6569f13b35cf74
* Update oslo.cache from branch 'master'
to 8d5eabcdfbe06422692239487cb9e3ccfb6d7e24
- Bump hacking (again)
The previous attempt did not update the version in pre commit config
so the old version is still used by pep8 target.
Change-Id: Ib86e124697031f63d1f7ba1ec961d9d8adffa95e
* Update oslo.cache from branch 'master'
to f438770767ff5760dcbac011e9aaa0f50fed367c
- 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
* Update oslo.cache from branch 'master'
to a977dd9109c57c1351fc9e0dd94021ce8c2e8d21
- Bump hacking
hacking 3.0.x is too old.
Change-Id: I9100cbb92c404f55944dc96b65cd2577ba4db194
* Update oslo.cache from branch 'master'
to 3aae0ac7abde231de7a2ce22e4fe143ae97ba5ff
- Update python classifier in setup.cfg
As per the current release tested runtime, we test
python version from 3.8 to 3.11 so updating the
same in python classifier in setup.cfg
Change-Id: I28b8d0bdc06a9bd12290180f5e5cdc9e9c82be74
* Update oslo.cache from branch 'master'
to 2d894380519da5071b79cd916927f81be62bf9ec
- Merge "Cleanup py27 support"
- Cleanup py27 support
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove python 2.7 stanza from setup.py
Change-Id: Ida5fd3abd77e507f50953c62eeb2490068eebcd0
* Update oslo.cache from branch 'master'
to 6855ffca1d812bd4af60272699ec4e5cceed1f98
- Merge "Clean-up memcache connection sockets"
- Clean-up memcache connection sockets
The ConnectionPool currently opens sockets, but never closes them. As a
result, any client using oslo.cache memcache pool leaves sockets in a
CLOSE_WAIT state, with the source port not being re-usable.
In our production system, were we have A LOT of activity, this creates
a storm of non-reusable ports: all source ports are in use, making the
node unuseable for other things.
This patch adds a __del__ destructor closing inactive connections,
fixing the issue.
Closes-Bug: #2043121
Change-Id: I09d632346c76d1aff7c534f0d040162d1985f548
* Update oslo.cache from branch 'master'
to 3694193d6c7bd2248b369ad2c1e8c70f3dc565d1
- Merge "Do not mark hosts as alive when they are all dead"
- Do not mark hosts as alive when they are all dead
This feature is supposed to check for alive servers more frequently when they are all down.
Unfortunately, it does more harm than good.
I have made several tests with keystone and here is what I saw when all memcached backends were unreachable:
1. memcached services were stopped but their hosts were alive(keystone received 'connection refused') - everything was working fine
2. memcached backends and their hosts were completely unreachable(keystone received 'no route to host') - the whole keystone stopped responding
Keystone should be working fine even if all memcached backends are down. In this case it wasn't.
After I deleted the discussed functionality from the code, keystone was finally able to handle failure of all memcached backends.
I believe this issue is not only limited to keystone, I just used it as an example.
Change-Id: Ib3e3028d967c166d21b60cf4cb7c9d5dc82a8fe7
* Update oslo.cache from branch 'master'
to d1d673b98b6b308db04bf573b2182e385cdb1cdf
- Merge "[cache] memcache_password should be secret"
- [cache] memcache_password should be secret
... because the parameter accepts a password in plain text.
Change-Id: I97df7068cc06c88d9a9adba032a2186a301d7777
* Update oslo.cache from branch 'master'
to cb109b023a21fc84bf75e61a3c41ab442a36173c
- 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
* Update oslo.cache from branch 'master'
to 06f76e582c96de0597d2a93efdc15dd75c7666c3
- 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
* Update oslo.cache from branch 'master'
to 7a596b729548b78025bfbd3758a8b759b85245b7
- 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
* Update oslo.cache from branch 'master'
to 4daef2972e70d06302e08d6268a6179f8727d1d8
- Moves supported python runtimes from version 3.8 to 3.10
Within 2023.2 python version 3.9 and 3.10 are the
supported python runtimes [1].
[1] https: //review.opendev.org/c/openstack/governance/+/872232
Change-Id: I767de94cb56508c8e9f4cf7c2a0b31f4d7c414ba
* Update oslo.cache from branch 'master'
to e8da407874d9eba512198e592ca2ee7163d63de0
- Merge "Allow bmemcached to be optional for memcache_pool"
- 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
* Update oslo.cache from branch 'master'
to 0e9cd99df19bfbd04d877a93516abd6e162df1ba
- 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
* Update oslo.cache from branch 'master'
to 9c2d9786bdbb789bf6d9b8dc877e870c300932e2
- 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
* Update oslo.cache from branch 'master'
to 2bf1bfc5d2229946f911ec0031c4f7b0f16a6dd4
- 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
* Update oslo.cache from branch 'master'
to fb13f8d1d99599fa6b4988060b123db3fa6b252b
- Add Python3 antelope unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for antelope.
See also the PTI in governance [1].
[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html
Change-Id: Ida76099b85ce23c9b7c7aff362a709d8b91baf04
* Update oslo.cache from branch 'master'
to df7cd210ef1a92bf17b1f45d8914aa9485192355
- 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
* Update oslo.cache from branch 'master'
to 7c6effd10e7c09f75fe0c644dab418ada4dc5e8a
- Add bmemcached as optional dependency
This is now required when using oslo_cache.memcache_pool.
Change-Id: I508f336494a194b68eb45a6b01bb32984b435bb0
* Update oslo.cache from branch 'master'
to 7fb06bc2034d9747c9721c9d3eff06925a4483c6
- Merge "Support SASL protocol for memcached"
- 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
* Update oslo.cache from branch 'master'
to 79945c1ab25420ad90a976fc963d22ce0bfb5d45
- 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
* Update oslo.cache from branch 'master'
to ce85406b619890713d24b584d9418f760d445441
- Drop python3.6/3.7 support in testing runtime
In Zed cycle testing runtime, we are targetting to drop the
python 3.6/3.7 support, project started adding python 3.8 as minimum,
example nova:
- 56b5aed08c/setup.cfg (L13)
Change-Id: Idc494496c547b71f8f669f97bbb94eec7e2371f1
* Update oslo.cache from branch 'master'
to 2d610d0abc27e170ad7e785eebac32c79c17d118
- Remove unnecessary unicode prefixes
All strings are unicode by default in Python 3. No need to mark them as such.
Change-Id: If2b75ca342bf613d9c1bc3f34f6afcf51a22d640
* Update oslo.cache from branch 'master'
to 385d24786a517901b600711f4f1f822e9cb5a76c
- Merge "Fix description of memcache_servers"
- Fix description of memcache_servers
Current description says the option is used by only two backends but
in fact this option is used by all backends dependent on memcached.
Note that the inet6 prefix is specific to the python-memcached library
and should not be used if a backend dependent on different libraries
(eg. pymemcache) is used. This change describes that point, too.
Change-Id: I3c967841c94b9409096c9b9591f9fb162db7a1ac
* Update oslo.cache from branch 'master'
to 22e34517609126d8b50867415ccb59f3b8a39007
- Merge "Add Python3 zed unit tests"
- Add Python3 zed unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for zed.
See also the PTI in governance [1].
[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html
Change-Id: If5a808d06a6073b54717d2cb06a436df461f1c14
* Update oslo.cache from branch 'master'
to 96205a84cb40972a67e40d7bb2ec51a082afaa59
- Merge "Add Python 3 only classifier"
- Add Python 3 only classifier
Python 2 support was removed during Ussuri cycle. This change adds
the classifier to clearly state that only Python 3 is supported.
Note that the python 3 only classifier was already added to the other
oslo libraries so this improves consistency among all libraries.
Change-Id: I961f128f9aaaf82cc1345a0c19bdfbae516f8f43
* Update oslo.cache from branch 'master'
to f7f3c2b4df8c652eb4f8b77fcab7104291a37dae
- 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