Set container_format to bare during libvirt snapshot, when VM image in
glance was deleted. Currently, if VM image in glance was already deleted
before snapshot, nova will attempt to create snapshot image with
container_format: None. This cause glance to return error on attempt to
upload snapshot. According to glance docs container_format is not used
anywhere in glance or nova explicitly and it is safe to set it to bare,
when you are unsure which container_format you need to use.
Current snapshot logic sets snapshot disk_format to currently used
image_format in absence of base image in glance.
This resolves bug 921774 without need for snapshot mechanism redesign.
Reviewed: https:/ /review. openstack. org/12395 github. com/openstack/ nova/commit/ 75f69225c5be5e5 817a4008792e974 ba4014c9e1
Committed: http://
Submitter: Jenkins
Branch: stable/essex
commit 75f69225c5be5e5 817a4008792e974 ba4014c9e1
Author: Boris Filippov <email address hidden>
Date: Wed Sep 5 05:40:05 2012 +0400
Use bare container format by default
Set container_format to bare during libvirt snapshot, when VM image in format: None. This cause glance to return error on attempt to
glance was deleted. Currently, if VM image in glance was already deleted
before snapshot, nova will attempt to create snapshot image with
container_
upload snapshot. According to glance docs container_format is not used
anywhere in glance or nova explicitly and it is safe to set it to bare,
when you are unsure which container_format you need to use.
Current snapshot logic sets snapshot disk_format to currently used
image_format in absence of base image in glance.
This resolves bug 921774 without need for snapshot mechanism redesign.
Change-Id: I7beea35120aaea c0837daecdf58f3 8f62e24454c