Improve the booting from volume interface

Registered by Nikola Đipanov on 2012-12-03

The aim of this blueprint is to improve the interface for booting from volumes. Some discussion around this occured on the Grizzly summit, and was sumarized in the following etherpad https://etherpad.openstack.org/grizzly-boot-from-volumes .

This blueprint will cover the following functionality:

* Make Nova able to boot without image
* Make Cinder relate image metadata when the volume is created with an --image_id (done already, see https://review.openstack.org/#/c/16172/4)
* Make this data available through the Cinder API
* Make nova consider this data when booting from volume using bdms
* Add the --volume option to nova boot
* Extend nova API to return more details about the volumes attached and also be more explicit when an instance is booted from a volume
* Add the --kernel and --ramdisk options to nova boot

Note that bits of this blueprint require changes to Cinder as well.

For more details see the related discussion on the dev ML http://lists.openstack.org/pipermail/openstack-dev/2012-November/002793.html

Further steps outlined in the etherpad will be done in separate blueprints.

Blueprint information

Status:
Complete
Approver:
Vish Ishaya
Priority:
Medium
Drafter:
Nikola Đipanov
Direction:
Approved
Assignee:
Nikola Đipanov
Definition:
Superseded
Series goal:
None
Implementation:
Good progress
Milestone target:
None
Started by
Vish Ishaya on 2012-12-13
Completed by
Russell Bryant on 2013-08-13

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bug/1008622,n,z

Addressed by: https://review.openstack.org/16099
    Boot from volume without image supplied

Gerrit topic: https://review.openstack.org/#q,topic:bp/improve-boot-from-volume,n,z

Addressed by: https://review.openstack.org/18397
    Extract image metadata from Cinder

Addressed by: https://review.openstack.org/20339
    New block device API extension - WIP

Addressed by: https://review.openstack.org/21374
    Add conversion between local and volume storage on boot

Gerrit topic: https://review.openstack.org/#q,topic:bug/1124441,n,z

Addressed by: https://review.openstack.org/23818
    Libvirt driver create images even without meta

Addressed by: https://review.openstack.org/23834
    Prevent rescue for volume-backed instances

Gerrit topic: https://review.openstack.org/#q,topic:bug/1182114,n,z

Addressed by: https://review.openstack.org/29786
    Fix resize when instance has no image

Addressed by: https://review.openstack.org/30061
    Fix resize when instance has no image

Nikola indicated that almost all of this is covered by https://blueprints.launchpad.net/nova/+spec/improve-block-device-handling or by separate patches, so I'm just marking this as superseded. --russellb

(?)

Work Items