6 Commits

Author SHA1 Message Date
Takashi Kajinami
52467b5498 Replace appdirs by platformdirs
appdirs was deprecated[1] and now platformdirs is the recommended
replacement.

[1] 8734277956

Change-Id: I32fab3052e858394429d15bc6fa2ec89b2d41f51
2024-03-30 02:36:38 +09:00
Tao Li
ee94c48806 Remove log translations
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. See:
http://lists.openstack.org/pipermail/openstack-i18n/2016-November/002574.html
http://lists.openstack.org/pipermail/openstack-dev/2017-March/113365.html

Change-Id: I0a2263090899a86ff922f00feb92d440f9226c4b
Closes-Bug: #1674374
2017-03-30 17:22:07 +08:00
Ruby Loo
09452a7301 Grammatical fixes for cache expiry feature
This updates a warning string and the release notes for the
IRONICCLIENT_CACHE_EXPIRY environment variable feature.
This is a follow-on to I2bc77c64b764f6c22574a30b0e5af4ca6feff29f.

Change-Id: I6db04a2c93997e594cf6d6c967fe718fc902a79b
2016-07-05 20:28:48 -04:00
Michael Davies
8c811afcab Add env var for version cache timeout
As part of the Newton midcycle, it was discussed that it might
be nice to be able to specify the version cache timeout value
via an environment variable, rather than the current hard-coded
value.

Fixes-bug: #1596734
Change-Id: I2bc77c64b764f6c22574a30b0e5af4ca6feff29f
2016-06-29 05:12:45 +00:00
Florian Fuchs
8fa6d32fbe Fixes file cache TypeError
The internal cache (common.filecache) uses dogpile.cache's dbm backend,
which uses the bsddb package from the standardlib (in py2 only). bsddb
however breaks with a TypeError if the cache key is a unicode string.

This change fixes this by using the ``key_mangler`` arg on cache
creation, which (according to the dogpile.cache docs) is to be used with
dbm/bsddb.

Change-Id: Ie4911e31567d773357da99af3ded0548ad0b7db1
Closes-Bug: #1492205
2015-09-06 13:03:08 +00:00
Michael Davies
44e6949b0c Cache negotiated api microversion for server
If we negotiate an API microversion in the ironiccclient, cache
this value so that we don't need to re-negotiate it again for the
next API call, if the user doesn't specify a version.

We cache the version for a particular ironic instance in a
temporary file, one per server, in a multi-user, multi-server
safe-way - deleting old files once they expire, so only the
latest is kept.

Depends-On: Icb29fdc92ecd54e388b7c16899070572458308da
Change-Id: I0232bc611789fb96491d855020042e23ba0c4fab
Blueprint: version-caching
2015-06-23 08:55:12 +09:30