From 5cedf955f643e3904182c6b0807912092f46e971 Mon Sep 17 00:00:00 2001 From: Mark Beierl Date: Tue, 8 Mar 2016 15:15:02 -0500 Subject: Cinder fix Fix so that Cinder will use Tenant ID instead of name Change-Id: I2d30db61dffc4f381d64e8d99449a2c55c5928a9 JIRA: STORPERF-38 Signed-off-by: Mark Beierl --- docker/requirements.pip | 2 +- storperf/storperf_master.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docker/requirements.pip b/docker/requirements.pip index be29c28..c6f262c 100644 --- a/docker/requirements.pip +++ b/docker/requirements.pip @@ -3,7 +3,7 @@ python-neutronclient==2.6.0 python-heatclient==0.8.0 python-novaclient==2.28.1 python-glanceclient==1.1.0 -python-cinderclient==1.4.0 +python-cinderclient==1.6.0 python-keystoneclient==1.6.0 flask>=0.10 flask-restful>=0.3.5 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 -- cgit 1.2.3-korg