]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Save some more image attributes to volume_glance_metadata.
authorVincent Hou <sbhou@cn.ibm.com>
Thu, 27 Jun 2013 07:43:00 +0000 (15:43 +0800)
committerVincent Hou <sbhou@cn.ibm.com>
Thu, 27 Jun 2013 09:58:36 +0000 (17:58 +0800)
commit4ef5eabaeeb70d5090079819f4c2442742f43373
tree05cb72c941ec59a6528dcd725dad4cfa17bd82c3
parent35c8643d49d51561387fdd7fb56af03234d61d9b
Save some more image attributes to volume_glance_metadata.

Current issue: When copying an image to a volume, attributes like size, disk_format, container_format,
checksum, min_disk and min_ram have not been copied so far. When booting a VM from a volume, we are
not able to check these atrributes without giving the image id. Furthermore, if the original
image is deleted, we will lose all the information.

This patch saves these attributes into volume_glance_metadata. We can still check these attributes
without giving the image id when booting a VM from a volume.

Fixed Bug 1159824.

Change-Id: I42ce676026d32be6e3f4bec6fd269908e2df0a8c
cinder/volume/manager.py