discovery constructor fails with only session parameter
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-keystoneclient |
Fix Released
|
High
|
Monty Taylor |
Bug Description
keystoneclient.
devstack ~ $ python
Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from keystoneauth1.
>>> from keystoneclient import session
>>> from keystoneclient.v3 import client
>>> auth = password.
>>> sess = session.
>>> ks = client.
>>> ks.users.list()
[<User domain_id=default, enabled=True, id=44d3844e5f14
>>> quit()
devstack ~ $ pip freeze | grep keystone
-e git://git.
keystoneauth1=
keystonemiddlew
python-
devstack ~ $ python
Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from keystoneauth1.
>>> from keystoneclient import session
>>> from keystoneclient import client
>>> auth = password.
>>> sess = session.
>>> ks = client.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/
d = discover.
File "/usr/local/
return func(*args, **kwargs)
File "/usr/local/
_('Not enough information to determine URL. Provide either '
keystoneclient.
Changed in python-keystoneclient: | |
importance: | Undecided → High |
status: | New → Confirmed |
Changed in python-keystoneclient: | |
assignee: | Monty Taylor (mordred) → Dolph Mathews (dolph) |
Changed in python-keystoneclient: | |
assignee: | Dolph Mathews (dolph) → Monty Taylor (mordred) |
Changed in python-keystoneclient: | |
status: | Fix Committed → Fix Released |
To reproduce in tests:
diff --git a/keystoneclien t/tests/ unit/auth/ test_identity_ v3.py b/keystoneclien t/tests/ unit/auth/ test_identity_ v3.py t/tests/ unit/auth/ test_identity_ v3.py t/tests/ unit/auth/ test_identity_ v3.py n(utils. TestCase) :
username= self.TEST_ USER,
password= self.TEST_ PASS) Session( auth=a) Client( session= s, auth_url= self.TEST_ URL) Client( session= s)
index aaae500..f0c36af 100644
--- a/keystoneclien
+++ b/keystoneclien
@@ -216,7 +216,7 @@ class V3IdentityPlugi
s = session.
- cs = client.
+ cs = client.
# As a sanity check on the auth_ref, make sure client has the
# proper user id, that it fetches the right project response