Commit Graph

12 Commits

Author SHA1 Message Date
Colleen Murphy 4b77186a75 Move policy generator config to config-generator/
etc/ is for config files that should be installed on disk to support a
running keystone. config-generator/ is for files that
oslo-config-generator uses to generate sample config files and are not
needed by keystone in a live deployment.

Change-Id: I0614709ded739d77ec620150bcb6c2f456024b6f
2017-04-21 21:47:32 +00:00
Gage Hugo 83b2109ae5 Remove stevedore warning when building docs
When running "tox -edocs", the following warning is raised:

WARNING stevedore.named [-] Could not load keystone.notifications

It looks like the removed line "keystone.notifications" is something
that was left over from another change [1] and never removed from the
config-generator. This change removes this line and the warning no
longer appears as a result.

[1] I1369fd7835b31e57a094d07deb6a1aacc1d314b5

Change-Id: I08325abadba94efdb5fc405f859bdcb766914782
Partial-Bug: #1602422
2017-01-06 21:40:20 +00:00
Steve Martinelli ac039414ce Remove eventlet support
Eventlet has been deprecated since the Kilo release and is
being removed in Newton.

A follow on patch will be proposed to remove the [ssl] section
since it is now redundant.

Co-Authored-By: Grzegorz Grasza <grzegorz.grasza@intel.com>
Partially implements: bp removed-as-of-newton

Change-Id: I963d94bbd188dbb6eba68623a42c5bc3f2289da4
2016-04-18 18:07:28 +00:00
Dina Belova 639e36adbf Integrate OSprofiler in Keystone
OSprofiler is an Oslo library dedicated to enable cross-service
OpenStack profiling. This makes possible to trace the OpenStack
request through all projects supporting the library, where the
profiling is enabled, and generate JSON and HTML human-readable
reports, describing what time was spent on which operation, e.g.
API or DB request.

This change inclues the following:

* Add settings for OSprofiler wsgi middleware
  This middleware is used for 2 things:
  1) It checks that person who want to trace is trusted and knows
     secret HMAC key (that is specified in paste.ini).
  2) It initalize profiler in case of proper trace headers
     and add first wsgi trace point, with info about HTTP request.
* Init profiler on start in both cases (httpd or eventlet)
* Adding new conf group for profiler (to enable/disable)
* By default osprofiler is disabled

TBD:
* Adding trace point for all DB (sql) calls. For proper format and
result oslo.db enginefacade module needs to be updated.

To test (old variant, will be changed with new commit to the
python-openstackclient):

$ . amdminrc # you should be admin user/tenant to fetch profiling data
$ keystone --profile SECRET_KEY user-list
$ osprofiler trace show --html --out result.html <TRACE_ID>

Old python-keystoneclient change: https://review.openstack.org/#/c/114856/
Python-openstack client change: https://review.openstack.org/#/c/255861/

Depends-On: I248b134e0e245bd4cece0ebe225b9b729eedaf78
Change-Id: I3d6eaa7a5ab7ee9ae177f3e1d6cc92f0a01e6a42
2016-04-06 16:46:35 +03:00
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