Support zero-size image creation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Wishlist
|
Eoghan Glynn | ||
Essex |
Fix Released
|
Wishlist
|
Eoghan Glynn | ||
glance (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Precise |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
We should transition image status to active immediately on creation (as opposed to leaving it queued forever) if the size is set to zero from the get-go.
This change would allow an image to be created that simply acts as a properties bucket, but requires no image data.
The intended use-case is implementing the EC2 CreateImage API for nova booted-from-volume instances. The idea of the placeholder image is described in this mail:
https:/
In this case, the "image" is more of a collection of properties that reference image data held elsewhere (i.e. the kernel/ramdisk IDs, and particularly the snapshot ID that's used to create a volume containing the root device data). So its not so much that there's no image data, more than the image data is referenced via indirection.
The result would be that a nova server could be booted entirely from the image properties, without providing this information via some ancillary route (e.g. the nova boot --block_
Related branches
- Ubuntu Server Developers: Pending requested
-
Diff: 31 lines (+10/-3)2 files modifieddebian/changelog (+6/-0)
debian/glance-common.postinst (+4/-3)
Changed in glance: | |
status: | New → In Progress |
importance: | Undecided → Wishlist |
assignee: | nobody → Eoghan Glynn (eglynn) |
milestone: | none → folsom-3 |
Changed in glance: | |
status: | Fix Committed → Fix Released |
Changed in glance (Ubuntu): | |
status: | New → Fix Released |
Changed in glance (Ubuntu Precise): | |
status: | New → Confirmed |
Changed in glance: | |
milestone: | folsom-3 → 2012.2 |
Reviewed: https:/ /review. openstack. org/9715 github. com/openstack/ glance/ commit/ 6873195cd19d519 a5f6f31461b7b68 3e33b19784
Committed: http://
Submitter: Jenkins
Branch: master
commit 6873195cd19d519 a5f6f31461b7b68 3e33b19784
Author: Eoghan Glynn <email address hidden>
Date: Thu Jul 12 15:04:22 2012 +0100
Support zero-size image creation via the v1 API
Addresses LP 1025353 for the v1 API.
Transition image status to active immediately on creation
(as opposed to leaving it queued forever) if the size is set
to zero from the get-go.
The v2 implementation is left unchanged for now, as the image
status does not appear to ever transition from queued to active
in that case.
This change allows an image to be created that simply acts as
a properties bucket, but requires no image data. For example,
an image created from a booted-from-volume instance where only
the kernel, ramdisk ID, and block device mappings are required.
Change-Id: I61e96f3fe5f524 5fec791170b4a8b 4c72135c3de