summaryrefslogtreecommitdiff
path: root/ironicclient/common/filecache.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove log translationsTao Li2017-03-301-4/+3
| | | | | | | | | | | 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
* Grammatical fixes for cache expiry featureRuby Loo2016-07-051-2/+2
| | | | | | | | 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
* Add env var for version cache timeoutMichael Davies2016-06-291-2/+20
| | | | | | | | | | 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
* Fixes file cache TypeErrorFlorian Fuchs2015-09-061-1/+1
| | | | | | | | | | | | | 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
* Cache negotiated api microversion for serverMichael Davies2015-06-231-0/+86
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