summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Beierl <mark.beierl@emc.com>2016-03-08 15:15:02 -0500
committerMark Beierl <mark.beierl@emc.com>2016-03-08 15:15:02 -0500
commit5cedf955f643e3904182c6b0807912092f46e971 (patch)
treee94d6ee236637f67733bb5fbe662c32457d649a5
parenteed2ece373aede00f43e2655dca451266d4e9c37 (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>
-rw-r--r--docker/requirements.pip2
-rw-r--r--storperf/storperf_master.py3
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