8 Commits

Author SHA1 Message Date
Steve Martinelli
4969f66fca switch to oslo.cache
Use oslo.cache now that it's been made available.

Note that we only deprecate the cache backends, but not remove
them, they are public APIs and subject to deprecation.

Also remove most of the caching code, but keep the portions
that register backends, since they are still available.

Note that the tests that were deleted were testing cache
functionality, they now exist in oslo.cache.

Co-Authored-By: Brant Knudson <bknudson@us.ibm.com>

Change-Id: I39d3ff1dd2edad79effa56450b444174b09f971e
2015-10-15 11:10:34 -04:00
Davanum Srinivas
1976e31628 Remove references to keystone.openstack.common
Use oslo_log in hacking checks instead of
the old log module from keystone.openstack.common

We don't have keystone.openstack.common anymore

Change-Id: I88ee4f37dbedee0ca06f1c636139d5a1a7bee7b7
2015-08-20 21:49:04 -04:00
Brant Knudson
9d7490f79f Switch to oslo.service
Use oslo.service rather than service from oslo-incubator.

openstack-common.conf was updated and sync from oslo-incubator to
clean up unused modules.

Check requirements files to make sure there are no new unused
requirements (there are none).

config generator configuration was updated to pull options from
oslo.service.

Closes-Bug: 1466851
Depends-On: I305cf53bad6213c151395e93d656b53a8a28e1db
Change-Id: Ie8ef66720bdc480cd1c67548c7a20bf78eeeac71
2015-06-22 21:20:14 +00:00
Steve Martinelli
3ec2418673 Use oslo.policy instead of incubated version
* pull in oslo.policy
* account for changes to Enforcer initialization
* account for changes to config options

partially implements bp graduate-policy

Change-Id: Ia23afda5acf92cdc4578ec4c85821603c56d3097
2015-03-05 18:53:03 -05:00
Steve Martinelli
0f61b11141 Use oslo.log instead of incubator
Most of changes are just replacing

from keystone.openstack.common import log
  with
from oslo_log import log

There are some other specific changes that had to be made
  * Initialize logger in keystone/config.py

Change-Id: I859edb71c434051ffe7f34c16018b738ddb71e3b
2015-02-14 05:34:52 +00:00
Brant Knudson
af6b7a56f9 Use RequestBodySizeLimiter from oslo.middleware
Keystone had its own implementation of RequestBodySizeLimiter,
which is unnecessary since there's a RequestBodySizeLimiter in
oslo.middleware. The RequestBodySizeLimiter in keystone.middleware
is now deprecated in favor of the one in oslo_middleware.sizelimit.

bp oslo-middleware-size-limiter

Change-Id: Iebe880eae706eb1ebbda2608f05e1aac65fbfedb
2015-01-28 09:55:11 -06:00
ChangBo Guo(gcb)
09a92d1f76 Add library oslo.concurrency in config-generator config file
We don't use oslo.concurrency config options in keystone now,
just in case it slips through unnoticed.

Change-Id: Ib5557765d3aa1e02c3a44e195e243c787f14dbf3
2015-01-26 17:33:55 +08:00
Dolph Mathews
083d1cd522 switch from sample_config.sh to oslo-config-generator
This switches keystone to use oslo-config-generator, where the contents
of our sample configuration file are configured using a configuration
file in config-generators/, because the only way to have tox create
files is to have configuration files for your configuration files
(seriously, it chokes when redirects are included in the command for a
test environment).

This also takes advantage of oslo-config-generator's ability to set the
line wrap width, which is done at 79 chars here to match the rest of our
code.

Also update the actual sample file under etc/

Change-Id: I9f9a157c7802c56a2c7484f6f4adec4aeb4071b8
Closes-Bug: 1324610
2015-01-02 15:04:20 -06:00