diff options
author | 2016-03-08 15:15:02 -0500 | |
---|---|---|
committer | 2016-03-08 15:15:02 -0500 | |
commit | 5cedf955f643e3904182c6b0807912092f46e971 (patch) | |
tree | e94d6ee236637f67733bb5fbe662c32457d649a5 /storperf | |
parent | eed2ece373aede00f43e2655dca451266d4e9c37 (diff) |
Cinder fix
Fix so that Cinder will use Tenant ID instead of name
Change-Id: I2d30db61dffc4f381d64e8d99449a2c55c5928a9
JIRA: STORPERF-38
Signed-off-by: Mark Beierl <mark.beierl@emc.com>
Diffstat (limited to 'storperf')
-rw-r--r-- | storperf/storperf_master.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/storperf/storperf_master.py b/storperf/storperf_master.py index 9e88a3c..c5d436e 100644 --- a/storperf/storperf_master.py +++ b/storperf/storperf_master.py @@ -45,6 +45,7 @@ class StorPerfMaster(object): self._username = os.environ.get('OS_USERNAME') self._password = os.environ.get('OS_PASSWORD') self._tenant_name = os.environ.get('OS_TENANT_NAME') + self._tenant_id = os.environ.get('OS_TENANT_ID') self._project_name = os.environ.get('OS_PROJECT_NAME') self._auth_url = os.environ.get('OS_AUTH_URL') @@ -128,7 +129,7 @@ class StorPerfMaster(object): @property def volume_quota(self): self._attach_to_openstack() - quotas = self._cinder_client.quotas.get(self._tenant_name) + quotas = self._cinder_client.quotas.get(self._tenant_id) return int(quotas.volumes) @property |