Default cinder to v2
Name field for create_volume is redundant since it is taken care in the wrapper Change-Id: I3d9a4f018fd1c1d2cd916dc846707220b3c65d02
This commit is contained in:
@@ -61,8 +61,7 @@ class VolumeGenerator(context.Context):
|
|||||||
{"user": user,
|
{"user": user,
|
||||||
"task": self.context["task"]})
|
"task": self.context["task"]})
|
||||||
for i in range(volumes_per_tenant):
|
for i in range(volumes_per_tenant):
|
||||||
rnd_name = self.generate_random_name()
|
vol = cinder_util._create_volume(size)
|
||||||
vol = cinder_util._create_volume(size, display_name=rnd_name)
|
|
||||||
self.context["tenants"][tenant_id]["volumes"].append(vol._info)
|
self.context["tenants"][tenant_id]["volumes"].append(vol._info)
|
||||||
|
|
||||||
@logging.log_task_wrapper(LOG.info, _("Exit context: `Volumes`"))
|
@logging.log_task_wrapper(LOG.info, _("Exit context: `Volumes`"))
|
||||||
|
|||||||
Reference in New Issue
Block a user