Abuse of CONF.keymgr.encryption_auth_url in quota
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
In Progress
|
Undecided
|
shravya Gaddam |
Bug Description
CONF.keymgr.
def _get_project(self, context, id, subtree_
"""A Helper method to get the project hierarchy.
Along with Hierachical Multitenancy, projects can be hierarchically
organized. Therefore, we need to know the project hierarchy, if any, in
order to do quota operations properly.
"""
try:
project = keystone.
except exceptions.
msg = (_("Tenant ID: %s does not exist.") % id)
raise webob.exc.
return project
In addition, this usage of keystoneclient will make two request to keystone. The first request to fetch catalog, the second one to get the project. It is inefficient, especially when multiple regions and identity endpoints are listed in the catalog and keystoneclient selects one that is distant from the cinder. It seems that we can pass the "endpoint" parameter instead of the "auth_url" parameter to keystoneclient so that only one request is sent to a specified (nearest) identity endpoint.
Changed in cinder: | |
assignee: | nobody → shravya Gaddam (shravya-g90) |
Fix proposed to branch: master /review. openstack. org/240679
Review: https:/