Code duplication in sahara keystone client
Bug #1376336 reported by
Andrew Lazarev
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Sahara |
Fix Released
|
Low
|
Andrew Lazarev |
Bug Description
There are two methods client() and _client() with the nearly identical code. client() doesn't support trusts, _client() doesn't support keystone v2. This makes difficult to choose right implementation. Need to refactor code to make one method for client creation (or make client using _client)
Changed in sahara: | |
assignee: | nobody → Andrew Lazarev (alazarev) |
importance: | Undecided → Low |
Changed in sahara: | |
milestone: | none → kilo-1 |
Changed in sahara: | |
status: | New → In Progress |
Changed in sahara: | |
milestone: | kilo-1 → juno-rc2 |
Changed in sahara: | |
status: | Fix Committed → Fix Released |
Changed in sahara: | |
milestone: | juno-rc2 → 2014.2 |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/125130 /git.openstack. org/cgit/ openstack/ sahara/ commit/ ?id=46ab3f5bfe4 c19c3fc028158af 705ebde595f355
Committed: https:/
Submitter: Jenkins
Branch: master
commit 46ab3f5bfe4c19c 3fc028158af705e bde595f355
Author: Andrew Lazarev <email address hidden>
Date: Tue Sep 30 10:47:25 2014 -0700
Fixed cinder check for non-admin user
It could happen that user doesn't have privileges to perform
list_services. Sahara should use admin user for that.
Refactored keystone client creation to give admin user
access to keystone via API v2.
Change-Id: I275fa07a02f472 9f2fc20fcd1f0ea 65f3c4d50b2
Closes-Bug: #1375806
Closes-Bug: #1376336