Block Device will be created by block-device-mappting option when vm created

Registered by inhye.park

it is a very simple logic.
This is a way.

Whenever you create an instance by options on demand , volume is created and attached at the same time.
This is different from Ephemeral of flavor.

Usage is as follows:
nova boot cosmos-0807_5 --image 394dd9fb-2c92-43c4-bec0-3c090d15df84 --flavor 1 --key-name cosmos --block_device_mapping vdb=::3
(Format: <id>:[<type>]:[<size(GB)>]:[<delete_on_terminate>])

if If you do not have id. Volume will be created as input size and attached on created vm.

Blueprint information

Status:
Complete
Approver:
None
Priority:
Undefined
Drafter:
None
Direction:
Needs approval
Assignee:
inhye.park
Definition:
Obsolete
Series goal:
None
Implementation:
Started
Milestone target:
None
Started by
inhye.park
Completed by
Joe Gordon

Related branches

Sprints

Whiteboard

I am a little unclear on what you are proposing, are you saying that nova should be able to automatically create a cinder volume if you ask it to? We are trying to move away from having nova be a proxy to all services as much as possible and I this goes against that. I would rather see this implemented in the unified python-openstackclient as this can be done as a client side logic. -- jogo

I actually think that as far as nova is concerned, you should have to create the volume ahead of time and pass it in as a block device mapping when creating the instance. If you want to automate it, that's something outside of nova. It could be a client feature, I suppose. You could also look at this as a really simple orchestration (Heat) use case. --russellb

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.