summaryrefslogtreecommitdiff
path: root/nova/volume/cinder.py
diff options
context:
space:
mode:
authorPooja Jadhav <pooja.jadhav@nttdata.com>2018-06-11 17:53:34 +0530
committerPooja Jadhav <pooja.jadhav@nttdata.com>2018-06-12 12:06:41 +0530
commit1ae0603782ea1df19f614b8de08e3161fcc4ee91 (patch)
treef84ae04955e5d1d69b797fbfb836ae69928a87f8 /nova/volume/cinder.py
parent5ef23af397820ac2031731e0a370fdb1236d9563 (diff)
downloadnova-1ae0603782ea1df19f614b8de08e3161fcc4ee91.tar.gz
Remove unnecessary parameters from create volume API
From the beginning, user_id and project_id parameters are passed to the create method which python-cinderclient includes in the request body but these parameters were not used by the Cinder service. But now we are adding schema validation support in Cinder service[1] and these parameters are not allowed anymore. If cinder service will get these parameters in create volume API request body, it will return 400 error. Even in the Cinder specs, these parameters are not documented in api-ref <v2/v3>[2][3]. We are also planning to remove these parameters from python-cinderclient[4]. This patch removes these unnecessary parameters passed to the create Volume API. Note: These changes doesn't have any impact on the python-cinderclient. It won't break anything. [1]https://review.openstack.org/#/c/573093/ [2]https://developer.openstack.org/api-ref/block-storage/v2/index.html#volumes-volumes [3]https://developer.openstack.org/api-ref/block-storage/v3/index.html#volumes-volumes [4]https://review.openstack.org/#/c/573622/ Change-Id: I1d4024b645dcee44008e7d55702d8afd89ff6f5a
Diffstat (limited to 'nova/volume/cinder.py')
-rw-r--r--nova/volume/cinder.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/nova/volume/cinder.py b/nova/volume/cinder.py
index 8f0b2a8c35..a729349f81 100644
--- a/nova/volume/cinder.py
+++ b/nova/volume/cinder.py
@@ -616,8 +616,6 @@ class API(object):
kwargs = dict(snapshot_id=snapshot_id,
volume_type=volume_type,
- user_id=context.user_id,
- project_id=context.project_id,
availability_zone=availability_zone,
metadata=metadata,
imageRef=image_id,