Snapshots are alway made in raw and not qcow2

Bug #1576621 reported by Mark Donovan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Invalid
Undecided
Unassigned

Bug Description

Hi,
I am using the same version of openstack in two deployments. When I take a snapshot in one environment its is saved in qcow2 but in the other it is saved as raw. The raw format saves an image with the size of the flavour. qcow2 format saves an image the size of the actual used disk space.

The version I am using of openstack is: Version: 2015.1.1

The version of Glance is: 0.17.1

I could not ascertain any difference between the glance configuration in both environments. The only difference is that the CEPH file system is used in the deployment where snapshots are saved in raw. However we are able to upload images in qcow2 nonetheless.

Thank you,
Mark Donovan

Revision history for this message
Kairat Kushaev (kkushaev) wrote :

Hello Mark,
glance does not convert images during the upload. It just stores bits.
If you look at the Ceph documentation looks like there is troubles with qcow2:
http://docs.ceph.com/docs/master/rbd/rbd-openstack/

Ceph doesn’t support QCOW2 for hosting a virtual machine disk. Thus if you want to boot virtual machines in Ceph (ephemeral backend or boot from volume), the Glance image format must be RAW.

So I guess nova(or Cinder or other component that provides bits for Glance image) always specifies RAW format always when ceph is used.

I hope this thread also help you.

Changed in glance:
status: New → Invalid
Revision history for this message
Kairat Kushaev (kkushaev) wrote :

It doesn't look like bug in glance.

Revision history for this message
Mark Donovan (mark-donovan) wrote : Re: [Bug 1576621] Re: Snapshots are alway made in raw and not qcow2

Hi Kairat,
OK so even though our images are stored in format qcow2 ceph is really
storing them in raw? Or do they only expand to raw when the images are
booted? So a 5.3 G qcow2 expands to the flavour size when it is launched?
Thanks,
Mark

On 04/29/2016 01:11 PM, Kairat Kushaev wrote:
> It doesn't look like bug in glance.
>

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, please note that any review, dissemination, disclosure, alteration, printing, circulation, retention or transmission of this e-mail and/or any file or attachment transmitted with it, is prohibited and may be unlawful. If you have received this e-mail or any file or attachment transmitted with it in error please notify <email address hidden>. Although Openet has taken reasonable precautions to ensure no viruses are present in this email, we cannot accept responsibility for any loss or damage arising from the use of this email or attachments.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.