API: Enable support for tenant option in nova absolute-limits
When querying for the absolute limits of a specific tenant,
the tenant option is ignored. There are no attempts to extract
the tenant from the request. Instead, nova uses context.project_id
as the project_id in QUOTAS.get_project_quotas. The following
patch extracts the tenant_id from the request (if any) and passes
that to QUOTAS.get_project_quotas to obtain the proper quota.
Reviewed: https:/ /review. openstack. org/103709 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=2e6b2404155 156ca336dadeacc 8874645ca07bfc
Committed: https:/
Submitter: Jenkins
Branch: master
commit 2e6b2404155156c a336dadeacc8874 645ca07bfc
Author: Thang Pham <email address hidden>
Date: Mon Jun 30 23:17:35 2014 -0400
API: Enable support for tenant option in nova absolute-limits
When querying for the absolute limits of a specific tenant, get_project_ quotas. The following get_project_ quotas to obtain the proper quota.
the tenant option is ignored. There are no attempts to extract
the tenant from the request. Instead, nova uses context.project_id
as the project_id in QUOTAS.
patch extracts the tenant_id from the request (if any) and passes
that to QUOTAS.
Change-Id: If5f91de020ed8a 40fa04fc001c7c4 c92681f4ad1
Closes-Bug: #1334278