Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1047422

Summary: [RFE][cinder]: Ability to create multiple volumes at the same time
Product: Red Hat OpenStack Reporter: RHOS Integration <rhos-integ>
Component: openstack-cinderAssignee: RHOS Maint <rhos-maint>
Status: CLOSED WONTFIX QA Contact: Dafna Ron <dron>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: abaron, eharney, markmc, scohen, yeylon
Target Milestone: Upstream M3Keywords: FutureFeature, Triaged
Target Release: 5.0 (RHEL 7)   
Hardware: Unspecified   
OS: Unspecified   
URL: https://blueprints.launchpad.net/cinder/+spec/create-multiple-volume-from-cli
Whiteboard: upstream_milestone_icehouse-3 upstream_status_good-progress
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-23 16:19:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description RHOS Integration 2013-12-31 05:03:37 UTC
Cloned from launchpad blueprint https://blueprints.launchpad.net/cinder/+spec/create-multiple-volume-from-cli.

Description:

The goal of the blueprint is to allow the creation of more volumes at the same time (of sequentially) from the cinder create command. The idea is the same as nova, thus a new option (new parameter of 'create') should be added like so:

$ cinder create --num-volumes 3 --display-name volume <size>

The display name will be required attribute to identify the volumes created. It can either be kept required in case --num-volumes are created or can be created dynamically based on current timestamp

e.g.

$cinder create --num-volumes 3 --display-name testvolume 1

volume display names will be
testvolume-1
testvolume-2
testvolume-3

$cinder create --num-volumes 3 1

volume display names will be
20131230060056-1
20131230060056-2
20131230060056-3


This will also need additional input parameters on dashboard for number of volumes.

As per review comments from Duncan, the code changes will be in python-cinderclient. No code in cinder will be touched.

Specification URL (additional information):

https://wiki.openstack.org/wiki/Ability_to_create_more_than_one_volume_at_the_same_time