Commit Graph

7 Commits

Author SHA1 Message Date
Jamie Lennox 9d8e2836fe Use oslo_cache in auth_token middleware
Use the new oslo.cache library instead of using memcached directly.
This keeps the old options around and will continue to use those in
preference to the oslo.config library as there is no way to test whether
oslo.cache was explicitly configured to use that in preference.

Currently there are no messages or anything to deprecate the old options
until we've had a chance to test it in production environments.

Closes-Bug: #1523375
Change-Id: Ifccacc5db311ad538ce60191cbe221644d1a5807
Co-Authored-By: Nicolas Helgeson <nh202b@att.com>
2017-12-01 16:36:40 -08:00
D G Lee 50fcc70df1 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: I73ca5fc046ad04505b52ca93c9bbdbfd72405aed
2017-05-02 09:58:02 +08:00
Janonymous f4d453ec30 use oslo.log instead of logging
The constants of log levels were added in the 1.8 version
of the oslo.log library.
So we can replace all usage of system logging module
with log module from oslo.log

Change-Id: I97a1d913b543dc9dbd4d228b04adbdf7ee320df5
2017-01-13 03:24:18 +00:00
Navid Pustchi ed931a00d8 Fix D204 PEP257 violation and enable D301 and D209
Currently tox ignores D204, D209 and D301:
D204: 1 blank line required after class docstring.
D209: Multi-line docstring closing quotes should be on a separate line.
D301: Use r""" if any backslashes in a docstring.

This change makes keystonemiddleware docstrings compliant with D204.
D209 and D301 is already passing, so this commit also enables them.

Change-Id: I11e02ef5af7fc793f1a2438e091bbfb18618a7f5
2016-05-06 16:36:15 +00:00
Navid Pustchi d7bf1a759d Fix D400 PEP257 violation
Currently tox ignores D400:
D400: First line should end with a period.

This change makes keystonemiddleware docstrings compliant with D400.

Change-Id: Icff2b744d72ae74492cfc6515b91f393fa2b50bf
2016-05-06 14:47:41 +00:00
Jamie Lennox e9ad5188de Handle memcache pool arguments collectively
Tracing the usage of memcache pool arguments goes through 3 different
functions and involves slightly tweaking the parameter names each time.

This was making it impossible to reason with so collapse down the
memcache arguments into a dictionary that is passed around.

Change-Id: I8bd5cb50183795d9b8fd953dabd935f15f03a385
2015-09-01 13:45:31 +10:00
Brant Knudson 50c2baf1ad Move _memcache_pool into auth_token
The _memcache_pool module is only used by auth_token, so move it
in there.

Change-Id: I9a57ac68c9bffa42cece7ea966e7aef1653386ef
2015-03-13 08:59:15 -05:00