1836 Commits

Author SHA1 Message Date
Dolph Mathews
b588609a06 Docstring spelling and function-vs-method fixes
These are all object methods, not independent functions.

Change-Id: I3c232d922e61a94c7dc2c2b9a8d3768fd42be1a7
2015-10-21 15:37:18 +00:00
OpenStack Proposal Bot
6588ad5fb5 Updated from global requirements
Change-Id: Icaf6ab75e5ca438a98c400a17ce7eacc712910aa
2015-10-19 23:32:40 +00:00
Jenkins
8f2aaedfe3 Merge "Fix typo that says V3 token only works for v2" 2015-10-16 01:51:19 +00:00
Steve Martinelli
36e52d06ad Fix typo that says V3 token only works for v2
The V3 token plugin should work for v3 identity service

Change-Id: Ic3c53dd94e1fe5d1ab69a02a7f7469735ee4c978
2015-10-15 17:00:35 -04:00
Steve Martinelli
ebdbbeee54 auto-generate release history
currently there is no release history for keystoneclient, though
sometimes the commits are lacking context, this automated approach
is far better than nothing.

Change-Id: Ibb865b4830cbe1e2e99688103d26f1378d2c32b1
2015-10-15 19:00:43 +00:00
OpenStack Proposal Bot
6fce93d7c9 Updated from global requirements
Change-Id: I4e994e5be2b5a649c94cc866211af6f3226b6170
2015-10-14 09:33:10 +00:00
OpenStack Proposal Bot
80bf3f8ecf Updated from global requirements
Change-Id: I2e09a5b66fde17db0615baf64a5b7d37b6abca4b
2015-10-13 11:04:37 +00:00
OpenStack Proposal Bot
e65be5dbeb Updated from global requirements
Change-Id: Ie2f43389ee63918071b99c55fd56420f9cfb6ea1
2015-10-13 01:02:20 +00:00
OpenStack Proposal Bot
777588a447 Updated from global requirements
Change-Id: I8c0e393bae99dec6f0153c205d3cd9c3be94ddcc
2015-10-09 05:04:25 +00:00
Jenkins
0d6736ce5b Merge "Make __all__ immutable" 2015-10-07 21:41:07 +00:00
Jenkins
d7d6d69015 Merge "Use dictionary literal for dictionary creation" 2015-10-07 18:06:01 +00:00
Jenkins
868f31d47d Merge "List creation could be rewritten as a list literal" 2015-10-07 18:05:25 +00:00
OpenStack Proposal Bot
70dbc31484 Updated from global requirements
Change-Id: Idfeced4ee4d3902d360a0b7d9f7b57b6d46777c5
2015-10-02 17:20:28 +00:00
Jamie Lennox
9cd71c064c Redirect on 303 in SAML plugin
The SAML plugin handles redirects in a custom manner but currently only
checks for the 302 redirect code. This doesn't cover the mod_auth_mellon
case which responds with a 303.

Also handle the 303 redirect case.

Change-Id: Idab5f381fcbfb8c561184845d3aa5c8aab142ecd
Closes-Bug: #1501918
2015-10-02 07:17:21 +10:00
Dolph Mathews
eb77abd77a Make __all__ immutable
Using a mutable type implies that it's acceptable for the set of
publicly-accessible attributes to be mutated at runtime, which defeats
their intended purpose of documenting the public interface. Tuples are
immutable.

Change-Id: Ib3ab93224ba240040b08ece481ef5ba620c3f658
2015-10-01 18:18:13 +00:00
Jenkins
eb1dbe8e5a Merge "Add shields.io version/downloads links/badges into README.rst" 2015-09-28 22:14:23 +00:00
Corey Bryant
5dea3b22fc HTTPClient/region_name deprecation test updates
Creating an HTTPClient without a session is deprecated and
the ServiceCatalog's region_name parameter is also deprecated.
This follows suite with the following commits to update tests
to handle deprecation warnings:
  803eb235d50daad27074198effc98ca536f1550f
  42bd016e1f0e011ba745dba243e62401298e324c

Change-Id: I1c5a3dc2c8448873696262ca951c58666c692a61
Closes-Bug: #1499790
2015-09-25 15:50:38 -04:00
Steve Martinelli
ed0bed088c Add shields.io version/downloads links/badges into README.rst
add shield stats for version and downloads so users can see it
on pypi.

Change-Id: I3ba570ae02288de282283e96af32515939499f2a
2015-09-25 00:13:51 -04:00
Ankit Agrawal
f00156ea9a List creation could be rewritten as a list literal
In _http_log_response method of session.py module,
list "string_parts' is created as below.

