diff --git a/cinder/volume/api.py b/cinder/volume/api.py index 11abff8..6134fd4 100644 --- a/cinder/volume/api.py +++ b/cinder/volume/api.py @@ -185,6 +185,7 @@ class API(base.Base): safe = True return safe
+ def create(self, context, size, name, description, snapshot=None, image_id=None, volume_type=None, metadata=None, availability_zone=None, source_volume=None, @@ -192,6 +193,8 @@ class API(base.Base): source_replica=None, consistencygroup=None, cgsnapshot=None, multiattach=False):
+ check_policy(context, 'create_volume') + # NOTE(jdg): we can have a create without size if we're # doing a create from snap or volume. Currently # the taskflow api will handle this and pull in the
diff --git a/cinder/ volume/ api.py b/cinder/ volume/ api.py volume/ api.py volume/ api.py
safe = True
index 11abff8..6134fd4 100644
--- a/cinder/
+++ b/cinder/
@@ -185,6 +185,7 @@ class API(base.Base):
return safe
+
image_ id=None, volume_type=None, metadata=None,
availability_ zone=None, source_volume=None,
source_ replica= None, consistencygrou p=None,
cgsnapshot= None, multiattach=False):
def create(self, context, size, name, description, snapshot=None,
@@ -192,6 +193,8 @@ class API(base.Base):
+ check_policy( context, 'create_volume')
+
# NOTE(jdg): we can have a create without size if we're
# doing a create from snap or volume. Currently
# the taskflow api will handle this and pull in the