resize image's virtual size before copy image to volume

Registered by Bin Zhou

when creating a volume from image, the image is copied to volume without modification of image's virtual size. If a vm boots from this volume, user will find that the root disk space is not consistent with the volume size, which is supposed to be.
  I think cinder should resize the image's virtual size to the volume size and then copy the modified image to volume in the process of creating volume from image, in order to keeping the image's disk space to the volume size.

Blueprint information

Status:
Not started
Approver:
Sean McGinnis
Priority:
Low
Drafter:
Bin Zhou
Direction:
Needs approval
Assignee:
None
Definition:
Discussion
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

As far as I know, this is something that would need to be done on the Nova side. Can you elaborate on what specific actions you would like Cinder to take here?

Gerrit topic: https://review.openstack.org/#q,topic:bp/resize-image-virtual-size,n,z

Addressed by: https://review.openstack.org/325826
    resize image's virtual size

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.