string_parts = ['RESP:']
string_parts.append('[%s]' % response.status_code)

Could be rewritten as

string_parts = [
    'RESP:',
    '[%s]' % response.status_code
]

TrivialFix

Change-Id: I83d04a71e030f3904c84cead4659c230393631db
2015-09-24 06:59:12 -07:00
Ankit Agrawal
105ad0b080 Use dictionary literal for dictionary creation
Dictionary creation could be rewritten as a dictionary literal.
for example:

token_values = {}
token_values['user_id'] = access.get('user', {}).get('id')

could be rewritten as

token_values = {'user_id': access.get('user', {}).get('id')}

TrivialFix

Change-Id: I0c5677b527d440b8faded31bf4d9d62805391ae3
2015-09-24 06:50:02 -07:00
Monty Taylor
8cf0b8fe58 Change ignore-errors to ignore_errors
Needed for coverage 4.0

Change-Id: Icd02c5c7894777c56fe90fccc1cf8593b1f2703e
2015-09-21 14:53:26 +00:00
OpenStack Proposal Bot
79894ea322 Updated from global requirements
Change-Id: I10a25fdf9be7af87f6c4c1f3082dd953249c4341
2015-09-18 16:42:15 +00:00
OpenStack Proposal Bot
2dbfaea04b Updated from global requirements
Change-Id: Ie8ae98a23a30d26b58a45dd82de922afbee468ce
2015-09-17 12:16:43 +00:00
Jenkins
f7829dd7f6 Merge "Avoid message concatenation in error path" 2015-09-16 21:46:50 +00:00
Jenkins
4595744419 Merge "Identity plugin thread safety" 2015-09-15 21:01:26 +00:00
Jenkins
5e0a0cbbf3 Merge "Move pot file for traslation" 2015-09-10 20:36:02 +00:00
THOMAS J. COCOZZELLO
addaf2ac10 Move pot file for traslation
The .pot file was named incorrectly and in the wrong location so the
traslations were not getting generated.

Change-Id: Iafd2b7f06dd840fa0505729a9fc898e7e281c50c
Closes-Bug: 1493484
2015-09-10 11:04:33 -05:00
lin-hua-cheng
03d5d8effc Use region_id filter for List Endpoints
The old region filter didn't work, it was not available
in Keystone.

Change-Id: Ic4d60a046df1f231d02a45998c8a0ef7c5b7b107
Closes-bug: #1482772
2015-09-09 23:46:45 -07:00
Jamie Lennox
556c1a6633 Identity plugin thread safety
A common case is for Nova (or other service) to create a service
authentication plugin from a configuration file and then have many
greenlet threads that want to reuse that authentication. If a token
expires then many threads all try and fetch a new token to use and can
step over each other.

I was hoping for a way to put a lock in so that all plugins were thread
safe however fixing it for identity plugins solves almost all real world
situations and anyone doing non-identity plugins will have to manage
threads themselves.

Change-Id: Ib6487de7de638abc69660c851bd048a8ec177109
Closes-Bug: #1493835
2015-09-10 10:18:36 +10:00
Dirk Mueller
3e7f806080 Avoid message concatenation in error path
Recently, the error message in _process_communicate_handle_oserror()
has been i18n'ed, which caused the regression as another code path
appended a string to it, which causes the TypeError to be raised.

Fix it by using string formatting instead of '+' to force it
to convert to string before concatenating.

Closes-Bug: 1421652

Change-Id: I7229b46888f798ac4a69c140ab389afed49b8c3c
2015-09-09 21:07:02 +02:00
Jenkins
28138b5882 Merge "Adding back exception mapping for ConnectionError" 2015-09-09 04:34:24 +00:00
lin-hua-cheng
c45fd909c3 Adding back exception mapping for ConnectionError
The mapping for ConnectionError to ConnectionRefused have been
remove in a recent cleanup to move all exception to
keystoneclient.exceptions

related commit: 26534dadb1d0be00b87b632a038839ab1c18cfe4

Adding the mapping back for backward compatability.

Change-Id: I6f4627b9cd68615b509d17910fe2c1605e89fc26
Closes-Bug: #1492600
2015-09-08 16:42:04 -07:00
Jenkins
f630894f66 Merge "Fixes missing socket attribute error during init_poolmanager" 2015-09-08 23:09:42 +00:00
Jenkins
6231459156 Merge "Deprecate create Discover without session" 2015-09-03 22:48:22 +00:00
Jenkins
1bff68f9b8 Merge "Mask passwords when logging the HTTP response" 2015-09-03 20:29:08 +00:00
Matt Riedemann
3e862bbb1e Update path to subunit2html in post_test_hook
Per:

