Commit Graph

14 Commits

Author SHA1 Message Date
Sean McGinnis 27b916ee1b
Fix string format error
Attempt to escape quotes actually forgot one of the quotes, causing
"invalid escape sequence" warnings in the logs.

Change-Id: I843257ba5c26f7ba6c5cd3b1b7c53ed26cb9ee8d
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2019-04-09 17:16:42 -05:00
Gage Hugo 204b21acea Correct docs usage of keystoneauth1 session
keystoneclient.session has been long deprecated in favor of
keystoneauth1.session. This change corrects entries in the
documentation to use the correct library's session.

Change-Id: I16c9cd9a63c584c032ba9b3958014a4abaa99ca0
2017-09-12 16:18:00 -05: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
Anh Tran 3ac8cdff3f Remove unused logging import
Change-Id: I0c4ef3ecbacc3968344659de47be6b2cb483c074
2017-02-17 10:06:34 +07: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
Nguyen Hung Phuong 654fb6aced Update code to use Newton as the code name
This patch updates code to use Newton as the code name

Change-Id: Ic74454f5e14faf7ac113384d87247afb46734010
2016-09-13 01:25:49 +00:00
ChangBo Guo(gcb) 31c8582f39 Config: no need to set default=None
By default oslo.cfg sets the default value as None. There is no
need to explicitly do this.

TrivialFix

Change-Id: Icba893180617ab03e42b477706ce089cc5c5b5d1
2016-06-23 07:44:35 +08:00
Jamie Lennox f8c150a9cc Create a Config object
The _conf_get ugliness in auth_token middleware has been around for a
long time now to handle the abstraction from different oslo.config
options and the paste overrides. This logic is now also being needed in
other middlewares. Extract this into a common config object that has a
better interface and is easier to work with.

Change-Id: I8b8a1427bc527e43bb1baec25a881d93df3f93cc
2016-06-10 18:21:56 +00:00
Dave Chen c531b87b99 update deprecation message to indicate when deprecations were made
Previously, the deprecation messages were vague and did not define
a timeline in when the functions would be removed.

Change-Id: Ice05f6ff66d45f3477a460062c03d36c61b970ec
2016-02-12 00:29:55 -05:00
Eric Brown 39560c7748 Use oslo_config choices support
The oslo_config library added support for a choices keyword argument in
version 1.2.0a3.  This commit leverages the use of choices for StrOpts of
keystonemiddleware configuration.

Change-Id: I8d9ee833263560caaffe083487abc5eda862f8ea
Closes-Bug: 1423973
2016-01-06 13:42:29 -08:00
Jamie Lennox d202ed827e Use keystoneauth
With the release of keystoneauth we should use that instead of
keystoneclient in auth_token middleware.

Change-Id: Id0876e90a1373ba31e4ec23d5275618149ca36d1
2015-11-23 12:03:00 +11:00
Brant Knudson f45d7663f3 Change auth_token to use keystoneclient
The auth_token middleware should use keystoneclient for all its
communication with keystone.

bp auth-token-use-client

Depends-On: If802e8a47e45ae00112de3739334b4b5482d0500
Change-Id: Ib6ff5b0d9b260d03fe5d120fa47035886f43439c
2015-04-30 20:34:35 -05:00
Brant Knudson 74d978c7ee Deprecate auth_token authentication
Applications should be using the standard authentication plugins
rather than auth_token authentication.

Change-Id: I1d7ef8267f353e2ea4af47352b3faa399afb11aa
2015-04-30 15:19:20 -05:00
Jamie Lennox 9ba567e32c Break default auth plugin into file
Extract the default auth plugin into its own file. In future I'd like to
move the whole auth loading process into this file - however I have some
ideas for changing around how config works I'd like to do first.

Change-Id: I90c2f9e55947a436374ff54465e15caffdf9925d
Implements: bp refactor-extract-module
2015-02-26 10:01:15 +11:00