Boot From Volume
BootFromVolume
VMs should be able to boot from a volume. This requires the volume API in the OS API.
Blueprint information
- Status:
- Complete
- Approver:
- Vish Ishaya
- Priority:
- High
- Drafter:
- None
- Direction:
- Approved
- Assignee:
- Isaku Yamahata
- Definition:
- Approved
- Series goal:
- Accepted for diablo
- Implementation:
-
Implemented
- Milestone target:
-
2011.3
- Started by
- Thierry Carrez
- Completed by
- Thierry Carrez
Whiteboard
First appeared in diablo-4
Sure it does, and the basic implementation is available, so we can start the discussion right away :)
Vish, could you please guide me how to discuss extending openstack API?
It's just basically adding volume parameter to the servers API, and doesn't break existing at all.
-- Yoshi
---
I foresee that discussion on openstack native API is necessary and people would start
the discussion after seeing the first implementation of native api which will be done by D-2.
I suppose you have your ideas, others might have different ones.
So I expect the first native api implementation comes with D-2, but
the completion of native api will be by D-3.
Makes sense?
--yamahata
---
I guess openstack native can be done by D-2 (2011-06-30).
Are you seeing any blocking that should be delayed to D-3? > yamahata
-- Yoshi
---
I think that targetting to diablo-2 is quite feasible with ec2 api assuming snapshot/clone.
openstack native api needs consideration. Maybe D-3 milestone?
--yamahata
---
I'd like to get this in fairly early in diablo. I'm targetting to milestone 2 for this feature. Let me know if you think that is too soon. --vish
Discussion will happen in the following session: https:/
I'd like to start the discussion on this feature as I finished COP implementation.
VM can boot with volume partition instead of snapshot because currently the snapshot
feature isn't supported yet.
e.g.
euca-run-instances ami-XXXX -k mykey -t m1.tiny -b/dev/
The branch I linked, lp:~yamahata/nova/boot-from-volume, implements EBS boot experimentally.
It requires latest euca2ools, latest boto which requires python 2.7 or later and the following patch.
=== modified file 'euca2ools/
--- euca2ools/
+++ euca2ools/
@@ -571,19 +571,23 @@
return file_path
def parse_block_
- block_device_map = BlockDeviceMapp
+ block_device_map = boto.ec2.
for block_device_
parts = block_device_
if len(parts) > 1:
- block_dev_type = BlockDeviceType()
+ block_dev_type = boto.ec2.
if value_parts[
+ elif value_parts[
+ # openstack doesn't support volume snapshot at the moment
+ # So use volume for now instead of snapshot
+ block_dev_
- if len(value_parts) > 1:
+ if len(value_parts) > 1 and value_parts[1] != '':
if len(value_parts) > 2:
-------
From branch lp:~tamura-yoshiaki/nova/boot-from-volume, send command with curl like below.
curl -D - -H X-Auth-Key:your-key -H X-Auth-
-------
memor on the merge
- resolve the assumption that only single volume is attached
- cd boot stuff
- eliminate EC2 bias
Gerrit topic: https:/
Addressed by: https:/
compute: improve exceptions related to disk size checks
Addressed by: https:/
Don't check flavor disk attributes when booting from volume
Addressed by: https:/
Use original image size in volume image metadata
Addressed by: https:/
Don't check flavor disk size when booting from volume
Work Items
Dependency tree

* Blueprints in grey have been implemented.