http://lists.openstack.org/pipermail/openstack-dev/2015-August/072982.html

The location of subunit2html changed on the images in the gate
so update the path used in the post_test_hook.

Long-term we should just use what's in devstack-gate.

Change-Id: I5e50e7d7ad845aba26403df1df412c0a139a6dc7
Closes-Bug: #1491646
2015-09-02 17:20:17 -07:00
Brant Knudson
1697fd7198 Deprecate create Discover without session
The comments indicated that creating a Discover without a
session is deprecated, but there was no warning generated.

Also, updated the Discover() parameter docstrings with the
standard deprecation info (e.g., in what release it's
deprecated and when we might remove it).

bp deprecations

Change-Id: I1d42b74aa72c15b95ac3c365b40d8c622869ed7e
2015-09-02 11:39:35 -05:00
Jenkins
c2b4372446 Merge "Update deprecation text for Session properties" 2015-09-02 10:52:14 +00:00
Jenkins
19258abab2 Merge "Proper deprecation for httpclient.USER_AGENT" 2015-09-02 10:52:10 +00:00
Jenkins
b0d7405a5b Merge "Deprecate create HTTPClient without session" 2015-09-02 10:51:31 +00:00
Matt Riedemann
3e26ff8248 Mask passwords when logging the HTTP response
We should sanitize the response body before logging to make sure we
aren't leaking through credentials like in the case of the response from
the os-initialize_connection volume API.

Closes-Bug: #1490693

Change-Id: Ifd95d3fb624b4636fb72cc11762af62e00a026a0
2015-08-31 12:49:34 -07:00
OpenStack Proposal Bot
f58661e504 Updated from global requirements
Change-Id: I12f49ee292e9e18a59a7cd8e4c78d0b4773897ed
2015-08-31 15:36:04 +00:00
Brant Knudson
7c545e5fe8 Update deprecation text for Session properties
The deprecation text should say when the property was deprecated
and when we expect to remove it.

bp deprecations

Change-Id: I9f1af56d03f0251a7cf3f4a4130928bb0780aece
2015-08-29 11:28:01 -05:00
Brant Knudson
e76423f783 Proper deprecation for httpclient.USER_AGENT
httpclient's USER_AGENT constant wasn't properly deprecated since
the deprecation was only a comment. Proper deprecation requires use
of warnings/debtcollector and documentation, but since this is a
module symbol there's no way to put out a warning, so it's just
documentation in this case.

bp deprecations

Change-Id: I02c77c690a31eea40935d2756748382abec86867
2015-08-29 11:28:01 -05:00
Brant Knudson
42bd016e1f Deprecate create HTTPClient without session
The comments indicated that creating a HTTPClient without a
session is deprecated, but there was no warning generated.

bp deprecations

Change-Id: I44796cbff95a7bbdd6e7a58e5cfb8360bdae5477
2015-08-29 11:28:01 -05:00
Jenkins
ee6d64a8fb Merge "Fix Accept header in SAML2 requests" 2015-08-26 14:10:20 +00:00
Jenkins
b810b3ad2d Merge "Proper deprecation for UserManager project argument" 2015-08-26 06:35:23 +00:00
Jamie Lennox
e0276c6536 Fix Accept header in SAML2 requests
The ; separator allows providing parameters to a type not separating
type options. This means that in strict type checks like those performed
by mod_auth_mellon the check for accept type fails.

Change-Id: Ieeaa74b304921daef68497fec77cc6629ab2f0a2
Closes-Bug: #1488722
2015-08-26 06:24:27 +00:00
Claudiu Belu
33b24a6984 Fixes missing socket attribute error during init_poolmanager
On Windows, the 'socket' python module does not contain the
attributes TCP_KEEPCNT or TCP_KEEPINTVL, causing services
consuming the library to malfunction.

Adds conditionals for adding the mentioned socket attributes
to the socket options.

socket.SIO_KEEPALIVE_VALS cannot be added as a socket option
for Windows, as there is another way entirely to enable that
option.

Change-Id: I2e9746ae65400bbd23c3b48dfc3167de9eb66494
Partial-Bug: #1483696
2015-08-26 09:15:20 +03:00
Jenkins
ce7aea4dd0 Merge "Proper deprecation for CredentialManager data argument" 2015-08-26 04:06:59 +00:00